简体   繁体   English

系统如何以图形形式显示生成的结果

[英]How to display the generated results by the system in graph form

We are building a content management website for our thesis. 我们正在为我们的论文建立一个内容管理网站。 Our site provides statistics about the overall crop production. 我们的网站提供了有关总体农作物产量的统计信息。 The user can choose what locations and crops he wants to compare and the results will be displayed in table or in graph. 用户可以选择要比较的位置和农作物,结果将显示在表格或图形中。 We already did the table part. 我们已经做了表格部分。 The problem is in displaying the results, it's not directly from the database. 问题在于显示结果,而不是直接来自数据库。 The system will generate first the results before displaying it. 在显示之前,系统将首先生成结果。 I attached some photos. 我附了一些照片。 enter image description here. 在此处输入图片说明。 We are new to web dev so please help me :( 我们是Web开发人员的新手,请帮助我:(

在此处输入图片说明

In this photo, the barangays are being compared. 在这张照片中,正在比较barangay。 The user chose the production of banana and lettuce. 用户选择了香蕉和生菜的生产。 We want to convert the table data into graph. 我们希望将表数据转换为图形。

There are many libraries for plotting charts and graphs , you may search google for the same . 有很多用于绘制图表的库,您可以在google中搜索相同的库。

I have used 2 for the same till now : 到目前为止,我已经使用了2个:

https://www.highcharts.com/

http://www.chartjs.org/

Please go through both of them and see what fits your need . 请仔细阅读这两个文件,看看有什么适合您的需求。

Would be better to start with chart.js if you are new and then look for highcharts . 如果您是新手,最好先从chart.js开始,然后再寻找高图。

Hope this is helpful 希望这会有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM