Skip to content

Visifire charts ToolBar

L edited this page Dec 31, 2017 · 1 revision
<charts:Chart       x:Name="ChartPat"
                    Theme="Theme2"
                    BorderBrush="Gray"
                    Padding="6"
                    View3D="False"
                    ToolBarEnabled="True" ToolTipEnabled="True" IndicatorEnabled="True"  
                    AnimationEnabled="False" ZoomingEnabled="True" Margin="2,2,0,0" BorderThickness="0"  >

            <charts:Chart.Series>
        <!--曲线-->
        <charts:DataSeries
                            RenderAs="Line" x:Name="DataSeriesLow"
                            Cursor="Hand"
                            MarkerEnabled="True"
                            AxisXType="Primary"
                            LineThickness="2"
                            DataSource="{Binding }"
                            ShadowEnabled="True"
                            AutoFitToPlotArea="True"
                            LightingEnabled="false"
                            LabelEnabled="True"
                            Color="#34495e"  LabelFontSize="12" ToolTipText="#AxisXLabel,#LabelText,#YValue">
                                <charts:DataSeries.DataMappings>
                <charts:DataMapping MemberName="AxisXLabel" Path="InspectionTime" />
                <charts:DataMapping MemberName="LabelText" Path="PersonName" />
                <charts:DataMapping MemberName="YValue" Path="ResultValue" />
                
            </charts:DataSeries.DataMappings>

        </charts:DataSeries>

    </charts:Chart.Series>
</charts:Chart>

效果:
1

Clone this wiki locally