简体   繁体   English

如何在制图控件(Winforms .NET 3.5)上编写自定义Y轴标题

[英]How to write custom Y-Axis titles on Charting control (Winforms .NET 3.5)

I use the Microsoft Chart Controls for Microsoft .NET 3.5 to plot X/Y data. 我使用Microsoft .NET 3.5Microsoft图表控件来绘制X / Y数据。 The Y-axis shows positive values for apples and negative values for oranges. Y轴显示苹果为正值,橙子为负值。 The X-axis shows the time. X轴显示时间。

I want to place axis titles to the Y-axis. 我想将轴标题放置在Y轴上。 The apples title must be above the Y zero value, the oranges title must be below the Y zero value. 苹果标题必须在Y零值之上, 橙子标题必须在Y零值之下。 The charting control can be re-sized, so I must update the position of the title appropriately. 可以调整图表控件的大小,因此我必须适当地更新标题的位置。

1) How do place more than one axis title? 1)如何放置多个轴标题?

2) How do I control the location of the axis title(s) so that they are in the above zero ore below zero range respectively? 2)如何控制轴标题的位置,使其分别位于零位以上的零位或零位以下的零位?

The control does not support the requested feature. 该控件不支持所请求的功能。 Only one title can be assigne to each axis. 每个轴只能分配一个标题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM