File size: 534 Bytes
b5a8a95
 
 
 
 
 
 
d43f961
b5a8a95
 
 
a07e9cb
d43f961
5882a26
b5a8a95
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<script lang="ts">
  import { type NodeProps } from '@xyflow/svelte';
  import NodeWithParams from './NodeWithParams.svelte';
  import { Chart } from 'svelte-echarts';
  import { init } from 'echarts';
  type $$Props = NodeProps;
  export let data: $$Props['data'];
  $: display = JSON.parse(JSON.stringify(data?.display?.value));
</script>

<NodeWithParams {...$$props}>
  {#if data.display}
    <Chart {init} options={display} initOptions={{renderer: 'canvas', width: 250, height: 250}}/>
  {/if}
</NodeWithParams>
<style>
</style>