try this, c.Text ="Account Name"+"orig User".
tinstaafl
Nearly a Posting Virtuoso
1,326 posts since Jun 2010
Reputation Points: 355
Solved Threads: 229
Skill Endorsements: 14
How about just adding a title?
Dim sometitle As New Title()
With sometitle
.Text = "Fred"
.IsDockedInsideChartArea = True
.Docking = Docking.Bottom
.Alignment = ContentAlignment.MiddleCenter
End With
Chart1.Titles.Add(sometitle)
TnTinMN
Practically a Master Poster
640 posts since Jun 2012
Reputation Points: 418
Solved Threads: 148
Skill Endorsements: 13
in the Add method of the customlabels, the overloads allow you to set the postion of the label and set the text, it's something like this, Chart1.ChartAreas(0).AxisX.CustomLabels.Add(fromPosition as Double, toPosition as Double, Text as String).
tinstaafl
Nearly a Posting Virtuoso
1,326 posts since Jun 2010
Reputation Points: 355
Solved Threads: 229
Skill Endorsements: 14
I don't have a lot of experience with charts, But from what I gather, you can basically add text to each position, just make to and from the same. It might get kind of complicated building the text in the statement, you might want to build it in a string variable first. It shouldn't be too difficult to iterate through the positions have a dictionary of name, type pairs to compare the xvaluemember against, and set the string from that. of course without the actual chart and data, all this is speculation :)
I came across something else that might do the trick, the striplines collection. Each item has it's own text property. You might be able to so something with that.
tinstaafl
Nearly a Posting Virtuoso
1,326 posts since Jun 2010
Reputation Points: 355
Solved Threads: 229
Skill Endorsements: 14
Ok, I misunderstood what you were trying to accomplish.
You can add a new column to the source datatable (assuming the datasource is a table) to hold the computed label. Then use this new column as your XValueMember. Depending on the complexity of the logic, you may be able to use an DataColumn Expression to automatically compute the new string. Worse case is to loop through the rows and set the new value.
TnTinMN
Practically a Master Poster
640 posts since Jun 2012
Reputation Points: 418
Solved Threads: 148
Skill Endorsements: 13
There is nothing hard about adding a column to a datatable. The syntaX is
DataTableVariable.Columns.Add("New Column Name", GetType(String))
But if you prefer to give up on it, oh well.
TnTinMN
Practically a Master Poster
640 posts since Jun 2012
Reputation Points: 418
Solved Threads: 148
Skill Endorsements: 13