C#图表更改轴标签 [英] C# Charts Change Axis label

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

问题描述

我的图表看起来像这样

http://imgur.com/XoeCnvO



我想更改Y轴编号并将其标记为1%10%33.%等,如下所示,不更改图。

如何我更改它





所需的输出图:



http://imgur.com/fJ6bQzk

I have a chart it looks like this
http://imgur.com/XoeCnvO

I want to change Y axis numbering and label it 1% 10% 33.% etc as shown below with out changing the plot.
How do I change it


Required output graph:

http://imgur.com/fJ6bQzk

推荐答案

CustomLabel label1 = new CustomLabel

{

FromPosition = y1,//位于轴上。

ToPosition = y2,

Text =Y %//所需的值

};
CustomLabel label1 = new CustomLabel
{
FromPosition = y1,//position on axis.
ToPosition = y2,
Text = "Y%"//value desired
};


这篇关于C#图表更改轴标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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