mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-08 16:02:30 +00:00
fix: fix agchart rendering
This commit is contained in:
@@ -118,7 +118,6 @@
|
||||
data: options.data,
|
||||
series: options.series
|
||||
})
|
||||
|
||||
AgChartsInstance?.update(chartInstance, options)
|
||||
}
|
||||
|
||||
@@ -209,7 +208,7 @@
|
||||
})
|
||||
|
||||
$: resolvedXData && resolvedDatasets && resolvedDatasetsValues && chartInstance && updateChart()
|
||||
$: result && updateChartByResult()
|
||||
$: result && chartInstance && updateChartByResult()
|
||||
|
||||
function updateChartByResult() {
|
||||
if (!result || !chartInstance) {
|
||||
@@ -226,7 +225,6 @@
|
||||
data: result?.['data'],
|
||||
series: result?.['series']
|
||||
})
|
||||
|
||||
AgChartsInstance?.update(chartInstance, options)
|
||||
}
|
||||
|
||||
@@ -313,6 +311,7 @@
|
||||
class={twMerge('w-full h-full', css?.container?.class, 'wm-agchart')}
|
||||
style={css?.container?.style ?? ''}
|
||||
>
|
||||
<!-- {JSON.stringify(result)} -->
|
||||
<div id={`agchart-${id}`} class="h-full w-full" />
|
||||
</div>
|
||||
</RunnableWrapper>
|
||||
|
||||
Reference in New Issue
Block a user