Agnieszka Polec
Agnieszka Polec

Reputation: 1511

flot jquery y axis option is not working

This is my yasix option

yaxes: {
                   min: 0,
                   max: 100,
                   tickFormatter: function (val, axis) {
                       return val + '%';
                   }
               },

but when I run the chart, the max is not 100, plus there is no % sign.

what wrong did i do pleaes?

I didn't post other code becuase I think the problem from the code above, if you see that my code is correct and you need more code kindly tell me please

Upvotes: 0

Views: 213

Answers (2)

Khaleel
Khaleel

Reputation: 1371

From the code you provided, see yaxes instead of yaxis . And check if val is in Number or String.. print and see if it is showing as object

Upvotes: 0

Stephen Thomas
Stephen Thomas

Reputation: 14053

If you only have a single value, the option is yaxis instead of yaxes. If you have multiple values, you should provide an array.

Upvotes: 1

Related Questions