c#改变坐标轴的标注。
来源:互联网 发布:业界良心音乐软件 编辑:程序博客网 时间:2024/05/22 16:48
I have a chart it looks like this
http://imgur.com/XoeCnvO
http://imgur.com/XoeCnvO
I want to change Y axis numbering and label it 1% 10% 33.% etc as shown below without changing the plot.
How do I change it
Required output graph:
http://imgur.com/fJ6bQzk
Try something like this:
CustomLabel label1 = new CustomLabel
{
FromPosition = -3.5,
ToPosition = -2.5,
Text = "1%"
};
CustomLabel label2 = new CustomLabel
{
FromPosition = -2.5,
ToPosition = -1.5,
Text = "10%"
};
CustomLabel label3 = new CustomLabel
{
FromPosition = -1.5,
ToPosition = -0.5,
Text = "33.3%"
};
CustomLabel label4 = new CustomLabel
{
FromPosition = -0.5,
ToPosition = 0.5,
Text = "50%"
};
CustomLabel label5 = new CustomLabel
{
FromPosition = 0.5,
ToPosition = 1.5,
Text = "66.7%"
};
CustomLabel label6 = new CustomLabel
{
FromPosition = 1.5,
ToPosition = 2.5,
Text = "90%"
};
CustomLabel label7 = new CustomLabel
{
FromPosition = 2.5,
ToPosition = 3.5,
Text = "99%"
};
chart1.ChartAreas[0].AxisY.CustomLabels.Add(label1);
chart1.ChartAreas[0].AxisY.CustomLabels.Add(label2);
chart1.ChartAreas[0].AxisY.CustomLabels.Add(label3);
chart1.ChartAreas[0].AxisY.CustomLabels.Add(label4);
chart1.ChartAreas[0].AxisY.CustomLabels.Add(label5);
chart1.ChartAreas[0].AxisY.CustomLabels.Add(label6);
chart1.ChartAreas[0].AxisY.CustomLabels.Add(label7);
0 0
- c#改变坐标轴的标注。
- R作图控制坐标轴刻度的个数和标注
- R作图控制坐标轴刻度的个数和标注
- 改变chart坐标轴的起始值
- GDI+画可改变大小的坐标轴
- C#实现坐标轴及其上的点。
- MATLAB画图:改变坐标轴刻度的显示数值
- MATLAB画图技巧:改变坐标轴刻度的显示数值
- matlab中坐标轴标注和特殊字体
- matlab绘制曲面并标注坐标轴
- matlab坐标轴标注和特殊字体…
- 标注C#
- C# gdi画坐标轴
- C# 封装完成的坐标轴及画折线类
- 三维软件开发笔记---项目数据管理升级+坐标轴简单标注
- Python 使用matplotlib画图添加标注、及移动坐标轴位置
- Python 使用matplotlib画图添加标注、及移动坐标轴位置
- MATLAB函数图像坐标轴刻度改变
- Wordpress摘要显示更多文字
- ReviewForJob——桶式排序+基数排序(==多次桶式排序)
- Effective C++ Item 04-确定对象被使用前以先被初始化
- javascript中 计算中的坑
- mybatis查询嵌套之参数传递
- c#改变坐标轴的标注。
- python工具2to3.py的使用
- Unity下开发VR应用
- ACM模板——Floyd算法
- 项目随笔 Android
- 【zzulioj 1896 985的买饮料难题 】
- MAC php 安装
- Android 优雅的为RecyclerView添加HeaderView和FooterView
- 用两个队列实现栈