Combined Visualization

2 posts, 0 answers
  1. leblanc
    leblanc avatar
    56 posts
    Member since:
    Aug 2010

    Posted 11 Nov 2011 Link to this post

    I am trying to create two sparklines that share a y axis.

    The x axis is fine but both scale individually to take full height of parent container.  How can i force them to share the same y axis?  I'm considering adding an additional point having the min/max to initialize the same scale... however hopefully there is a better approach.


    thanks

    <Grid Grid.Column="0">
        <Controls:RadAreaSparkline ItemsSource="{Binding DataPoints}"
                            XValuePath="Date"
                            YValuePath="Value1"
                            ShowHighPointIndicators="False"
                            ShowLowPointIndicators="False" 
                            Margin="0,3" />
        <Controls:RadScatterSparkline ItemsSource="{Binding DataPoints}"
                            XValuePath="Date"
                            YValuePath="Value2"
                            ShowHighPointIndicators="False"
                            ShowLowPointIndicators="False" 
                            Margin="0,3" ItemFill="#FFde3914" />
    </Grid>
  2. leblanc
    leblanc avatar
    56 posts
    Member since:
    Aug 2010

    Posted 11 Nov 2011 Link to this post

    Never mind just discovered:
    MaxYValue="{Binding MaxYValue}" MinYValue="{Binding MinYValue}" AutoRange="False"


    Thanks!
  3. DevCraft banner
Back to Top