Jump to content
Software FX Community
dolgorae

Miss-alignment of Y-axes in Multi-pane chart

Recommended Posts

As the attached file, the shape of the Y-axis in second pane of the multi-pane chart is out of alignment.

Chart initialization code is,

  StackPanePanel sPPanel = new StackPanePanel();

  sPPanel.Orientation = StackPaneOrientation.Vertical;

  chart1.PanesPanel = sPPanel;

  chart1.Panes.Clear();

 

and the code of 'for' loop to add panes to the chart is,

  Pane pane0 = new Pane();

  pane0.Series.Add(chart1.Series);

  chart1.Panes.Add(pane0);

 

When I change the size of the chart, such as moving a grid-splitter, the alignment of the Y-axes become worse and worse gradually.

My current version of the ChartFX for WPF is 3547.21860

What should I do??

Thank you.

chartSample.txt

Share this post


Link to post
Share on other sites

And if the number of digits varies in each Y-axis values in multi-pane chart, the alignment of the Y-axes becomes bad, too.

ex, if the number of digits of Y axis in first pane is 4 (1000~9999), and 1 in second pane (0~9), then the Y axes of Pane1 and Pane2 would be out of alignment.

 

What should I do to solve this problem?? Is there any option to set the offset of Y-axis?

Thank you.

 

Share this post


Link to post
Share on other sites

This problem happens in ChartFX for WPF sample project, too.

1. Run the "Additional Axes and Panes" sample application.

2. Check to the "Separate Panes" checkbox.

3. Resize the window.

Must be a bug??

Share this post


Link to post
Share on other sites

This bug is related to the titles in the Y axes, we are actively working on this issue but as a temporary workaround I would recommend you comment out the code where you set the AxisY Title property.

Note that you can create a Title, set its DockPanel.Dock attached property to Dock.Left and add it to the Chart's global collection of titles, this will show a single title to the left explaining what the Y axes are plotting.

JuanC

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