Jump to content
Software FX Community

SetScrollView in multiple panes


Recommended Posts

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;

====================================================

 

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...