-
Notifications
You must be signed in to change notification settings - Fork 91
/
GapsInSeries.xaml
108 lines (90 loc) · 5.34 KB
/
GapsInSeries.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<UserControl x:Class="SciChart.Examples.Examples.CreateMultiseriesChart.GapsInSeries"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="http://schemas.abtsoftware.co.uk/scichart"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ext="http://schemas.abtsoftware.co.uk/scichart/exampleExternals"
d:DesignHeight="400"
d:DesignWidth="600"
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- The SciChartInteractionToolbar adds zoom, pan, zoom extents and rotate functionality -->
<!-- to the chart and is included for example purposes. -->
<!-- If you wish to know how to zoom and pan a chart then do a search for Zoom Pan in the Examples suite! -->
<ext:SciChartInteractionToolbar TargetSurface="{Binding Source={x:Reference Name=sciChart}}" >
<ext:FlyoutMenuButton Style="{StaticResource FlyoutMenuButtonStyle}" Content="GAP" Padding="0">
<ext:FlyoutMenuButton.PopupContent>
<StackPanel Orientation="Vertical" MinWidth="150" Margin="0,0,0,5">
<TextBlock Text="RenderableSeries.DrawNaNAs" />
<ext:FlyoutSeparator/>
<CheckBox x:Name="gapsCheckbox"
Content="Gaps"
Margin="4"
IsChecked="True"
Checked="GapsCheckbox_CheckedChanged"
Unchecked="GapsCheckbox_CheckedChanged"/>
<CheckBox x:Name="closedLinesCheckbox"
Content="Closed Lines"
Margin="4"
Checked="ClosedCheckbox_CheckedChanged"
Unchecked="ClosedCheckbox_CheckedChanged"/>
</StackPanel>
</ext:FlyoutMenuButton.PopupContent>
</ext:FlyoutMenuButton>
</ext:SciChartInteractionToolbar>
<s:SciChartSurface x:Name="sciChart"
Grid.Column="1"
Padding="0"
BorderThickness="0">
<s:SciChartSurface.RenderableSeries>
<!-- Column Series -->
<s:FastColumnRenderableSeries x:Name="renderableColumnSeries" Stroke="OrangeRed">
<s:FastColumnRenderableSeries.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Offset="0" Color="#FFFF867B" />
<GradientStop Offset="0.7" Color="#88FFFF9B" />
<GradientStop Offset="1" Color="#22FFFFFF" />
</LinearGradientBrush>
</s:FastColumnRenderableSeries.Fill>
<s:FastColumnRenderableSeries.SeriesAnimation>
<s:FadeAnimation AnimationDelay="0:0:1" Duration="0:0:3"/>
</s:FastColumnRenderableSeries.SeriesAnimation>
</s:FastColumnRenderableSeries>
<!-- Mountain Series -->
<s:FastMountainRenderableSeries x:Name="renderableMountainSeries"
Fill="#33FFFF00"
Stroke="#FFFF00">
<s:FastMountainRenderableSeries.SeriesAnimation>
<s:FadeAnimation AnimationDelay="0:0:1" Duration="0:0:3"/>
</s:FastMountainRenderableSeries.SeriesAnimation>
</s:FastMountainRenderableSeries>
<!-- Line Series -->
<s:FastLineRenderableSeries x:Name="renderableLineSeries"
Stroke="OrangeRed"
StrokeDashArray="2,2,9,2">
<s:FastLineRenderableSeries.PointMarker>
<s:EllipsePointMarker Width="11"
Height="11"
Fill="Red"
Stroke="Lavender"
StrokeThickness="2" />
</s:FastLineRenderableSeries.PointMarker>
<s:FastLineRenderableSeries.SeriesAnimation>
<s:FadeAnimation AnimationDelay="0:0:1" Duration="0:0:3"/>
</s:FastLineRenderableSeries.SeriesAnimation>
</s:FastLineRenderableSeries>
</s:SciChartSurface.RenderableSeries>
<s:SciChartSurface.XAxis>
<s:NumericAxis AxisTitle="Sample Index" DrawMajorBands="True"/>
</s:SciChartSurface.XAxis>
<s:SciChartSurface.YAxis>
<s:NumericAxis AxisTitle="Value" DrawMajorBands="True"/>
</s:SciChartSurface.YAxis>
</s:SciChartSurface>
</Grid>
</UserControl>