Coder Posted February 16, 2009 Report Share Posted February 16, 2009 This bug relates to chartfx.wpf.dll version 8.0.3314.22631 If I have a chart with a single pane, the pane title does not display. If I have multiple panes, then all the pane titles appear correctly. My code sample... double [] dummyData = { 10, 20, 30, 40, 50, 60, 70, 80 };Chart chart = new Chart();chart.AxesX.Clear();chart.AxesY.Clear();Pane pane = new Pane();Axis axisX = new Axis();Axis axisY = new Axis();chart.AxesX.Add(axisX);chart.AxesY.Add(axisY);SeriesAttributes sa = new SeriesAttributes();sa.Gallery = Gallery.Line;sa.ItemsSource = dummyData;sa.AxisX = axisX;sa.AxisY = axisY;pane.Title.Content = "Test Title 1";pane.Series.Add(sa);chart.Series.Add(sa);chart.Panes.Add(pane);/*pane = new Pane();axisX = new Axis();axisY = new Axis();chart.AxesX.Add(axisX);chart.AxesY.Add(axisY);sa = new SeriesAttributes();sa.Gallery = Gallery.Line;sa.ItemsSource = dummyData;sa.AxisX = axisX;sa.AxisY = axisY;pane.Title.Content = "Test Title 2";pane.Series.Add(sa);chart.Series.Add(sa);chart.Panes.Add(pane);*/ Quote Link to comment Share on other sites More sharing options...
CarlosAC Posted February 17, 2009 Report Share Posted February 17, 2009 Hi Coder. Chart FX ignores Panes when Pane Collection contains only one item. This is not a bug, is by design. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.