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 WithEnd With works fine to format the datesBUT .Tooltips.FormatString = "<SERIES_LABEL> <DATA_VALUE> on <ITEM_LABEL:dd-MMM-yyyy HH:mm>"won't format the tooltip as instructed?Thank you
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 ");
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
I have been doing alot of other work and finally now I am back to this. Sorry for the delay.
I had a lot of trouble to understand your reply.
I have tried alot of changes and finally I do not understand why the following does not work.
.Tooltips.FormatString = "<SERIES_LABEL> <DATA_VALUE> on <ITEM_LABEL>"the item label is formatted at "dd-MMM-yyyy" and that works fine on the x-Axisbut in the ToolTip I get as per the attached screen print whereit appears that the formatting of the item label is ignored and even if I add it in it is still ignored. I still believe this is a bug. I saw an example on the community pages wheresomone had used <SERIES_LABEL> <DATA_VALUE> on <DATA_VALUE_X:MMM-dd-yyyy> but that does not work either I am using 11.2 2034 on the CLR4 versionThank you