The first time a newbie is in the background management system. Requirement: use the time control to select the corresponding time range. the line chart displays the selected time range data. This time control and chart control are all the controls I found on the Internet. I would like to ask: How to associate these two controls, this selection time...
The first time a newbie is in the background management system.
Requirement: use the time control to select the corresponding time range. the line chart displays the selected time range data. This time control and chart control are all the controls I found on the Internet.
Want to ask:How are these two controls associated?, ThisHow does one select the time and date range to display the corresponding date data in the chart?. It's not long before you enter the front-end. Please give me some practical guidance. Thank you.
Reply content:
The first time a newbie is in the background management system.
Requirement: use the time control to select the corresponding time range. the line chart displays the selected time range data. This time control and chart control are all the controls I found on the Internet.
Want to ask:How are these two controls associated?, ThisHow does one select the time and date range to display the corresponding date data in the chart?. It's not long before you enter the front-end. Please give me some practical guidance. Thank you.
After you select two dates, you have two parameters.
Your chart should also be rendered by passing an array, so you only need to re-request the corresponding array from the backend according to the first and last time, or filter the array by time on the front end, then render the new array.
The specific method depends on your interface and requirements.
Js event acquisition time, input the chart to process and output the corresponding image ....