Profile Picture

How to specify Custom DataLabelStyle Format

Posted By Alex Mendy 10 Years Ago
Author
Message
Alex Mendy
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 1, Visits: 5
I have a NBarSeries chart with MultiBarMode = MultiBarMode.Stacked;
When my value is less than 100% (say -131%), the DataLabelStyle only shows -100%. 
Is there a way to specify my own custom formatting for DataLabelStyle?

Code snippet:
NBarSeries oBar = chart.Series.Add(SeriesType.Bar) as NBarSeries;      
oBar.InflateMargins = true;
oBar.Name = name;
oBar.MultiBarMode = MultiBarMode.Stacked;
oBar.WidthPercent = 30;
oBar.DataLabelStyle.VertAlign = Nevron.VertAlign.Center;
oBar.DataLabelStyle.TextStyle.BackplaneStyle.Visible = false;
oBar.DataLabelStyle.TextStyle.FontStyle = new NFontStyle("Verdana", 7.0f, FontStyle.Bold);
oBar.DataLabelStyle.Format = "<percent>";
oBar.DataLabelStyle.ArrowLength = new NLength(0);
oBar.DataLabelStyle.Visible = true;
oBar.Values.Add(https://www.nevron.com/forum/uploads/images/2c8867fe-1ca0-4ae5-b276-e45e.png.IsNull() ? 0.0 : value.Value);





Similar Topics


Reading This Topic