Line chart with independent ticks

Showing how to set anchor alpha

by Nabajeet Sonowal

HTML

<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function () {
    var satisfactionChart = new FusionCharts({
        type: 'line',
        renderAt: 'chart-container',
        id: 'myChart',
        width: '500',
        height: '300',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Customer Satisfaction Averages",
                    "chartBottomMargin": "30",
                    "chartRightMargin": "30",
                    "subcaption": "Last week",
                    "xaxisname": "Day",
                    "yaxisname": "Satisfaction (In%)",
                    "numbersuffix": "%",
                    "showValues": "0",
                    "animation": "0",
                //Theme
                "theme": "fint"
            },
                "data": [{
                "label": "Monday",
                    "value": "22.5"
            }, {
                "label": "Tuesday",
                    "value": "42.4"
            }, {
                "label": "Wednesday",
                    "value": "28.2"
            }, {
                "label": "Thursday",
                    "value": "22.8"
            }, {
                "label": "Friday",
                    "value": "39.2"
            }, {
                "label": "Saturday",
                    "value": "66.45"
            }],
            //All annotations are grouped under this element
            "annotations": {
                "drawImmediately": "1",
                    "showbelow": "1",
                //Annotations on a chart can be divided across multiple groups for easy management, and manipulation through API
                "groups": [{
                    //Each group needs a unique ID
                    "id": "Tuesday",
                    //Under each group, you can define multiple items. Each item is a polygon, text or image - with its own set of parameters.
                    "items": [{
                        //Each item needs a unique ID
                       ...