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
1815
Ultrachart ToolTips
posted

Can you please help me with why

.ItemFormatString = "<ITEM_LABEL:dd-MMM-yyyy>"

  as in

With axisX
    .DataType = AxisDataType.Time
    .TickmarkStyle = AxisTickStyle.DataInterval
   .Extent = 65
   With .Labels
.ItemFormat = AxisItemLabelFormat.ItemLabel
      .ItemFormat = AxisItemLabelFormat.Custom
     .ItemFormatString = "<ITEM_LABEL:dd-MMM-yyyy>"
      .Layout.Padding = 2
      .SeriesLabels.Visible = False
      .Orientation = TextOrientation.VerticalLeftFacing
      .Visible = True
      End With
End With
works fine to format the dates
BUT
   .Tooltips.FormatString = "<SERIES_LABEL> <DATA_VALUE> on <ITEM_LABEL:dd-MMM-yyyy HH:mm>"

won't format the tooltip as instructed?

Thank you
Parents
  • 53790
    Suggested Answer
    posted

    Hello Skalyniuk,

    I try to reproduce your scenario in a small sample and everything works properly. I suppose that your issue coming from DataBinding of the series, because there is option to made the DataBind without provide information about LabelColumn which is important about Item_label and ToolTip. So my suggestion is to make your DataBind for example:

    NumericTimeSeries series1 = new NumericTimeSeries();

    series1.Label = "test"; // Here is information for <SERIES_LABEL>

    series1.DataBind(dataTable, "TimeValueColumn", "ValueColumn", "LabelColumn");

    where :

    -    TimeValueColumn – these are the values for your Axis X

    -    ValueColumn – values for Axis Y - DATA_VALUE

    -    LabelColumn – Information about ITEM_LABEL

    If you want to have LabelColumn, you could do:

    series1.DataBind(dataTable, "TimeValueColumn", "ValueColumn", " TimeValueColumn ");

    Please let me know if you have any questions.

    Regards

Reply Children
No Data