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 Spline Chart Example
Keywords : How to implement highcharts area spline chart with example, Highcharts area-spline chart using jquery, Area spline using highcharts with example
Example
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Highcharts Area-spline 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: 'areaspline' } var chartitle = { text: 'Average fruit consumption during one week' } 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: [ 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday' ], plotBands: [{ // visualize the weekend from: 4.5, to: 6.5, color: 'rgba(68, 170, 213, .2)' }] } var chartyaxis = { title: { text: 'Fruit units' } } var chartooltip = { shared: true, valueSuffix: ' units' } var chartcredits = { enabled: false } var chartplotoptions = { areaspline: { fillOpacity: 0.5 } } var chartseries = [{ name: 'John', data: [3, 4, 3, 5, 4, 10, 12] }, { name: 'Jane', data: [1, 3, 4, 3, 3, 5, 4] }] $('#container').highcharts({ chart:chartype, title: chartitle, legend:chartlegend, xAxis:chartxaxis, yAxis: chartyaxis, tooltip:chartooltip, credits:chartcredits, plotOptions: chartplotoptions, 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