F2.js 柱状图显示滚动条问题

出现滚动条后、只能显示values的前几位,请问一下 怎么设置出现滚动条,并且全部显所有的数据??!

image.png

data 是元数据,
image.png
config 是显示的索引

config = {
    difficulty: {
        tickCount: 5,
        values
    }
};

values

["Single Choice", "Multiple Choice", "Multiple Choices"]

配置柱状图

chart.source(data, config);

配置滚动条

chart.scrollBar({
    mode: 'x',
    xStyle: {
        backgroundColor: '#e8e8e8',
        fillerColor: '#FFAA0A',
        size: 2,
        offsetY:0 // 0: 无legend的情况, -40 有
    }
});
chart.interaction('pan');
阅读 2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题