Jump to content
Software FX Community

overflow error on SetScrollView


Recommended Posts

guys can you please help me....

I have built my chart to following sample page on the ChartFX demo  to creating zoomscroll chart, see following link: http://demo.softwarefx.com/chartfx/aspnet/ajaxsamples/  and choose sample zoom scrollbar.

but when i change the the series to AxisY2, then i got error "overflow" do you have any idea how to resolve it? I think this is bugs on chartFX. whether i change setscrollview parameter by hardcoded value, it still got error.

To reproduce the error, just download the code from demo linkhttp://demo.softwarefx.com/chartfx/aspnet/ajaxsamples/ and change series axis to axisY2

ChartDetail.AllSeries.AxisY = ChartDetail.AxisY2;

ChartWhole.AllSeries.AxisY = ChartWhole.AxisY2;

Thank you

R. Hadi

Link to comment
Share on other sites

 I wouldn't think this is a Chart FX bug. Haven't looked at that sample in a while, but I believe there is more to setting the series to the secondary axis than the code you have posted. It seems you will have to re-write other parts of the sample as well.

Link to comment
Share on other sites

Thanks Andre, anyway I found the root cause problem...

If we set axis Y to axisY2 on the first page load(postback)... and when callback event raised then we must add syntax to re-setting the axisY series to AxisY2 again....

I think if chartfx still keep all styles when callback then it should be included style of axisY2 right?

void page_load(){ 

MainChartFX.AllSeries.AxisY = MainKPIChart.MainChartFX.AxisY2;


void ChartFx1_Callback(){

MainChartFX.AllSeries.AxisY = MainKPIChart.MainChartFX.AxisY2;

MainChartFX.SetScrollView(x1, x2);


Link to comment
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.

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.

  • Create New...