fix: timeseries issue for area stacked chart (#2390)

- #2383 
- table sorting issue
This commit is contained in:
ktx-abhay
2024-01-04 17:15:06 +05:30
committed by GitHub
parent fb2eec0195
commit 0bbf2dfe95
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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));
+1 -1
View File
@@ -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);
}
});