【CN20192.1.12】【C1FlexChart.Layers如何使用】
想请问在C1FlexChart.Layers中如何如何实现类似C1Chart中的可以移动的十字(下面代码)<c1:ChartView.Layers>
<c1:ChartPanel>
<c1:ChartPanelObject x:Name="obj" Attach="DataXY"Action="MouseMove"
HorizontalAlignment="Right" VerticalAlignment="Bottom"DataPoint="5,0"
Visibility="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType=c1:ChartPanel}, Path=IsMouseOver,Converter={StaticResource booleanToVisibilityConverter}}">
<Border Background="{DynamicResource brush_LiveData_chart_Layers_tip_backgroud}"BorderBrush="Green"
DataContext="{Binding RelativeSource={x:Static RelativeSource.Self},Path=Parent}"
BorderThickness="1,1,3,3" CornerRadius="6,6,0,6" Padding="3">
<StackPanel>
<TextBlock Text="{Binding DataPoint.X,StringFormat='x={0:F5}'}"/>
<TextBlock Text="{Binding DataPoint.Y,StringFormat='y={0:F5}'}" />
</StackPanel>
</Border>
</c1:ChartPanelObject>
</c1:ChartPanel>
</c1:ChartView.Layers>
类似这个功能 这个是LineMarker功能。可以直接参考这个demo,
在请问一下, <c1:C1FlexChart.Layers>
<c1:AnnotationLayer>
</c1:AnnotationLayer>
</c1:C1FlexChart.Layers>这个里面支持动态绑定吗? 不支持,不过你可以在后台通过代码来给 AnnotationLayer循环添加annotation即可
页:
[1]