Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
Custom Y Axis label (Gantt Chart)
posted

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

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>"

And I add items like this:

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?

Parents
No Data
Reply
  • 28496
    Offline posted

    if you set the ChartType property, it will reset the ItemFormatString, so make sure you are setting ItemFormatString after setting ChartType.

     

Children