MS图表控件放大MINSIZE问题 [英] MS Chart Control Zoom MinSize issue

查看:167
本文介绍了MS图表控件放大MINSIZE问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实施使用MS图表控件.NET 3.5的WinForms,C#散点图。我的X轴数据是日期时间,发现我不能,放大超过1天的分辨率较小,尽管设置ScaleView如下:

I'm implementing a scatter plot using the MS Chart Control .NET 3.5, WinForms, C#. My x-axis data is DateTime and noticed I couldn't zoom in smaller than a resolution of 1 day, despite setting the ScaleView as follows:

chart1.ChartAreas["MyChart"].AxisX.ScaleView.MinSize = 4;
chart1.ChartAreas["MyChart"].AxisX.ScaleView.MinSizeType = DateTimeIntervalType.Hours;



任何人都有这个问题?任何想法?

Has anyone else had this issue? Any ideas?

推荐答案

想通了这一点......也许我没有RTFM足够接近,但它不是从明显互动演示。

Figured this out... perhaps I didn't RTFM close enough, but it wasn't obvious from the interactive demo.

设置

chart1.ChartAreas["MyChart"].CursorX.Interval = 0;



,然后它让我沿x轴就好放大。

and then it allowed me to zoom along the x-axis just fine.

这篇关于MS图表控件放大MINSIZE问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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