Profile Picture

InflateMargins Property of NPolarArea Series does not work

Posted By CHANGMIN KIM Last Year

InflateMargins Property of NPolarArea Series does not work

Author
Message
CHANGMIN KIM
Question Posted Last Year
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 10, Visits: 25
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 ?


Nevron Support
Posted Last Year
View Quick Profile
Supreme Being

Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 2,879, Visits: 3,045
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.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic