Drawing a 2D line on a canvas

Posted by Jason94 on Stack Overflow See other posts from Stack Overflow or by Jason94
Published on 2010-05-19T14:53:27Z Indexed on 2010/05/19 15:00 UTC
Read the original article Hit count: 167

Filed under:
|

I have the datalist = 62, 76, 80, 72, 71, 75, 77 that i want to present as a 2D line drawed point to point. In my Wpf application i have a canvas with the height: 173 and width: 455.

How do i go about it and draw a line by my datalist and use almost the whole height of the canvas? as it is now the data is just represented on a line at the bottom at the canvas, not using (and therefor giving a bad representation of the data) whole heigh of the canvas. It would also be nice to place it in the center of the box too...

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf