0

我正在尝试自定义碳设计子弹图
是否有图表文档?
我能找到的只是一个关于codesandbox的基本示例,单击图表中的任何条并自定义图例时
我需要事件。onClick

我当前的选项 obj(尝试替换范围标签,不起作用)

const options = {
  title: 'working title',
  axes: {
    bottom: {
      mapsTo: 'value',
      extendLinearDomainBy: 'marker',
    },
    left: {
      scaleType: 'labels',
      mapsTo: 'title',
      title: 'percentage',
    },
    right: {
      scaleType: 'labels-ratio',
      mapsTo: 'title',
      title: 'size',
    },
  },
  height: '400px',
  legend: {
    additionalItems: [{ name: 'Low' }, { name: 'Medium' }, { name: 'High' }],
  },
}
4

0 回答 0