Profile Picture

InflateMargins Property of NPolarArea Series does not work

Posted By CHANGMIN KIM 5 Years Ago

InflateMargins Property of NPolarArea Series does not work

Author
Message
CHANGMIN KIM
Question Posted 5 Years Ago
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: 4 Years 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 5 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
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