Javascript-background management system development problems

Source: Internet
Author: User
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 ....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.