Remove description box from chart

Nov 4, 2013 at 10:29 AM
Hello,
Dynamic Data Display works really good in my project. There is only one problem: On top right there is a box which contains the description. How can I remove this Box?
My Code for the plotter:
                        // adding graph to plotter
                        shorttermplotter.Children.RemoveAll(typeof(LineGraph));
                        shorttermplotter.AddLineGraph(compositeDataSource, Colors.Blue, 2, "Shortterm");
                        // Force evertyhing plotted to be visible
                        shorttermplotter.FitToView();
I use LineGraphPlotter2D.AddLineGraph(PointDataSource pointSource,Color lineColor, double lineThickness, string description ) and it shows in the Box I want to remove the string description, i.e. "Shortterm". If I assign an empty string, there will be shown an empty box. I want to show no box, or in case that isn't possible it should be shown at the bottom.
Regards
Ottilie
Nov 6, 2013 at 4:48 AM
Hi,
shorttermplotter.LegendVisibility = Visibility.Hidden;
shorttermplotter.NewLegendVisible = false;

//or try this
shorttermplotter.Children.Remove(shorttermplotter.Legend);
shorttermplotter.Children.Remove(shorttermplotter.NewLegend); 
For adding legends at bottom, Add the lines manually in your own panel.

Regards
Ravi.
Marked as answer by Ottilie on 11/11/2013 at 2:53 AM
Nov 11, 2013 at 9:53 AM
Hi Ravi,

Thanks for your tip. That was it.
I testet it both
shorttermplotter.LegendVisible = false;
shorttermplotter.Children.Remove(shorttermplotter.Legend);
In any rate it works fine.

Regards

Ottilie