This is a migrated thread and some comments may be shown as answers.

Combined Visualization

1 Answer 34 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
leblanc
Top achievements
Rank 1
leblanc asked on 11 Nov 2011, 09:45 AM

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>

1 Answer, 1 is accepted

Sort by
0
leblanc
Top achievements
Rank 1
answered on 11 Nov 2011, 10:22 AM
Never mind just discovered:
MaxYValue="{Binding MaxYValue}" MinYValue="{Binding MinYValue}" AutoRange="False"


Thanks!
Tags
Sparkline
Asked by
leblanc
Top achievements
Rank 1
Answers by
leblanc
Top achievements
Rank 1
Share this question
or