Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
chore(plugin-chart-echarts): bump echarts to 5.1.2 (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored Jun 11, 2021
1 parent 9f1daf0 commit d31b3c7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugins/plugin-chart-echarts/package.json
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
2 changes: 1 addition & 1 deletion plugins/plugin-chart-echarts/src/Tree/controlPanel.tsx
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
/>
);
}
5 changes: 0 additions & 5 deletions plugins/plugin-chart-echarts/src/components/Echart.tsx
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

1 comment on commit d31b3c7

@vercel
Copy link

@vercel vercel bot commented on d31b3c7 Jun 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.