Angular-googlecharts-bubble-basic
提供:Dev Guides
Google Angular Charts-基本的なバブルチャート
以下は、基本バブルチャートの例です。
link:/angular_googlecharts/angular_googlecharts_configuration_syntax [Googleグラフの構成構文]の章で、グラフを描画するために使用される構成を既に確認しました。 次に、バブルチャートの例を見てみましょう。
構成
*BubbleChart* クラスを使用して、基本的なバブルチャートを表示しました。
type = 'BubbleChart';
例
*_app.component.ts_*
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.componentl',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'Age vs Weight';
type = 'BubbleChart';
data = [
["", 8, 12],
["", 4, 5.5],
["", 11, 14],
["", 3, 3.5],
["", 6.5, 7]
];
columnNames = ['Id', 'Age','Weight'];
options = { };
width = 550;
height = 400;
}
結果
結果を確認します。