<?php
include("fusioncharts.php");

$columnChart = new FusionCharts("msline", "ex1", "100%", 400, "chart-1", "json", '{
  "chart": {
    "caption": "Reach of Social Media Platforms amoung Adults",
    "yaxisname": "% of Adults on this platform",
    "subcaption": "2018-2023",
    "showhovereffect": "1",
    "numbersuffix": "%",
    "drawcrossline": "1",
    "plottooltext": "<b>$dataValue</b> of Adults were on $seriesName",
    "theme": "candy"
  },
  "categories": [
    {
      "category": [
        {
          "label": "2018"
        },
        {
          "label": "2019"
        },
        {
          "label": "2021"
        },
        {
          "label": "2023"
        }
      ]
    }
  ],
  "dataset": [
    {
      "seriesname": "Facebook",
      "data": [
        {
          "value": "68"
        },
        {
          "value": "69"
        },
        {
          "value": "69"
        },
        {
          "value": "68"
        }
      ]
    },
    {
      "seriesname": "Instagram",
      "data": [
        {
          "value": "35"
        },
        {
          "value": "37"
        },
        {
          "value": "40"
        },
        {
          "value": "47"
        }
      ]
    },
    {
      "seriesname": "LinkedIn",
      "data": [
        {
          "value": "25"
        },
        {
          "value": "27"
        },
        {
          "value": "28"
        },
        {
          "value": "30"
        }
      ]
    },
    {
      "seriesname": "Twitter",
      "data": [
        {
          "value": "24"
        },
        {
          "value": "22"
        },
        {
          "value": "23"
        },
        {
          "value": "22"
        }
      ]
    }
  ]
}');

$columnChart->render();
?>