Profile Picture

Horizontal bar chart w/ right aligned labels

Posted By Scott Campbell 15 Years Ago
Author
Message
Scott Campbell
Posted 15 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 15 Years Ago
Posts: 2, Visits: 1

Hi all, I'm trying to do something pretty simple, just right-aligning the ordinal labels on a horizontal bar chart, so that the right-most part of the label is always a given offset from the vertical axis line.  By default, these labels are centered.  I've tried:

ordinalScale.Labels.Add(myLabelText);
ordinalScale.LabelStyle.ContentAlignment = ContentAlignment.MiddleRight;

to no avail, also:

NCustomRangeLabel label = new NCustomRangeLabel();
label.Text =
myLabelText;
label.Style.ContentAlignment = ContentAlignment.MiddleRight;
ordinalScale.CustomLabels.Add(label);

which crams everything into the top left.  Any idea how to change the alignment of labels on a horizontal bar chart?

Thank you!






Similar Topics


Reading This Topic