This is a migrated thread and some comments may be shown as answers.

PolarAxis Minimum, Maximum

4 Answers 15 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Trude
Top achievements
Rank 2
Trude asked on 03 Mar 2014, 07:31 AM
Is it possible to have a negative scale on PolarAxis? I have a dataset which ranges into the negatives, but those values get plotted to the center (zero). Setting Minimum/Maximum manually does not help.

4 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 05 Mar 2014, 08:23 PM
Hi Jorn,

Unfortunately, currently the PolarAxis doesn't support negative values. This is why if you set the value of the PolarAxis Minimum property to a negative value, the Minimum will be automatically set to zero. 

Regards,
Martin
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

0
Trude
Top achievements
Rank 2
answered on 06 Mar 2014, 12:32 PM
Is there a a way to access the labels and change them. As a workaround I was thinking about changing the all values to positive (for example adding 3 to all values if the scale goes from -3 to 3; so -3 is now zero, 0 is 3 etc.), plot them in the chart and then relabel the PolarAxis so that it appears to go from -3 to 3
0
Martin Ivanov
Telerik team
answered on 07 Mar 2014, 05:05 PM
Hi Jorn,

The approach that you described is a possible workaround which you can implement by using the LabelTemplate property of the Axis and a ValueConverter to change the labels of the axis. Please also keep in mind that if you pass negative values to a PolarSeries this may lead to unclear visual representation of those values.

Regards,
Martin
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

0
Trude
Top achievements
Rank 2
answered on 11 Mar 2014, 07:42 PM
I implemented a workaround involving LabelTemplate and ValueConverter and it works as expected. I even threw in an annotation to mark origo. See attached screenshot.
Tags
ChartView
Asked by
Trude
Top achievements
Rank 2
Answers by
Martin Ivanov
Telerik team
Trude
Top achievements
Rank 2
Share this question
or