- Angular Google Charts Tutorial
- Home
- Overview
- Environment Setup
- Configuration Syntax
- Area Charts
- Bar Charts
- Bubble Charts
- Candlestick
- Column Charts
- Combination
- Histogram
- Line Charts
- Maps
- Organization
- Pie Charts
- Sankey Charts
- Scatter Chart
- Stepped Area
- Table Chart
- TreeMap Chart
- Angular Google Charts Resources
- Quick Guide
- Resources
- Discussion
Angular Google Charts - 3D Pie Chart
Following is an example of a 3D Chart.
We have already seen the configurations used to draw a chart in Google Charts Configuration Syntax chapter. Now, let us see an example of a Donut Chart.
Configurations
We've used is3D configuration to show a Pie Chart as 3D Pie Chart.
options = { is3D:true };
Example
app.component.ts
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'Browser market shares at a specific website, 2014'; type = 'PieChart'; data = [ ['Firefox', 45.0], ['IE', 26.8], ['Chrome', 12.8], ['Safari', 8.5], ['Opera', 6.2], ['Others', 0.7] ]; columnNames = ['Browser', 'Percentage']; options = { is3D:true }; width = 550; height = 400; }
Result
Verify the result.
angular_googlecharts_pie_charts.htm
Advertisements
To Continue Learning Please Login
Login with Google