如何在wpftoolkit图表中为线图点添加多种颜色 [英] how to add multiple color to line graph points in wpftoolkit chart

查看:85
本文介绍了如何在wpftoolkit图表中为线图点添加多种颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在wpf中使用wpftoolkit图表控件,它有线图,线图具有不同的值 


,范围从10到200。在线图中 如果一个值低于50,我想用红色显示该点,值大于


我想要显示绿色并以粉红色显示,那么如何根据价值改变颜色。


目前我可以为所有值提供相同的颜色。但我想根据价值给出颜色。 



任何人都可以帮助我。 

解决方案

AFAIK系列只能有一种颜色。





I am using wpftoolkit chart control in wpf which is having line graph the line graph is having different values 

ranging from 10-200. In line graph  if a value is below 50 I want to show that point in red color, the value which is greater

than 150 I want to show that in green color and rest in pink color so how to change color base on value.

currently I able to give same color to all value. But I want to give color as per the value. 

can any body help me. 

解决方案

AFAIK a series can only have the one colour.



这篇关于如何在wpftoolkit图表中为线图点添加多种颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆