walter Posted November 19, 2007 Report Share Posted November 19, 2007 I try SetScrollView in pane2 but had no effect http://www.wretch.cc/album/show.php?i=isponder&b=11&f=1310563672&p=0 any suggestions will be appreciated. Here is my code: ==================================================== inChartObj.Scrollable = true; inChartObj.Axis[3].LabelsFormat.Decimals = 0; inChartObj.Axis[3].SetScrollView(0,200); inChartObj.Axis[3].Pane = 1; inChartObj.Axis[3].Gridlines = true; inChartObj.Axis[3].Position = SoftwareFX.ChartFX.AxisPosition.Near; ==================================================== Quote Link to comment Share on other sites More sharing options...
Frank Posted November 21, 2007 Report Share Posted November 21, 2007 X-Axes are shared by all panes. Only Y-Axes belong to a specific pane. Quote Link to comment Share on other sites More sharing options...
walter Posted November 21, 2007 Author Report Share Posted November 21, 2007 Dear Frank, Thanks for your response.In my case, i SetScrollView at Y-Axes, not X-Axes.After trial and error, i found SetScrollView has no effect until set Max/Min value.http://www.wretch.cc/album/show.php?i=isponder&b=11&f=1310563674&p=2The AxisY3 located at pane[1] is generated by the following code//================================ chart1.Axis[3].LabelsFormat.Decimals = 0; chart1.Axis[3].Max = 1000; chart1.Axis[3].Min = 0; chart1.Axis[3].Gridlines = true; chart1.Axis[3].Pane = 1; chart1.Axis[3].SetScrollView(0,200);//================================If i disable setting Max/Min value, the scroll bar disapears.http://www.wretch.cc/album/show.php?i=isponder&b=11&f=1310563675&p=31. i don't want to set Max/Min value coz the Max value ranges from 0 - 400002. The scrollbars vanish when clicking Maximize/Restore Down buttonhttp://www.wretch.cc/album/show.php?i=isponder&b=11&f=1310563673&p=1Please help me on this.Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Frank Posted November 21, 2007 Report Share Posted November 21, 2007 Ok. I misunderstood your first post. When are you setting data to this chart? Is it before or after this code? If it is after, the problem you have is that by the time you call SetScrollView the axis has no scale. Make sure you call SetScrollView AFTER the axis has a scale (after you pass the data to he chart). Also, in order for this Y-Axis to have th Min/Max calculated automatically you need to assign at least one series to it. Do this BEFORE setting the chart's data. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.