更改折线图颜色 [英] Change Line Chart color

查看:139
本文介绍了更改折线图颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用折线图 从Windows应用程序(vb.net)中的文本框中绘制x值和y值。如果y轴值大于60,我该如何改变线的颜色。到60我想要蓝色。如果从60 t0 70绘制的线条它应该是红色的。请
有人帮助我。

I am using line chart  to plot x value and y value from text box in windows application (vb.net). How can i change color of line if y axis value greater than 60.Upto 60 i want blue color. and if line drawn from 60 t0 70 it should be in red color.Please someone help me.

推荐答案

我想你是使用VS中的图表控件

I'm asuming you are using the chart control from VS

单击图表区域中的行,选择系列属性,单击填充,单击颜色旁边的编辑按钮,在这里您可以输入任何条件希望。

Click on the line in the chart area, choose series properties, click fill, click the edit button next to the color, here you can type in any condition you want.

类似

= IIF(YOURVARNAME> 60," Lightgreen"," Red")

= IIF(YOURVARNAME > 60, "Lightgreen","Red")


这篇关于更改折线图颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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