寻找一种将文本文件中的数据表示为图形的方法
我有一个文本文件,我想将其输出为图表。文本文件看起来像这样 -
Item 1
---
1234
Item2
---
5678
Item3
----
910112
我想将其输出到条形图或饼图。最好的方法是什么?
I have a text file that i would like to output as a graph. The text file looks something like this -
Item 1
---
1234
Item2
---
5678
Item3
----
910112
I would like to output it to a bar graph or a pie chart. What would the best way to do this be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
或者你可以使用 GD::Graph
Or you could use GD::Graph
如果您想要实际图像,请使用 Chart::Pie (IIRC 它制作 GIF)- 该链接是 POD 中的使用示例。
同样的Chart包也有Chart::Bars 以及
If you want an actual image, use Chart::Pie (IIRC it maks GIFs) - the link is an example of usage in POD.
The same Chart package also has Chart::Bars as well