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 3D Column with Stacking and Grouping Chart Example
Keywords : 3D column chart with stacking and grouping using highcharts, How to use higcharts to create 3d column chart with stacking and grouping options
Example
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Highcharts - 3D column with stacking and grouping 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/highcharts-3d.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <script type="text/javascript"> $(function () { var chartype = { type: 'column', options3d: { enabled: true, alpha: 15, beta: 15, viewDistance: 25, depth: 40 } } var chartitle = { text: 'Total fruit consumption, grouped by gender' } var chartxaxis = { categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas'] } var chartyaxis = { allowDecimals: false, min: 0, title: { text: 'Number of fruits' } } var chartooltip = { headerFormat: '<b>{point.key}</b><br>', pointFormat: '<span style="color:{series.color}">\u25CF</span> {series.name}: {point.y} / {point.stackTotal}' } var chartplotoptions = { column: { stacking: 'normal', depth: 40 } } var chartseries = [{ name: 'John', data: [5, 3, 4, 7, 2], stack: 'male' }, { name: 'Joe', data: [3, 4, 4, 2, 5], stack: 'male' }, { name: 'Jane', data: [2, 5, 6, 2, 1], stack: 'female' }, { name: 'Janet', data: [3, 0, 4, 4, 3], stack: 'female' }] $('#container').highcharts({ chart:chartype, title: chartitle, xAxis:chartxaxis, yAxis: chartyaxis, tooltip:chartooltip, 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