开发者

How to create limit marker lines in Silverlight 4 Chart

开发者 https://www.devze.com 2023-01-18 21:11 出处:网络
I\'m creating LineSeries Sivlerlight chart to display changes of the system performance in real time.

I'm creating LineSeries Sivlerlight chart to display changes of the system performance in real time.

The Y coordinate is numeric performance value, X is the date when this value was retrieved.

I need to add line that would represent upper limit for those values that are considered to be normal, so the user can easily see what limits have exceeded their limit and what limits haven't.

The line sho开发者_StackOverflow中文版uld also be in the chart legend. The line will be added dynamically from code during the retrieving of results.

Thanks.


Just add another line series to the chart that contains values for every date also present in your actual data series. (You could do this by adding an additional property to the data objects representing the original data)

This value always has the same value so would draw a straight line. The series title would appear in the legend. You could style the data point for this series to prevent the small square data point shapes appearing on the line.

0

精彩评论

暂无评论...
验证码 换一张
取 消