mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 00:14:07 +01:00
🚨
This commit is contained in:
parent
4b56408095
commit
7cff7ce704
9 changed files with 21 additions and 22 deletions
|
|
@ -32,7 +32,7 @@ export const chartRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {
|
|||
}
|
||||
const renderElement = e.firstElementChild.nextElementSibling as HTMLElement;
|
||||
try {
|
||||
const chartInstance = window.echarts.getInstanceById(renderElement.getAttribute("_echarts_instance_"))
|
||||
const chartInstance = window.echarts.getInstanceById(renderElement.getAttribute("_echarts_instance_"));
|
||||
const option = await looseJsonParse(Lute.UnEscapeHTMLStr(e.getAttribute("data-content")));
|
||||
if (chartInstance && chartInstance.getOption().series[0]?.type !== option.series[0]?.type) {
|
||||
chartInstance.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue