FusionCharts - Displaying anchors in a line chart.

Showing Anchors in chart.

by FusionCharts

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>
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var satisfactionChart = new FusionCharts({
    type: 'stackedcolumn3dline',
    renderAt: 'chart-container',
    width: '500',
    height: '350',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "caption": "Product-wise quarterly revenue Vs profit in last year",
        "subCaption": "Harry's SuperMart",
        "xAxisname": "Quarter",
        "yAxisName": "Revenue (In USD)",
        "numberPrefix": "$",
        "divLineDashed": "1",
        "theme": "fusion"
      },
      "categories": [{
        "category": [{
            "label": "Q1"
          },
          {
            "label": "Q2"
          },
          {
            "label": "Q3"
          },
          {
            "label": "Q4"
          }
        ]
      }],
      "dataset": [{
          "seriesname": "Food Products",
          "data": [{
              "value": "110000"
            },
            {
              "value": "150000"
            },
            {
              "value": "135000"
            },
            {
              "value": "150000"
            }
          ]
        },
        {
          "seriesname": "Non-Food Products",
          "data": [{
              "value": "114000"
            },
            {
              "value": "148000"
            },
            {
              "value": "83000"
            },
            {
              "value": "118000"
            }
          ]
        },
        {
          "seriesname": "Profit",
          "renderAs": "line",
          "showValues": "0",
          "data": [{
              "value": "24000"
            },
            {
              "value": "45000"
            },
            {
              "value": "23000"
            },
            {
              "value": "38000"
            }
          ]
        }
      ]
    }
  });

  satisfactionChart.render();

});