Jump to content
Software FX Community

Left Margin with different length X-Axis labels


Recommended Posts

I use the same chart for several different sets of data. When the user switches from a set with long text labels (X-Axis) to one with short text labels they get a large margin on the left. Below is 3 screenshots, the 1st and last the same chart that has changed when the middle shot has been selected in between. Is there a way of forcing the chart to resize the space it allows for the X-Axis labels? Thanks. 


Link to comment
Share on other sites

I can't replicate the issue. After changing a chart with long x-axis labels to a chart with short x-axis labels, the chart drawing area is recalculated again. Please try the following:

chart1.UpdateSizeNow(); // call this after assigning the x-axis labels

Also, make sure you have the latest service pack of Chartfx 7 installed.



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