SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

Hello.

I want to get a polar chart with 360 degree on x-scale with a constant tick step. I found how to do it with MajorDelta. My code is:

        <s:SciChartSurface.XAxis>
            <s:PolarXAxis Name="xAxis"
                          AxisTitle="Polar Chart"
                          BorderBrush="#93A3C5"
                          RotationAngle="90"
                          AutoTicks="False"
                          MajorDelta="30"
                          MinorDelta="10"
                          BorderThickness="0,2,0,0"
                          TitleFontSize="20"
                          VisibleRange="0,360"/>
        </s:SciChartSurface.XAxis>

And I got a 30-degree step of major ticks. But tick labels were lost. It is only on 0 and 240. I get all labels when I add some data in series and call sciChart.ZoomExtents() as in basic example. But initially, I don’t have any data to show. Moreover, I’m using MVVM and I need to control VisibleRange of Y axis, so ZoomExtents is unlikely.

The second issue with the polar chart – how to control VisibleRange of Y-axis? My code is:

            <s:PolarYAxis Name="yAxis" 
                          AutoRange="Never"
                          VisibleRange="{Binding YVisibleRange}"
                          />
        </s:SciChartSurface.YAxis>

But it is not working. I tried to bind Axes instead of VisibleRange only, but I got the same result. Any suggestions?

Thanks

Version
5.4.1
Images
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+