mirror of
https://github.com/apache/superset.git
synced 2026-04-24 10:35:01 +00:00
fix: annotation broken (#20651)
* fix: annotation broken * fix UT * add annotation data to mixed timeseries chart
This commit is contained in:
@@ -48,7 +48,10 @@ import {
|
||||
getColtypesMapping,
|
||||
getLegendProps,
|
||||
} from '../utils/series';
|
||||
import { extractAnnotationLabels } from '../utils/annotation';
|
||||
import {
|
||||
extractAnnotationLabels,
|
||||
getAnnotationData,
|
||||
} from '../utils/annotation';
|
||||
import {
|
||||
extractForecastSeriesContext,
|
||||
extractForecastValuesFromTooltipParams,
|
||||
@@ -81,11 +84,11 @@ export default function transformProps(
|
||||
filterState,
|
||||
datasource,
|
||||
theme,
|
||||
annotationData = {},
|
||||
} = chartProps;
|
||||
const { verboseMap = {} } = datasource;
|
||||
const data1 = (queriesData[0].data || []) as TimeseriesDataRecord[];
|
||||
const data2 = (queriesData[1].data || []) as TimeseriesDataRecord[];
|
||||
const annotationData = getAnnotationData(chartProps);
|
||||
|
||||
const {
|
||||
area,
|
||||
|
||||
Reference in New Issue
Block a user