score:2

Accepted answer

according to documentation if you want to create a category scale should work like this:

.....

        scales: {
            yaxes: [{
                scalelabel: {
                    display: true,
                    labelstring: "ms"  
                },
                ticks: {
                    beginatzero: true,
                    suggestedmax: 100,
                }
            }],
            xaxes: [{
                scalelabel: {
                    display: true,
                    labelstring: "sec"
                },
                ticks: {
                    beginatzero: true,
                    max: "a-value-from-array"
                }
            }]
        }

i'm tempted to guess that you are using a notation like:

var y = { ticks.max: "hello" }
vm181:1 uncaught syntaxerror: unexpected token .

i think that explains your error.


Related Query

More Query from same tag