PolarAxis Minimum, Maximum

5 posts, 0 answers
  1. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 03 Mar 2014 Link to this post

    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.
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 05 Mar 2014 Link to this post

    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!

  3. DevCraft banner
  4. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 06 Mar 2014 in reply to Martin Link to this post

    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
  5. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 07 Mar 2014 Link to this post

    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!

  6. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 11 Mar 2014 in reply to Martin Link to this post

    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.
Back to Top
DevCraft banner