<html>
<head>
      <title>Visualize Data Trends with Stacked Column Charts – Froala</title>
Â
    <script src=https://cdn.fusioncharts.com/fusioncharts/froalacharts/froalacharts.js></script>
    <script src=”https://cdn.fusioncharts.com/fusioncharts/froalacharts/froalacharts.theme.froala.js”></script>
      <script type=”text/javascript”>
        var data = {
            chart: {
    caption: “Yearly Energy Production Rate”,
    subcaption: ” Top 5 Developed Countries”,
    numbersuffix: ” TWh”,
    showsum: “1”,
    plottooltext:
      “$label produces <b>$dataValue</b> of energy from $seriesName”,
    theme: “froala”,
    drawcrossline: “1”
  },
  categories: [
    {
      category: [
        {
          label: “Canada”
        },
        {
          label: “China”
        },
        {
          label: “Russia”
        },
        {
          label: “Australia”
        },
        {
          label: “United States”
        },
        {
          label: “France”
        }
      ]
    }
  ],
  dataset: [
    {
      seriesname: “Coal”,
      data: [
        {
          value: “400”
        },
        {
          value: “830”
        },
        {
          value: “500”
        },
        {
          value: “420”
        },
        {
          value: “790”
        },
        {
          value: “380”
        }
      ]
    },
    {
      seriesname: “Hydro”,
      data: [
        {
          value: “350”
        },
        {
          value: “620”
        },
        {
          value: “410”
        },
        {
          value: “370”
        },
        {
          value: “720”
        },
        {
          value: “310”
        }
      ]
    },
    {
      seriesname: “Nuclear”,
      data: [
        {
          value: “210”
        },
        {
          value: “400”
        },
        {
          value: “450”
        },
        {
          value: “180”
        },
        {
          value: “570”
        },
        {
          value: “270”
        }
      ]
    },
    {
      seriesname: “Gas”,
      data: [
        {
          value: “180”
        },
        {
          value: “330”
        },
        {
          value: “230”
        },
        {
          value: “160”
        },
        {
          value: “440”
        },
        {
          value: “350”
        }
      ]
    },
    {
      seriesname: “Oil”,
      data: [
        {
          value: “60”
        },
        {
          value: “200”
        },
        {
          value: “200”
        },
        {
          value: “50”
        },
        {
          value: “230”
        },
        {
          value: “150”
        }
      ]
    }
  ]
};
        FroalaCharts.ready(function () {
          FroalaCharts.options.license({
key:’rpI3xgkA3D5B3A4D4I4E3C10A6E2B2E2oyjG1C3C8D4E3D2C2C3I2H1B10D3D1F4D5D3B-8I-8G7B6A6E3tB2C1C1uomB1E6B1C3F3B2A21A14B14A8D8blA-9H4C2B2A1A1A1E7B1E5E4B1C3B9A4e==’,
creditLabel: false })
            new FroalaCharts({
                id: “chart_1”,
                type: ‘stackedcolumn’,
                renderAt: ‘ft’,
                width: ‘800’,
                height: ‘500’,
                dataSource: data
            }).render();
        });
    </script>
Â
</head>
<div id=”msg” class=”mb-20″> Chart data in the selected format will be displayed here.</div>
<body>
    <div id=”ft”>FroalaChart will render here</div>
</body>
</html>