【问题标题】:Apex Chart Toolbar not showing all toolsApex 图表工具栏未显示所有工具
【发布时间】:2020-12-13 00:24:47
【问题描述】:

Only download tool visible not all the options

工具栏中只有这个下载图标我想要工具栏中的所有选项请帮助我该怎么做

chart: { height: 350, type: "bar", toolbar: { show: true, tools: { download: true, selection: true, zoom: true, zoomin: true, zoomout: true, pan: true, reset: true }, }, zoom: { enabled: true } },

【问题讨论】:

  • 欢迎来到 StackOverflow!您能否为您的问题添加更多上下文,例如这适用于什么类型的应用程序?
  • 我已经通过在 xaxis 中添加这个解决了这个问题:{tickPlacement: 'on',}

标签: reactjs apexcharts


【解决方案1】:

我已经通过在 xaxis 中添加这个解决了这个问题:{tickPlacement: 'on',}

【讨论】:

  • 注意,这显然是基于@ManishaGupta 的评论。我把“谢谢”的删除(即暗示给予的小部分)给我了。我这样做是因为我认为把它变成一个答案是合适的。我希望这没问题。谢谢玛尼莎。考虑自己回答。
  • 谢谢!我不知道为什么,但它也对我有用。
【解决方案2】:
toolbar: {
    tools: {
        download: true,
        selection: true,
        zoom: true,
        zoomin: true,
        zoomout: true,
        pan: true,
        reset: true | '<img src="/static/icons/reset.png" width="20">',
        customIcons: []
    }
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-03-04
    • 2012-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多