在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):gmazzamuto/ng2-google-charts开源软件地址(OpenSource Url):https://github.com/gmazzamuto/ng2-google-charts开源编程语言(OpenSource Language):TypeScript 87.0%开源软件介绍(OpenSource Introduction):ng2-google-charts
Versions
Features
SponsoringIf you are using this package commercially or if you find it useful, please consider sponsoring this project. Installnpm i --save ng2-google-charts Quick startImport the module in your import { Ng2GoogleChartsModule } from 'ng2-google-charts';
@NgModule({
...
imports: [
...
Ng2GoogleChartsModule,
],
providers: [
})
export class AppModule { } In your templates, use the <google-chart [data]="pieChart"></google-chart> and in the corresponding import { GoogleChartInterface, GoogleChartType } from 'ng2-google-charts';
public pieChart: GoogleChartInterface = {
chartType: GoogleChartType.PieChart,
dataTable: [
['Task', 'Hours per Day'],
['Work', 11],
['Eat', 2],
['Commute', 2],
['Watch TV', 2],
['Sleep', 7]
],
//firstRowIsData: true,
options: {'title': 'Tasks'},
}; Usage & DemoCheck out the reference documentation and the live demo. License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论