FusionCharts - Using annotations to add static information bar in shape of line + text

Created using FusionCharts Suite XT - www.fusioncharts.com

HTML

<script src="http://static.fusioncharts.com/code/latest/fusioncharts.powercharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!-- 
Using annotations to add static information bar in shape of line + text. In this example, we use the information bar to highligh the highest footfall. 

    Element - Annotation
    # type - set to 'line'.

-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function () {
    var visitChart = new FusionCharts({
        type: 'spline',
        renderAt: 'chart-container',
        width: '400',
        height: '300',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "theme": "fint",
                "caption": " ",
                "subCaption": " ",
                "xAxisName": "Day",
                "yAxisName": "No. of Visitors",
                "showValues": "0"
            },
            //All annotations are grouped under this element
            "annotations": {
                //Annotations on a chart can be divided across multiple groups for easy management, and manipulation through API
                "groups": [
                    {                       
                        "id" : "infobar",
                        //Under each group, you can define multiple items. Each item is a polygon, text or image - with its own set of parameters
                        "items": [
                        
                            {
                                "id": "label",
                                "type": "text",
                                "text": "Highest footfall 25.5K",
                                "fillcolor": "#6baa01",
                                "fontSize":"15",
                                "x": "$captionStartX + 20",
                                "y": "$captionStartY"
                            }
                        ]
                        
                    }
                ]
            },
            "data": [
                {
                    "label": "Mon",
                    "value": "15123"
                }, 
                {
                    "label": "Tue",
                    "value": "14233"
                }, 
                {
                    "label": "Wed",
                    "value": "25507"
                },
                {
                    "label": "Thu",
                  ...