- 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 - Basic Area Chart
Following is an example of a basic Area 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 basic Area Chart.
Configurations
We've used AreaChart class to show area based chart.
type='AreaChart';
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 = 'Area Chart'; type='AreaChart'; data = [ ["2013", 1000, 400], ["2014", 1170, 460], ["2015", 660, 1120], ["2016", 1030, 540] ]; columnNames = ['Year', 'Sales',"Expenses"]; options = { }; width = 550; height = 400; }
Result
Verify the result.
Printangular_googlecharts_area_charts.htm
Advertisements
To Continue Learning Please Login
Login with Google