mirror of
https://github.com/apache/superset.git
synced 2026-04-26 11:34:27 +00:00
fix(charts): big-number display broken in echarts (#24492)
Co-authored-by: aadhikari <aadhikari@apple.com>
This commit is contained in:
@@ -19,8 +19,6 @@
|
||||
import {
|
||||
AnnotationType,
|
||||
Behavior,
|
||||
ChartMetadata,
|
||||
ChartPlugin,
|
||||
hasGenericChartAxes,
|
||||
t,
|
||||
} from '@superset-ui/core';
|
||||
@@ -34,6 +32,7 @@ import controlPanel from './controlPanel';
|
||||
import transformProps from '../../transformProps';
|
||||
import thumbnail from './images/thumbnail.png';
|
||||
import example1 from './images/SmoothLine1.png';
|
||||
import { EchartsChartPlugin } from '../../../types';
|
||||
|
||||
const smoothTransformProps = (chartProps: EchartsTimeseriesChartProps) =>
|
||||
transformProps({
|
||||
@@ -44,7 +43,7 @@ const smoothTransformProps = (chartProps: EchartsTimeseriesChartProps) =>
|
||||
},
|
||||
});
|
||||
|
||||
export default class EchartsTimeseriesSmoothLineChartPlugin extends ChartPlugin<
|
||||
export default class EchartsTimeseriesSmoothLineChartPlugin extends EchartsChartPlugin<
|
||||
EchartsTimeseriesFormData,
|
||||
EchartsTimeseriesChartProps
|
||||
> {
|
||||
@@ -53,7 +52,7 @@ export default class EchartsTimeseriesSmoothLineChartPlugin extends ChartPlugin<
|
||||
buildQuery,
|
||||
controlPanel,
|
||||
loadChart: () => import('../../EchartsTimeseries'),
|
||||
metadata: new ChartMetadata({
|
||||
metadata: {
|
||||
behaviors: [
|
||||
Behavior.INTERACTIVE_CHART,
|
||||
Behavior.DRILL_TO_DETAIL,
|
||||
@@ -88,7 +87,7 @@ export default class EchartsTimeseriesSmoothLineChartPlugin extends ChartPlugin<
|
||||
t('Transformable'),
|
||||
],
|
||||
thumbnail,
|
||||
}),
|
||||
},
|
||||
transformProps: smoothTransformProps,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user