Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
Highcharts Area with Missing Points Chart Example
Keywords : How to use highcharts area chart with missing points, Area chart with missing points example using highcharts, Missing values in area chart using highcharts
Example
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Highcharts Area with missing points Chart</title> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <script type="text/javascript"> $(function () { var chartype = { type: 'area', spacingBottom: 30 } var chartitle = { text: 'Fruit consumption *' } var chartsubtitle = { text: '* Jane\'s banana consumption is unknown', floating: true, align: 'right', verticalAlign: 'bottom', y: 15 } var chartlegend = { layout: 'vertical', align: 'left', verticalAlign: 'top', x: 150, y: 100, floating: true, borderWidth: 1, backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF' } var chartxaxis = { categories: ['Apples', 'Pears', 'Oranges', 'Bananas', 'Grapes', 'Plums', 'Strawberries', 'Raspberries'] } var chartyaxis = { title: { text: 'Y-Axis' }, labels: { formatter: function () { return this.value; } } } var chartooltip = { formatter: function () { return '<b>' + this.series.name + '</b><br/>' + this.x + ': ' + this.y; } } var chartplotoptions = { area: { fillOpacity: 0.5 } } var chartcredits = { enabled: false } var chartseries = [{ name: 'John', data: [0, 1, 4, 4, 5, 2, 3, 7] }, { name: 'Jane', data: [1, 0, 3, null, 3, 1, 2, 1] }] $('#container').highcharts({ chart:chartype, title: chartitle, subtitle: chartsubtitle, legend:chartlegend, xAxis:chartxaxis, yAxis: chartyaxis, tooltip: chartooltip, plotOptions: chartplotoptions, credits:chartcredits, series: chartseries }); }); </script> </head> <body> <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> </body> </html>
Click Here to See Result
Result
Previous
Next