mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 00:09:22 +00:00
fix: timeseries issue for area stacked chart (#2390)
- #2383 - table sorting issue
This commit is contained in:
@@ -446,7 +446,7 @@ export const convertSQLData = (
|
||||
|
||||
// get the unique value of the first xAxis's key
|
||||
options.xAxis[0].data = Array.from(
|
||||
new Set(searchQueryData[0].map((it: any) => it[xAxisKeys[0]]))
|
||||
new Set(getAxisDataFromKey(xAxisKeys[0]))
|
||||
);
|
||||
// options.xAxis[0].data = Array.from(new Set(options.xAxis[0].data));
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ export const convertTableData = (panelSchema: any, searchQueryData: any) => {
|
||||
if (col.align === "right") {
|
||||
const oldField = col["field"];
|
||||
col["field"] = (row: any) =>
|
||||
row[oldField].toFixed(panelSchema.config.decimals ?? 2);
|
||||
+row[oldField].toFixed(panelSchema.config.decimals ?? 2);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user