Home Forums Chart Support tooltip datetime formatting

tooltip datetime formatting

Viewing 4 posts - 1 through 4 (of 4 total)
  • #28957

    How do I set the format string for the tooltip to display dateTime data without using the contentFormatter option? I’d like it to show time also but instead it only shows “DD MMM YY”.

    #28973

    @floyd6,

    You can use xValueFormatString to format x values being shown in toolTip & indexlabel.

    —-
    Manoj Mohan
    Team CanvasJS

    #29003

    Thanks a lot! I must have overlooked it :)
    Btw. how do I set proper values for viewportMinimum/viewportMaximum for dateTime xValueType ? When I have just one set of data a dot is displayed on the y line. How do I center it?

    #29015

    @floyd6,

    how do I set proper values for viewportMinimum/viewportMaximum for dateTime xValueType ?

    You can pass the date as date-object or timestamp value to viewportMinimum/viewportMaximum incase of dateTime axis.

    If you are still facing any issue, kindly create JSFiddle reproducing the issue and share it with us so that we can look into your code, understand your scenario better and help you out.

    —-
    Manoj Mohan
    Team CanvasJS

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.