echart 柱状图去掉顶部按钮

顶部的三个按钮怎么隐藏掉,求大佬解释解答
回答
去掉option里面的legend
var option = {    ...
    // legend: {
    //     data: ['bar', 'bar2', 'bar3', 'bar4'],
    //     left: 10
    // },
    ...
};
把option中的legend去掉就可以了
以上是 echart 柱状图去掉顶部按钮 的全部内容, 来源链接: utcz.com/a/37337.html



