FusionCharts - Customizing based on Events in Gantt Chart

Created using FusionCharts Suite XT - www.fusioncharts.com

by Aniruddha Galgali

HTML

<script src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<!-- Events in Gantt charts. An example of using dataplotClick Event  -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var smoPlan = new FusionCharts({
    type: 'gantt',
    renderAt: 'chart-container',
    width: '100%',
    height: '530',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "theme": "fusion",
        "dateformat": "mm/dd/yyyy",
        "caption": "Calendar Timeline",
        "subcaption": "Project Plan",
        "chartbottomMargin": "10",
        "showLabel": "0",
        "tooltipPosition": "bottom",
        "toolTipBorderColor": "000000",
         "milestoneFontSize": 14
        //"plottooltext": "$processName{br} $label starting date $start{br}$label ending date $end",
        //"animation": 1,
        //"forceRowHeight": 1
      },
      "categories": [{
        "category": [{
            "start": "03/01/2022",
            "end": "03/31/2022",
            "label": "Mar 2022"
          },{
            "start": "04/01/2022",
            "end": "04/30/2022",
            "label": "Apr 2022"
          },
          {
            "start": "05/01/2022",
            "end": "05/31/2022",
            "label": "May 2022"
          },
          {
            "start": "06/01/2022",
            "end": "06/30/2022",
            "label": "Jun 2022"
          },
          {
            "start": "07/01/2022",
            "end": "07/31/2022",
            "label": "Jul 2022"
          },
          {
            "start": "08/01/2022",
            "end": "08/31/2022",
            "label": "Aug 2022"
          },
          {
            "start": "09/01/2022",
            "end": "09/30/2022",
            "label": "Sep 2022"
          },
          {
            "start": "10/01/2022",
            "end": "10/31/2022",
            "label": "Oct 2022"
          },
          {
            "start": "11/01/2022",
            "end": "11/30/2022",
            "label": "Nov 2022"
          },
          {
            "start": "12/01/2022",
            "end": "12/31/2022",
            "label": "Dec 2022"
          },
          {
           ...