
Angular Google Charts - Basic Stepped Chart
Following is an example of a Stepped 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 Stepped Chart.
Configurations
We've used SteppedAreaChart class to show a Stepped chart.
type = 'SteppedAreaChart';
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 = "'The decline of 'The 39 Steps'"; type = 'SteppedAreaChart'; data = [ ["Alfred Hitchcock (1935)", 8.4, 7.9], ["Ralph Thomas (1959)", 6.9, 6.5], ["Don Sharp (1978)", 6.5, 6.4], ["James Hawes (2008)", 4.4, 6.2] ]; columnNames = ['Director (Year)', 'Rotten Tomatoes','IMDB']; options = { vAxis:{ title:'Accumulated Rating' } }; width = 550; height = 400; }
Result
Verify the result.

angular_googlecharts_stepped_charts.htm
Advertisements