Pre loader

Tag: Snoop

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0 votes
9k views

I am a SciChart beginner (and a wpf beginner too) so I apologize if this is a dumb question. I place a chart inside a user control – see xaml below. The background color is set to white to distinguish it from the chart area. When I run my app, the chart is small and in the center of the grid with a large white background around it. How can I get the chart to fill the entire space? There are many properties that can be set and it’s not clear to me what to do. I’ve attached a pdf snapshot of my application window showing the problem. Thanks for your help.

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>

            <s:SciChartSurface Grid.Row="0" BorderThickness="1"  Background="AntiqueWhite" ChartTitle="Name">
        <s:SciChartSurface.RenderableSeries>
            <s:FastLineRenderableSeries DataSeries="{Binding EcgDataSeries}" SeriesColor="#FFB3E8F6" StrokeThickness="2"/>
        </s:SciChartSurface.RenderableSeries>

        <s:SciChartSurface.YAxis>
            <s:NumericAxis
                     MaxAutoTicks="5"
                     DrawMinorGridLines="True"
                     VisibleRange="{Binding YVisibleRange, Mode=TwoWay}"/>
        </s:SciChartSurface.YAxis>

        <!-- Define the XAxis  -->
        <s:SciChartSurface.XAxis>
            <s:NumericAxis 
                     MaxAutoTicks="5"
                     DrawMinorGridLines="True"
                     VisibleRange="{Binding XVisibleRange, Mode=TwoWay}"/>
        </s:SciChartSurface.XAxis>

    </s:SciChartSurface>
</Grid>
Showing 1 result