Skip to content

x-axis label to be in dateTime #5670

@Nitika123

Description

@Nitika123

I am having the values to be displayed on the x-axis in the following format: DD:MM:YYYY_hh:mm:ss stored as string type. When I am passing these values, I am getting the following graph:

screenshot from 2018-08-07 16-21-22
The axis-values are numbers without any point displayed on the chart. The data is passed as {x:"07-08-2018_20:23:45",y:0.456}. But the graph doesn't show any such point.

What changes to I have to do to make the x-axis values to be in dateTime format.As of now the options are as follows:

options: {

        scales: {
            xAxes: [{
                scaleLabel: {
                  display: true,
                  labelString: 'Date Time'
                }
              }],
        yAxes: [{
        ticks: {
        beginAtZero:false
            }
        }]
        },
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions