如何使用 NodeJS 创建图表? [英] How to create charts using NodeJS?

查看:26
本文介绍了如何使用 NodeJS 创建图表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以创建图表,例如使用 NodeJS 制作带有自定义图标的条形图和馅饼?

Is it possible to create charts, e.g. bars and pies with custom icons using NodeJS?

推荐答案

d3 可能是您最好的选择.它几乎可以生成任何类型的图表.

d3 is probably your best bet. It can generate nearly any type of chart imaginable.

您可以直接在浏览器中生成图表,或者如果您确实需要图像文件,您可以在节点中使用模块并将输出转换为图像.

You can generate the charts directly in the browser, or if you really need an image file, you can use the module in node and convert the output to an image.

这篇关于如何使用 NodeJS 创建图表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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