Home >Backend Development >PHP Tutorial >javascript - Some issues in the development of backend management systems
Newbie, this is my first time working on a backend management system.
The requirement is: select the corresponding time range through the time control, and the line chart will display the data of the selected time range accordingly. The time control and chart control are both controls I found online.
I would like to ask: How are these two controls related? What is the process of selecting the time and date range to display the corresponding date data in the chart. I just joined the front-end not long ago. Please give some advice from those with experience. Thanks.
Newbie, this is my first time working on a backend management system.
The requirement is: select the corresponding time range through the time control, and the line chart will display the data of the selected time range accordingly. The time control and chart control are both controls I found online.
I would like to ask: How are these two controls related? What is the process of selecting the time and date range to display the corresponding date data in the chart. I just joined the front-end not long ago. Please give some advice from those with experience. Thanks.
After selecting the first and last dates, you will have the two parameters of the first and last time.
Your chart should be rendered after passing an array. Then you only need to re-request the corresponding array from the backend based on the first and last time, or filter the array based on time on the frontend, and then render the new array.
The specific method depends on your interface and needs.
js event acquisition time, pass in the chart to process and output the corresponding image. . . .