export chart to HTML

This commit is contained in:
Jan Prochazka
2021-11-11 13:16:46 +01:00
parent 423bd3f223
commit 0fd4084fac
6 changed files with 121 additions and 28 deletions

View File

@@ -130,7 +130,7 @@
import { currentThemeDefinition } from '../stores';
export let data;
export let menu;
// export let menu;
const { values } = getFormContext();
@@ -163,9 +163,8 @@
height={clientHeight}
data={chartData[0]}
type={$values.chartType}
options={chartData[1]}
plugins={chartData[2]}
{menu}
title={$values.chartTitle}
options={{ ...chartData[1], plugins: chartData[2] }}
/>
{/key}
{/if}