naveenhighcharts

naveen gayar

by navindian

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>

<div id='babylonContainer'>

</div>

<input id="btnenabledisable" type="button" value="Enable/Disable"></input>

JavaScript

/**
 * @author 320006441
 */
var chart;
$(document).ready(function() {
    chart = new Highcharts.Chart({
        chart : {
            renderTo : 'babylonContainer'
        },
        series :{ [
            {
                "id": "messages800",
                "name": "messages800",
                "data": "([[1350971639000,800],[1351144439000,800]])"
            },
            {
                "onSeries": "messages800",
                "data": [
                    {
                        "text": "800|Reserve failure 16 trip|Acknowleged",
                        "title": "1016",
                        "x": "1351077140000"
                    },
                
                ],
                "shape": "squarepin",
                "type": "flags",
                "showInLegend": "false"
            }                            
                 
                 ]
    },
        legend: 
        {
            enabled:true                    
        },
        plotOptions:
        {
            series:
            {
                showCheckbox : true
            }
        },
        
    });
});