Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • in reply to: Set x value in time #24327
    in reply to: Set Axis X granularity #24325

    Thanks Ranjan,
    I’ve even made it work, with the same solution.
    the problem now, is that the date format i want to display (‘YYYY-MMM-DD hh:mm:ss’) doesn’t apply<
    I still come out with the hh:mm:ss.
    down i post a peace of code:

    `var chart = new CanvasJS.Chart(“chartContainer”, {
    zoomEnabled: true,
    title: {
    text: “Nombre de Sites HS”
    },
    axisX: {
    title: “chart updates every 5 mins”,// + updateInterval / 10000 + ” mins”,
    intervalType: “minute”,
    ValueFormatString: “YYYY-MMM-DD hh:mm:ss”,
    interval: 5
    },
    axisY:{
    suffix: ” “,
    includeZero: false
    },
    toolTip: {
    shared: true
    },`

    Thanks for your support

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