C# .NET - In "Scrolling in WPF Toolkit’s Column Chart" you define a Plotarea, I need for LinesSeries
Asked By Martin Funke on 29-Jun-22 05:16 AM
Hello NullSkull,
since weeks, I fight with the Dotnet.Pearls.Project Datavisualisation.Toolkit.
Can you give me a hint how I get a defined PlotArea. This time I use the Chart, but I need it without Axes for:
MouseActions like Zoom, dragging the vertical ReferenceLine to a TimeSerie of all LinePoints at one time or Inline Scrollbars. I didn't find a workarround jet!
Your part:
public class ScrollableColumnSeries : ColumnSeries
{
private Panel plotArea;
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
plotArea = GetTemplateChild(DataPointSeries.PlotAreaName) as Panel;
}
}
I tried with LineSeries, but it does not work:
private Panel plotArea;
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
plotArea = GetTemplateChild("ChartControl") as Panel;
}
DataPointSeries.PlotAreaName is a private object.
Please give a short feedback, if or if not. BR. Martin