Profile Picture

Data labels using point series with invisible data points lacks style

Posted By Steve Clevenger 12 Years Ago

Data labels using point series with invisible data points lacks style

Author
Message
Steve Clevenger
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 7, Visits: 1

Thanks Nevron. I haven't gotten back to this yet, since the "point series with invisible data points" solution works 90% of the time. I'll get back to this soon with your recommendations to get the other 10%.

Steve C.

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Steve,

Regarding your questions:

>> Being a label, I seem to have no control over font, font size, text color, etc., and insufficient control over placement on the chart back wall when the chart scale changes.

You can control the font of a data label through the series.DataLabelStyle.TextStyle.FontStyle property.
The color is controlled through the series.DataLabelStyle.TextStyle.FillStyle property.


>> An example of this is the label starts in the top right corner of the chart back wall, and drops to the bottom right corner during the scale change. Is this a feature I wonder?

Depends on the scale change. In general you can expect for a data label to change its location when the axis scales are changed, because a data label is attached to its data point and the data point's location is determined by the axes.


>> I've experimented using an NLabel, and placing this on the chart border. This works exactly once, since I can't add an updated title in the same location. The latest title gets added to the chart border in an unintended location.

You can update just the label's text instead of adding a new label instance every time. From this code it does not get clear what happens with the previously added label panels.

Best Regards,
Nevron Support Team



Steve Clevenger
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 7, Visits: 1
Hi All,


I add a data label (via an invisible point series) to a 3D bar chart in order to update a related data item each time a bar is displayed. Being a label, I seem to have no control over font, font size, text color, etc., and insufficient control over placement on the chart back wall when the chart scale changes. An example of this is the label starts in the top right corner of the chart back wall, and drops to the bottom right corner during the scale change. Is this a feature I wonder?

Here's the code:

// Invisible Point series...
NPointSeries pointSeries = new NPointSeries();

// Hide everything except the labels
pointSeries.UseXValues = true;
pointSeries.MarkerStyle.Visible = false;
pointSeries.DataLabelStyle.Format = "



Similar Topics


Reading This Topic