[英]Is there a way using System.Web.UI.DataVisualization.Charting to rotate a Candlestick chart to display horizontally instead of vertically?
I want the candles to be displayed left to right not bottom to top. 我希望蜡烛从左到右而不是从下到上显示。 I cant seem to find anything with how to achieve this using this library.
我似乎找不到任何有关如何使用此库实现此目标的信息。 Some other client side libraries can do this but I am confined to server side code using this library at the moment.
其他一些客户端库也可以做到这一点,但目前我仅限于使用该库的服务器端代码。
I think to create a horizontal candlestick chart you need to rotate a normal candlestick chart and change the Primary
and Secondary
status of the axis. 我认为要创建水平烛形图,您需要旋转普通烛形图并更改轴的“
Primary
和“ Secondary
状态。 Rotating objects in Forms
it not straightforward and something I haven't tried. 在
Forms
旋转对象不是一件容易的事,而我还没有尝试过。
There is a lot of material on how to rotate simple objects such as labels on StackOverflow and you need to implement some code like the below examples to rotate your mschart
关于如何旋转简单对象(例如StackOverflow上的标签)的材料很多,您需要实现一些代码,例如以下示例,以旋转
mschart
C# vertical label in a Windows Forms Windows窗体中的C#垂直标签
How do I rotate a label in C#? 如何在C#中旋转标签?
I think otherwise you may need to look to other charting sources such as ZedGraph 我认为否则,您可能需要查看其他图表来源,例如ZedGraph
I'd be interested to know how you get on so if you find a solution if you could share it that would be great 我很想知道您的情况,所以如果您找到解决方案,如果可以分享的话,那会很棒
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.