YouTip LogoYouTip

Highcharts 3D Charts

.example { position:relative; } .example .btn { position:absolute; right:10px; top:10px; }
 Logo Learning is not just about technology, but also about dreams!

Highcharts 3D Charts

In this chapter, we will introduce Highcharts' 3D charts.

No. Chart Type
1 3D Column Chart
2 3D Column Chart with Null Values
3 Stacked 3D Column Chart
4 3D Pie Chart
5 3D Donut Chart
Example
function tryIt() { var chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'column', options3d: { enabled: true, alpha: 15, beta: 15, depth: 50, viewDistance: 25 } }, title: { text: '3D Column Chart' }, plotOptions: { column: { depth: 25 } }, series: [{ name: 'Sales', data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] }] }); } tryIt();
Example
function tryIt2() { var chart = new Highcharts.Chart({ chart: { renderTo: 'container2', type: 'pie', options3d: { enabled: true, alpha: 45, beta: 0 } }, title: { text: '3D Pie Chart' }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', depth: 35, dataLabels: { enabled: true, format: '{point.name}: {point.percentage:.1f} %', style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' } } } }, series: [{ type: 'pie', name: 'Browser share', data: [ ['Firefox', 45.0], ['IE', 26.8], { name: 'Chrome', y: 12.8, sliced: true, selected: true }, ['Safari', 8.5], ['Opera', 6.2], ['Others', 0.7] ] }] }); } tryIt2();
Example
function tryIt3() { var chart = new Highcharts.Chart({ chart: { renderTo: 'container3', type: 'pie', options3d: { enabled: true, alpha: 45, beta: 0 } }, title: { text: '3D Donut Chart' }, plotOptions: { pie: { innerSize: 100, allowPointSelect: true, cursor: 'pointer', depth: 35, dataLabels: { enabled: true, format: '{point.name}: {point.percentage:.1f} %', style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' } } } }, series: [{ type: 'pie', name: 'Browser share', data: [ ['Firefox', 45.0], ['IE', 26.8], { name: 'Chrome', y: 12.8, sliced: true, selected: true }, ['Safari', 8.5], ['Opera', 6.2], ['Others', 0.7] ] }] }); } tryIt3();
Example
function tryIt4() { var chart = new Highcharts.Chart({ chart: { renderTo: 'container4', type: 'column', options3d: { enabled: true, alpha: 15, beta: 15, depth: 50, viewDistance: 25 } }, title: { text: 'Stacked 3D Column Chart' }, plotOptions: { column: { stacking: 'normal', depth: 25 } }, series: [{ name: 'Sales', data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] }, { name: 'Expenses', data: [37.6, 49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6] }] }); } tryIt4();
← Php ImagecoloratPhp Imagecolorallocate β†’