缺失值区域图
以下是缺失值区域图示例
我们在 Google Charts 配置语法 章节中已了解了绘制图表时使用的配置。现在,让我们来看一个缺失值区域图示例。
示例
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", null, 1120],
["2016", 1030, 540]
];
columnNames = ['Year', 'Sales',"Expenses"];
options = { };
width = 550;
height = 400;
}
结果
验证结果。
angular_googlecharts_area_charts.htm
广告