flot jquery y轴选项不起作用 [英] flot jquery y axis option is not working

查看:131
本文介绍了flot jquery y轴选项不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的yasix选项

This is my yasix option

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

但是当我运行图表时,最大值不是100,再加上没有%符号.

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

请问我怎么了?

我没有发布其他代码,因为我认为上面的代码有问题,如果您发现我的代码正确并且需要更多代码,请告诉我

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

推荐答案

如果只有一个值,则选项为yaxis而不是yaxes.如果您有多个值,则应提供一个数组.

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

这篇关于flot jquery y轴选项不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆