InflateMargins Property of NPolarArea Series does not work


https://www.nevron.com/Forum/Topic12920.aspx
Print Topic | Close Window

By CHANGMIN KIM - 5 Years Ago
I have an NPolarArea Series in NPolarChart.
I added three NPolarDataPoint which compose triangle shape.
Even though I set true for InflateMargins property of my series, It does not show full triangle.
below is my code :

NChartControl control = this.nChartControl1;
NPolarChart chart = new NPolarChart();
control.Charts.Add(chart);

NAxis axis = chart.Axis(StandardAxis.Polar);
axis.View = new NRangeAxisView(new NRange1DD(0, 1000));

NPolarAreaSeries series = new NPolarAreaSeries();
series.InflateMargins = true;
chart.Series.Add(series);

series.AddDataPoint(new NPolarDataPoint(900, 0));
series.AddDataPoint(new NPolarDataPoint(1100, 10));
series.AddDataPoint(new NPolarDataPoint(1100, -10));


How can I inflate the margins of the series to fit the PolarChart area ?
By Nevron Support - 5 Years Ago
Hi Changmin,
The code limits the value axis to the range 0-1000 whereas two of the data points are with value 1100. If you want the value axis to automatically compute the visible range you need to remove the view range restriction. We hope this helps - let us know if you meet any problems or have any questions.