Highcharts Demo

author(s): Torstein Hønsi

by pclaar

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', 
{
             chart: {
                  
                    defaultSeriesType: 'bar'
                },
                title: { text: '4th Grade' },
                xAxis: {
                    categories: ['SBA English Language Arts 2018','SBA Math 2018']
                },
                credits: { text: '© 2019 schooldigger.com', href: 'https://www.schooldigger.com' },
                yAxis: {
                    title:
                    { text: '% met standard' },
                    max:  100 , min: 0
                },
            legend: { enabled: true },
            tooltip: {
                headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
                pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                '<td style="padding:0"><b>{point.y:.1f}%</b></td></tr>',
                footerFormat: '</table>',
                shared: true,
                useHTML: true
            },
            lang: {
                noData: "There are no test scores to display using this combination.<br />Try different combinations of tests/grades/years to see something. :)"
            },
            plotOptions: {
                column: {
                    dataLabels:
                    { enabled: false, enableMouseTracking: true, pointPadding: 0.2, borderWidth: 0 }
                }
            },
            noData: { style: {"fontSize": "14px" } },
            series: [{name: 'Lake Forest Park Elementary', data: [77.6,65.8]},{name: 'Shoreline School District', data: [69.6,66.4]},{name: 'Washington', data: [57.3,53.8]}]
    }
);