简体   繁体   中英

ASP.net with C# Drawing a line/Series of lines/Chart

I have a web form where the user adds a schedule to a listbox. They pick the day, the events, and the times. Now, I want to draw a small day chart near the bottom of the page. I want a continuous line, midnight to midnight, where depending on the event, the line is drawn on that level of the chart.

Say the user jogs from 5:00AM to 6:00AM, then takes the rest of the day off. The line would start at midnight, draw left to right, until it got to 05:00. Then it would dip to the jogging level of the chart, the line would go until 06:00, then back up to the "at rest" part of the chart and draw all the way to midnight that day.

How do you draw lines on a web form in a fixed area with asp.net using c#?

Jake,

I would recommend using some charting solutions. There were some recommendations on jquery solutions you can read here

You can also explore other vizualization frameworks like Kendo UI - Data Viz

Hope this helps, -covo

There are various charting solutions, as suggested. Another option, if you do not require older IE browser support, is to use the HTML5 Canvas to draw.

http://www.html5canvastutorials.com/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM