我想在我的图表上应用比例视图选项。我已经编写了以下代码,它允许我在AxisY上缩放视图。但是在AxisY2上无法实现。
chart1.ChartAreas["Area"].CursorY.IsUserEnabled = true;
chart1.ChartAreas["Area"].CursorY.IsUserSelectionEnabled = true;
chart1.ChartAreas["Area"].AxisY.ScaleView.Zoomable = true;
chart1.ChartAreas["Area"].AxisY2.ScaleView.Zoomable = true;
我可以在AxisY上进行缩放,但无法在AxisY2上进行缩放。是否有人知道我需要在代码中更改或添加什么。