如何为MSChart中的正值和负值制作2种不同的颜色 [英] How to make 2 different colors for positive values and negative values in MSChart

查看:121
本文介绍了如何为MSChart中的正值和负值制作2种不同的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vb.net项目中使用MSChart的柱形图(条形图).我需要做以下两件事.

1.我需要自定义y轴标签.我想在y轴标签前添加字符串"R +"
2.如果它是负数,我需要更改条形的颜色.

任何帮助将不胜感激.

问候,
Ata

I’m using column chart (Bar chart) of MSChart in my vb.net project. I need to do following 2 things.

1. I need to customize y-axis labels. I want to add string "R+" before y axis labels
2. I need to change the color of the bar if it is negative.

Any help will be highly appreciated.

Regards,
Ata

推荐答案

更改条形的颜色通常不会完成.如果红色表示数据点,则无论是正值还是负值都应为红色.否则,用户将无法找到它,从而改变了数据的含义.
Changing the color of the bar isn''t generally done. If the color red represents a data point, it should be red whether it''s positive or negative. Otherwise the user won''t be able to find it, and it changes meaning of the data.


这篇关于如何为MSChart中的正值和负值制作2种不同的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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