This project is read-only.

Changes in way to get overlayed plots?

Apr 30, 2010 at 7:17 PM

While prototyping a WPF project, I have been using the April 09 version of DynamicDataDisplay. (dll version 0.3.3633.0)

I'm trying to come up to the "current" build (change set 31108).  Apparently the way to get overlayed plots has changed (InjectedPlotter no longer exists).

This is what I used to do to get two overlayed plots, shared x axis, separate y axes (one right side, one left).

    <d3:ChartPlotter Name="SpeedPlotter"
                     Margin="0,0,1,0"
                     MinWidth="500"
                     MinHeight="350">
      <d3:Header TextBlock.FontSize="20"
                 Content="RunGraph" />
      <d3:InjectedPlotter Name="TemperaturePlotter"
                          Background="Red">
        <d3:VerticalAxis x:Name="TemperatureAxis"
                         Placement="Right" />
        <d3:VerticalAxisTitle x:Name="TemperatureAxisTitle"
                              Content="Temperature"
                              Placement="Right" />
      </d3:InjectedPlotter>

      <d3:AxisNavigation Placement="Bottom" />
      <d3:AxisNavigation Placement="Right" />

      <d3:VerticalAxisTitle x:Name="SpeedAxisTitle"
                            Content="Speed" />

      <d3:HorizontalAxisTitle x:Name="TimeAxisTitle"
                              Content="Time" />

    </d3:ChartPlotter>

How should this be accomplished in the current build?

Thanks,

Matt Heffron

Apr 30, 2010 at 7:36 PM
Edited Apr 30, 2010 at 7:39 PM
DevSamples->TwoIndependentAxes works and looks like it is the same pattern
Apr 30, 2010 at 9:02 PM
Edited Apr 30, 2010 at 9:54 PM

However, now it builds but when the application is trying to open the view containing the XAML code above, I get an exception in the Legend constructor:

"The component 'Microsoft.Research.DynamicDataDisplay.Legend' does not have a resource identified by the URI '/DynamicDataDisplay;component/charts/legend.xaml'."

I built the DynamicDataDisplay as "Release" (not "ReleaseXBAP") and just replaced the old version of the DynamicDataDisplay.dll with the new one.

What am I missing?

Thanks,

Matt

DavidJJon, you're right. I was using the wrong part of the full download zip (the Stable part!)