
Stacked Stepped Chart
Following is an example of a Stacked 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 Stacked Stepped Chart.
Configurations
We've used isStacked configuration to show a Stepped chart as stacked.
options = { isStacked: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 = "'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' }, isStacked:true }; width = 550; height = 400; }
Result
Verify the result.

angular_googlecharts_stepped_charts.htm
Advertisements