Multiple Panes Axis chart

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

meenakshi07 wrote at 2012-10-15 11:24:

Hi!

I like OxyPlot a lot and I love exploring it. thank you very much for your effort!

I am using Multiple Panes Axis chart in my project.

I have few queries on the same

1. If tracker lines color can be changed ? if yes, how ?

2. whenever I select a point on a lineseries, it shows vertical and Horizontal tracker lines. Is is possible to get trackerformatstring(in tooltip) for other lineseries where the tracker lines intersect them ? if yes, please let me know how we can do it ?

I apologise, if I have asked very basic question, as I am new to WPF itself

Thanks in Advance

Regards,

Meenakshi


objo wrote at 2012-10-16 23:38:

1. It should be possible to set the "DefaultTrackerTemplate" property of the Plot control. The default value is

        <ControlTemplate>
          <local:TrackerControl Position="{Binding Position}" LineExtents="{Binding PlotModel.PlotArea}">
            <local:TrackerControl.Content>
              <TextBlock Text="{Binding}" Margin="7" />
            </local:TrackerControl.Content>
          </local:TrackerControl>
        </ControlTemplate>

See Source\Examples\WPF\WpfExamples\Examples\CustomTrackerDemo

The TrackerControl has properties for "LineStroke", "HorizontalLineVisibility" and "VerticalLineVisibility".

2. It is only tracking one series (finds the nearest when you click down, then follows this series), if you want values from other series you must calculate these yourself (oxyplot has few restrictions on the series and axes => it could be any number of intersections...)


meenakshi07 wrote at 2012-10-17 09:08:

Thanks for your help :)