How Java, PHP, Python, JS and other developers draw statistical charts

Abstract:  At present, many programmers basically use the back-end to generate data and pass it to the front-end, and then the front-end renders the data to the drawing library for display, so as to get the various pictures we finally see, but sometimes, we find that we need to There is a lot of data passed, so if the data is passed to the front end for analysis and display at this time, it is very slow, so it is necessary to generate various statistical graphs in the back end. Let's talk about the various programmers. How is the picture made? PHP programmers who have used PHP to make statistical charts should know that JqGraph is the golden partner of PHP. With JqGraph, we can complete the production of many charts, such as scatter charts, histograms, line charts, stock charts, and pie charts. Wait, and now the library already supports PHP7, so we can use it with confidence.

At present, many programmers basically use the back-end to generate data and pass it to the front-end, and then the front-end renders the data to the drawing library for display, so as to get the various pictures we finally see, but sometimes, we find that we need to pass the data. There is a lot of data, so it is very slow to pass the data to the front end for analysis and display at this time, so it is necessary to generate various statistical graphs in the back end. Let's talk about how various programmers are Did you make a picture?

PHP programmers who



have used PHP to make statistical charts should know that JqGraph is the golden partner of PHP. With JqGraph, we can complete the production of many charts, such as scatter charts, histograms, line charts, stock charts, and pie charts. Wait, and now the library already supports PHP7, so we can use it with confidence.

In the article for Python programmers



, we have introduced Bokeh, a drawing software partner for Python, with which we can complete many graphs. 3D streamline diagrams, etc.

JAVA programmers



For Java programmers, the charting library that is often used is JFreeChart. Using JFreeChart, we can implement pie charts, bar charts, scatter plots, and time charts. series), Gantt charts (Gantt charts), etc., and can also be associated with excel and PDF, etc., save the chart to the local and other functions.

JavaScript programmer

image


For JavaScript programmers, there are two classic collocations, one is HighCharts and the other is Echarts. Using the two drawing software, we can achieve basic statistical charts. In addition, echarts is Baidu's, which can Realize bubble charts, uniaxial scatter charts, radar charts, K-line charts, rectangular tree charts, funnel charts, etc. Anyway, this is a very powerful drawing library.

Original link

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326672884&siteId=291194637