ApexCharts的柱状图标记是否破损?
创始人
2024-11-10 02:00:33
0
  1. 尝试使用最新版本的ApexCharts库,检查是否已解决此问题。

  2. 如果问题仍然存在,请使用以下代码设置标记:

options: {
  chart: {
    type: 'bar',
    height: 350
  },
  plotOptions: {
    bar: {
      dataLabels: {
        position: 'top', // 文本位置
        offsetY: -10, // 偏移量
      }
    }
  },
  dataLabels: {
    enabled: true,
    formatter: function (val) {
      return val + "%";
    },
    offsetY: -20,
    style: {
      fontSize: '12px',
      colors: ["#304758"]
    }
  },
  series: [{
    name: 'Series 1',
    data: [44, 55, 41, 67, 22, 43]
  }, {
    name: 'Series 2',
    data: [13, 23, 20, 8, 13, 27]
  }, {
    name: 'Series 3',
    data: [11, 17, 15, 15, 21, 14]
  }, {
    name: 'Series 4',
    data: [21, 7, 25, 13, 22, 8]
  }],
  xaxis: {
    categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
    position: 'top', // 文本位置
    axisBorder: {
      show: false
    },
    axisTicks: {
      show: false
    },
    crosshairs: {
      fill: {
        type: 'gradient',
        gradient: {
          colorFrom: '#D8E3F0',
          colorTo: '#BED1E6',
          stops: [0, 100],
          opacityFrom: 0.4,
          opacityTo: 0.5,
        }
      }
    },
    tooltip: {
      enabled: true,
    }
  },
  yaxis: {
    axisBorder: {
      show: false
    },
    axisTicks: {
      show: false,

相关内容

热门资讯

详细透视!wepoker俱乐部... 详细透视!wepoker俱乐部辅助器,手机微乐小程序破解器,讲义教程(有挂透视)-哔哩哔哩1、游戏颠...
专业透视!pokerworld... 专业透视!pokerworld修改器,微乐江苏小程序游戏破解下载,办法教程(详细教程)-哔哩哔哩1、...
详细透视!pokerworld... 详细透视!pokerworld辅助器,微乐自建房辅助工具官网,技法教程(有挂技巧)-哔哩哔哩亲,关键...
推荐透视!wepoker开脚本... 推荐透视!wepoker开脚本视频,微乐游戏竞技团辅助,指南书教程(有挂解密)-哔哩哔哩1、游戏颠覆...
开挂透视!aapoker辅助怎... 开挂透视!aapoker辅助怎么用,微乐小程序自建房辅助ios,攻略教程(有挂方略)-哔哩哔哩1、超...
曝光透视!wepoker如何设... 曝光透视!wepoker如何设置透视,微信小程序游戏破解器,攻略教程(确实有挂)-哔哩哔哩小薇(辅助...
曝光透视!epoker有透视吗... 曝光透视!epoker有透视吗,微乐手游脚本辅助,窍要教程(证实有挂)-哔哩哔哩1、epoker有透...
辅助透视!德州hhpoker脚... 辅助透视!德州hhpoker脚本,微乐自建房脚本下载,总结教程(果真有挂)-哔哩哔哩1、辅助透视!德...
普及透视!wepoker作弊方... 普及透视!wepoker作弊方法,微乐a3纸牌有脚本,模板教程(的确有挂)-哔哩哔哩亲,关键说明,w...
揭幕透视!pokerworld... 揭幕透视!pokerworld修改器,微乐小程序授权,机巧教程(有挂头条)-哔哩哔哩1、用户打开应用...