Skip to content

Sample: Area

Live preview

Code

html
<div id="chart" style="width:800px;height:420px"></div>
<script type="module">
  import { Insight } from 'https://unpkg.com/@chartbuddy.io/embed';

  new Insight('#chart', {
    persist: false,
    chartData: {
      chartType: 'area',
      isDataTransposed: true,
      seriesData: [
        ['', 'Q1', 'Q2', 'Q3', 'Q4'],
        ['Series A', 20, 28, 26, 32],
        ['Series B', 12, 14, 18, 16],
      ],
      title: { visible: true, text: 'Area mix' },
      subtitle: { visible: false, text: '' },
    },
  });
</script>

Developer & LLM documentation · Not the end-user Help Center · Help Center