Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

New Post: Polar chart question

$
0
0
Thank you for your prompt response.

Yes I have. I'm using C# and WPF. I'm only testing right now but this is my code:
<oxy:Plot Title="Cohesión Intragrupo" Name="chartcintra" PlotType="Polar" PlotMargins="20,20,4,40" PlotAreaBorderThickness="0" Margin="0,10,4,74">
                                        <oxy:Plot.Axes>
                                            <oxy:MagnitudeAxis/>
                                            <oxy:AngleAxis Minimum="0" Maximum="{Binding MaxAngle}" MajorStep="{Binding MajorStep}" MinorStep="{Binding MinorStep}" 
                                            FormatAsFractions = "False" />
                                        </oxy:Plot.Axes>
                                        <oxy:Plot.Series>
                                            <oxy:LineSeries ItemsSource="{Binding SpiralPoints}"/>
                                            <oxy:LineSeries ItemsSource="{Binding SpiralPoints1}"/>
                                            <oxy:LineSeries ItemsSource="{Binding SpiralPoints2}"/>
                                            <oxy:LineSeries ItemsSource="{Binding SpiralPoints3}"/>                                            
                                            
                                        </oxy:Plot.Series>
                                        </oxy:Plot>
            this.DataContext = this;
            this.MaxAngle = 360;
            this.MajorStep = 45;
            this.MinorStep = 11.25;
             this.SpiralPoints = new List<DataPoint> { new DataPoint(0, 0), new DataPoint(3.5, 3.5)};
                this.SpiralPoints1 = new List<DataPoint> { new DataPoint(0, 0), new DataPoint(-3.5, 3.5)};
                this.SpiralPoints2 = new List<DataPoint> { new DataPoint(0, 0), new DataPoint(-3.5, -3.5)};
                this.SpiralPoints3 = new List<DataPoint> { new DataPoint(0, 0), new DataPoint(3.5, -3.5) };
                
And the result is two lines starting from the point when the SpiralPoint2 ends, this same points starts from the center and the SpiralPoints1 not even there.

Image

Thanks in advance.

Viewing all articles
Browse latest Browse all 2061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>