I have just updated my version from 18.3.48 to 19.2.0.55. Even though still seems to be supported (it is not giving me an error), the figures do not have the 1000 separator (e.g. showing figures 1000 instead of 1,000).
<SfChart UseGroupingSeparator="true" Title="@("Financials (USD Million)")">
<SfChart>
<ChartPrimaryYAxis LabelFormat="N0"></ChartPrimaryYAxis>
</SfChart> |
Hi Durga,
Thank you for quickly getting back to me. LabelFormat="#,##0.##;(#,##0.##)" worked great!.
A few additional questions:
1) I notice that since the version upgrade, whenever I enable the chart, its size is small on the screen (and goes to its intended size in a second or so). Would you know the reason for it?
2) The LabelFormat, as I mentioned, is working great. Any way to have the figures in red in case of negative (something like "#,##0.##;[Red](#,##0.##)")?
3) I have, in order to view negative columns in red the following code:
public void PointRenderEvent(PointRenderEventArgs args)
{
if (args.Point.YValue < 0)
{
args.Fill = "red";
}
}
Anyway to have different shades, like for positive numbers?
<!--- To avoid the redraw scenario, add the CDN link below. --->
|
public void PointRenderEvent(PointRenderEventArgs args)
{
if (args.Point.YValue < 0)
args.Fill = "red";
else
args.Fill = "green";
} |
<head>
</head> |
Thank you so much for the clarifications!
Point 1) Great, with the scrip, it is all good.
Point 2) Got it, appreciate you letting me know.
Point 3) Whenever I have different series, I can assign the colors of my choosing with Fill="color" inside each <
ChartSeries>. However, for negative numbers, the colors will always be the same.