Skip to content

Commit 019f734

Browse files
committed
add options to render chart
1 parent 2eda967 commit 019f734

File tree

1 file changed

+2
-2
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/components

1 file changed

+2
-2
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/components/ChartsVisualize.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,8 @@ const ChartsVisualize: React.FC<VisualizationProps> = ({
445445
/>
446446
<div className="mb-6 flex flex-col gap-6 p-8 text-center">
447447
<Text>Preview</Text>
448-
{chartData.chart && Object.keys(chartData.chart).length > 0 && (
449-
<ReactECharts option={chartData.chart} ref={chartRef} />
448+
{chartData.chart.options && Object.keys(chartData.chart.options).length > 0 && (
449+
<ReactECharts option={chartData.chart.options} ref={chartRef} />
450450
)}
451451
</div>
452452
</div>

0 commit comments

Comments
 (0)