I can't give Y axis label the format I want to. I achieved customing the tooltips for Items in a Gantt Chart implementing IRenderLabel interface, but I can't show my extra information in Y axis label.
I use GanttDataSource and set extra information to the chart by doing:
Dim MyLabelHashTable As New HashtableMyLabelHashTable.Add("TASCA_INFO", New EtiquetaTasca(InfoTasquesHashTable)) Gantt.LabelHash = MyLabelHashTable
Gantt.LabelHash = MyLabelHashTable
I also customize label formatting:
Me.Gantt.Axis.Y.Labels.ItemFormat = Infragistics.UltraChart.[Shared].Styles.AxisItemLabelFormat.Custom Me.Gantt.Axis.Y.Labels.ItemFormatString = "<TASCA_INFO>"
Me.Gantt.Axis.Y.Labels.ItemFormatString = "<TASCA_INFO>"
item = New GanttItem(Id.ToString) mGantDataSource.Series(0).Items.Add(item)
item = New GanttItem(Id.ToString)
mGantDataSource.Series(0).Items.Add(item)
But I always see Id.String as Y Axis label (Even if a change item formatting with predefined tags different from <ITEM_LABEL>)
Colud you anybody tell me some possible reasons why this is happening?
Thanks, changing the order solved the problem, but I changed it by code. I think setting the two properties through designer view caused the problem.
if you set the ChartType property, it will reset the ItemFormatString, so make sure you are setting ItemFormatString after setting ChartType.