Skip to content

Commit

Permalink
chore(plugin-chart-echarts): bump echarts to 5.1.2 (apache#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored and zhaoyongjie committed Nov 25, 2021
1 parent aa93f17 commit 4f35689
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@superset-ui/core": "0.17.56",
"@types/mathjs": "^6.0.7",
"d3-array": "^1.2.0",
"echarts": "^5.1.1",
"echarts": "^5.1.2",
"lodash": "^4.17.15",
"mathjs": "^8.0.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ const controlPanel: ControlPanelConfig = {
],
[
{
// TODO: Set renderTrigger to true without getting intermittent errors in echart
name: 'root_node_id',
config: {
...optionalEntity,
renderTrigger: true,
type: 'TextControl',
label: t('Root node id'),
description: t('Id of root node of the tree.'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export default function EchartsTreemap({
echartOptions={echartOptions}
eventHandlers={eventHandlers}
selectedValues={selectedValues}
forceClear
/>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default function Echart({
echartOptions,
eventHandlers,
selectedValues = {},
forceClear = false,
}: EchartsProps) {
const divRef = useRef<HTMLDivElement>(null);
const chartRef = useRef<ECharts>();
Expand All @@ -50,10 +49,6 @@ export default function Echart({
chartRef.current?.on(name, handler);
});

if (forceClear) {
chartRef.current.clear();
}

chartRef.current.setOption(echartOptions, true);

chartRef.current.dispatchAction({
Expand Down

0 comments on commit 4f35689

Please sign in to comment.