Skip to content

Min and Max in X Axis for Time series chart is not working in chart js #6237

Description

@thetinshusasi

how can we set Min and Max values in time series chart , where X Axis contains Time values
I tried to set using ticks property but it doesn't work.

 xAxes: [{
            display: true,
            ticks: {
                fontColor: "#fff",
                min : new Date(1990,0,1,8,0,0),
                max : new Date(1990,0,1,21,0,0)
            },
            scaleLabel: {
                display: true,
                labelString: "Time Data",
                fontSize: 15,
                fontColor: "#fff"
            },
            type: "time",
            time: {
                displayFormats: {
                    quarter: 'h:mm a'
                }
            }
        }]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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