Group: Forum Members
Last Active: 5 Years Ago
Posts: 2,
Visits: 23
|
Hi Everyone ,& nbsp ; I have been using Nevron Polar Charts to plot data points at positive and negative swing angles .& nbsp ; 1 . The angles of the chart start from 0 - 360 & nbsp ; 2 . Is there any way I can have the first and fourth quadrant as positive angles ( 0 - 180 ) and second and third quadrant with negative angles (- 1 till - 180 )& nbsp ; 3 . In short I want to mirror it from the centre ie . 0 deg 72% of original size (was 697x19) - Click to enlarge 
|
Group: Forum Members
Last Active: Last Month
Posts: 3,055,
Visits: 4,055
|
Hi Ashis , The only way to achieve this number is by using custom code - we could not find a way to achieve it with the standard . net format strings . The following code ( which you need to paste in the code tab of the control ) shows how to install a custom value formatter that formats all values after 180 degrees with their negative equivalent : using System ; using System . Drawing ; using Nevron . Dom ; using Nevron . GraphicsCore ; using Nevron . Chart ; using Nevron . ReportingServices ; namespace MyNamespace { & nbsp ; class NCustomValueFormatter : NNumericValueFormatter & nbsp ; { & nbsp ;& nbsp ; public override string FormatValue ( double value ) & nbsp ;& nbsp ; { & nbsp ;& nbsp ;& nbsp ;& nbsp ; if ( value & gt ; 180 ) & nbsp ;& nbsp ;& nbsp ;& nbsp ;{ & nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ; value = -( 360 - value ); & nbsp ;& nbsp ;& nbsp ;& nbsp ;} & nbsp ;& nbsp ;& nbsp ;& nbsp ; return value . ToString (); & nbsp ;& nbsp ; } & nbsp ;& nbsp ; public override string FormatValue ( object obj ) & nbsp ;& nbsp ; { & nbsp ;& nbsp ;& nbsp ;& nbsp ; return FormatValue (( double ) obj ); & nbsp ;& nbsp ; } & nbsp ; } /// & lt ; summary & gt ; /// Sample class /// & lt ;/ summary & gt ; public class MyClass { /// & lt ; summary & gt ; /// Main entry point /// & lt ;/ summary & gt ; /// & lt ; param name =" context "& gt ;& lt ;/ param & gt ; public static void RSMain ( NRSChartCodeContext context ) { NPolarChart polarChart = ( NPolarChart ) context .&# 100 ; ocument . Charts [ 0 ]; NAngularScaleConfigurator angularScale = ( NAngularScaleConfigurator ) polarChart . Axis ( StandardAxis . PolarAngle ). ScaleConfigurator ; angularScale . LabelValueFormatter = new NCustomValueFormatter (); } } } We hope this helps - let us know if you meet any problems or have any questions .
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 5 Years Ago
Posts: 2,
Visits: 23
|
Thank you so much , it works perfectly .  & nbsp ;
|