如何使用带有来自github的Chartjs.definitelyTyped的TypeScript来计算Chartjs [英] How to work out Chartjs using TypeScript with Chartjs.definitelyTyped from github

查看:251
本文介绍了如何使用带有来自github的Chartjs.definitelyTyped的TypeScript来计算Chartjs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Chartjs(chartjs.org)作为我的图表工具以及使用TypeScript的AngularJS。我已经从GitHub为Chartjs安装了DefinitelyTyped,以便在我的TypeScript书写控制器中创建Chartjs图表。我找不到任何关于这件事的相关问题。

I want to use Chartjs(chartjs.org) as my charting tool along with AngularJS using TypeScript. I have installed DefinitelyTyped for Chartjs from GitHub to incorporate creation of Chartjs charts in my TypeScript written controller. I can't find any related questions on doing this thing.

我只需要知道如何使用DefinitelyTyped将数据填充到我们的图表中。

I just need to know how we populate data to our charts using DefinitelyTyped.

推荐答案

您可以以测试文件的形式找到 chart.d.ts 的示例用法定义旁边: https:/ /github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/chart.js/chart.js-tests.ts

You can find example usages of chart.d.ts in the form of a tests file right next to the definition : https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/chart.js/chart.js-tests.ts

这篇关于如何使用带有来自github的Chartjs.definitelyTyped的TypeScript来计算Chartjs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆