in

Software FX Community

Discuss and find help for all Software FX products.

Pane Title Not Displaying

Last post 02-17-2009 12:28 PM by CarlosAC. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-16-2009 4:51 PM

    • Coder
    • Top 200 Contributor
    • Joined on 12-30-2008

    Pane Title Not Displaying

    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);
    */

    Filed under: , ,
  • 02-17-2009 12:28 PM In reply to

    • CarlosAC
    • Top 10 Contributor
    • Joined on 02-04-2009
    • Costa Rica

    Re: Pane Title Not Displaying

    Hi Coder.  Chart FX ignores Panes when Pane Collection contains only one item.  This is not a bug, is by design.
Page 1 of 1 (2 items)
Copyright 2008 Software FX, Inc.