Home >Backend Development >PHP Tutorial >javascript - How to create this picture?
Of course it’s impossible to do this troublesome thing, and you don’t need so many lines, just one:
For example
{
1:888,
2:777,
3:666,
4:999
...
}
What technology is used to generate these line graphs and statistical graphs?
php? JavaScript? Or something else?
What function do you use?
Of course it’s impossible to do this troublesome thing, and you don’t need so many lines, just one:
For example
{
1:888,
2:777,
3:666,
4:999
...
}
What technology is used to generate these line graphs and statistical graphs?
php? JavaScript? Or something else?
What function do you use?
echart bar Baidu
There are many such plug-ins, just choose the one that suits your business. Third-party chart plug-in, this is a Chinese chart plug-in, made of JavaScript. The data is provided by the server, just like you said PHP, PHP provides the data, and the chart plug-in provides the display.
Why do they look so much like the written test questions of Flush
K line chart, echarts can realize it. There is also a plug-in called highcharts, but it seems that it cannot implement K-line charts. Just try it yourself and get comfortable with it first.
highstock
Recommend highcharts, it’s pretty good. The process is: PHP gets the data from the database, organizes and calculates the data, and then passes the data to js. js can use the highcharts library just mentioned. According to a certain form, PHP puts the data Pass it to js, which will then render it into the chart you need and display it in html.