How to work out Chartjs using TypeScript with Chartjs.definitelyTyped from github(如何使用 TypeScript 和来自 github 的 Chartjs.definitelyTyped 来计算 Chartjs)
问题描述
我想使用 Chartjs(chartjs.org) 作为我的图表工具以及使用 TypeScript 的 AngularJS.我已经从 GitHub 为 Chartjs 安装了definiteTyped,以便在我的 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.
我只需要知道我们如何使用 DefinedTyped 将数据填充到图表中.
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
这篇关于如何使用 TypeScript 和来自 github 的 Chartjs.definitelyTyped 来计算 Chartjs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何使用 TypeScript 和来自 github 的 Chartjs.definitelyTyped 来计算 Chartjs


基础教程推荐
- npm start 错误与 create-react-app 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
- Bokeh Div文本对齐 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01
- Bootstrap 模态出现在背景下 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- fetch 是否支持原生多文件上传? 2022-01-01