Data labels using point series with invisible data points lacks style


Data labels using point series with invisible data points lacks style
Author
Message
Steve Clevenger
Steve Clevenger
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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
Steve Clevenger
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
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 = "
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search