Group: Forum Members
Last Active: 3 Years Ago
Posts: 11,
Visits: 45
|
Hi,
I have a chart with 2 bar series, how can I show the scale of the 2nd bar series on the right hand side of the chart
|
Group: Forum Members
Last Active: Last Month
Posts: 3,055,
Visits: 4,055
|
Hi Mike , The following code shows how to position the axis on right side : someAxis . Anchor = new NDockAxisAnchor ( AxisDockZone . FrontRight , true ); You can also check the Axes \ General \ Docking example which shows how axis docking works . Let us know if you have any questions .
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 3 Years Ago
Posts: 11,
Visits: 45
|
Thanks , have now got the 2nd scale showing , but is the same scale range the one on the left , I need it to be as per the range for bar2 which your demo shoes . & nbsp ;& nbsp ;& nbsp ;& nbsp ; m_BlueAxis = (( NCartesianAxisCollection ) n Chart. Axes ). AddCustomAxis ( AxisOrientation . Vertical , AxisDockZone . FrontRight ); & nbsp ;& nbsp ;& nbsp ;& nbsp ; m_BlueAxis . Anchor = new NDockAxisAnchor ( AxisDockZone . FrontRight , true ); & nbsp ;& nbsp ;& nbsp ;& nbsp ; nBar2 . DisplayOnAxis ( m_BlueAxis . AxisId , true ); 73% of original size (was 691x19) - Click to enlarge 
|
Group: Forum Members
Last Active: Last Month
Posts: 3,055,
Visits: 4,055
|
Hi Mike , Make sure you turn off scaling for the second bar on the primary Y - axis : nBar2 . DisplayOnAxis (( int ) StandardAxis . PrimaryY , false ); Let us know if you meet any problems .
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 3 Years Ago
Posts: 11,
Visits: 45
|
Thanks, that has worked
|
Group: Forum Members
Last Active: 3 Years Ago
Posts: 11,
Visits: 45
|
is it possible on the left hand scale to include a pound sign as this is a value
|
Group: Forum Members
Last Active: Last Month
Posts: 3,055,
Visits: 4,055
|
Hi Mike , Yes , you can place a currency prefix by changing the value formatter associated with the Y axis : N LinearScaleConfigurator scaleY = chart. Axis ( StandardAxis . PrimaryY ). ScaleConfigurator as N LinearScaleConfigurator ; scaleY . Label ValueFormatter = new Nevron . Dom . NNumeric ValueFormatter ("$ 0 . 00 "); More information on format . net format strings can be found here : https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-stringsLet us know if you have any questions .
Best Regards, Nevron Support Team
|