Jump to content
Software FX Community
AhmedTarekHasan

Too many bars collapse

Recommended Posts

Hi,

On our project we are using Chart FX 7 (2-D bars Chart), Web Forms, .Net, C#

While
using Chart Fx 7 on our project, data size varies at run-time and at
some point there are so many bars to view. Currently the viewed chart is
messed up as too many bars are drawn on small area and ChartFx tries to make them all fit in this area. So the volumes are so tiny that the labels interfere and are not readable. This is beside that all bars are so tiny. Please check the screenshot below.

https://www.mysoftwarefx.com/incidents/DownloadFile.aspx?FID=c2300c89-774f-43bd-8198-6a8493be6e90 

We need to make the chart freely expand horizontally without compressing the bars with the option to scroll horizontally.

Could you please provide us with the right settings and some code samples for this?

 

Thanks in advance.

Share this post


Link to post
Share on other sites



Hello Ahmed,

In order to add the AxisX scrollbar, you have to enable
the zoom. Please refer to the following sample code that shows how to set the
zoom for the three first points of 20 points:



//Set initial view from point 1 to 3

chart1.AxisX.Zoom(1, 3);



//Activate the initial zoom

chart1.UpdateSizeNow();

I hope this helps,

Share this post


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...