Chart

Example

Code

<fine-chart id='myChart1'></fine-chart>

<script type="text/javascript">
  fine.ready(function(e) {
    // imports are loaded and elements have been registered
    var chartEl = document.getElementById('myChart1');
    chartEl.config = {
      Width: 600,
      Height: 400,
      Legend: {
        Appearance: {
          Position: 'bottom'
        }
      },
      PlotArea: {
        ListOfSeries: [
          {
            ChartType: 'area',
            Items: [
              {YValue: 70}, {YValue: 70}, {YValue: 70}
            ]
          },
          {
            ChartType: 'area',
            Items: [
              {YValue: 50}, {YValue: 50}, {YValue: 50}
            ]
          }
        ],
        XAxis: {
          Title: 'Category Axis',
          Items: [
            {Text: 'Q1'}, {Text: 'Q2'}
          ]
        }
      }
    };
    chartEl.init();
  });
</script>