在轴Google图表的两端添加标签

我已经在reactjs中使用google-charts在象限图上构建了一个气泡图,但是轴上只能有两个标签,而我需要四个标签。

我尝试摆弄代码,但未成功。我不想附加虚拟数据和其他系列元素。叠加是添加轴的唯一选择吗?

<Chart
  width={"800px"}
  height={"600px"}
  chartType="BubbleChart"
  loader={<div>Loading Chart</div>}
  data={[
    ["Age","Weight","4","Group","Size"],["Name",-12,34,1,7],-5.5,6,8],22,35,4],14,4,2,5],-5,6],15,3,1],["Name4",7,-21,22]
  ]}
  options={{
    bubble: {},chartArea: { left: 20,top: 0,width: "90%",height: "95%" },colors: ["red","green","yellow","blue"],hAxis: {
      title: "Low Importance",ticks: "none",baseline: 0,ticks: ["none"],minValue: -50,gridlines: { count: 0 },maxValue: 50
    },vAxis: {
      title: "Low Urgency",legend: "none"
  }}
/>;

如下图所示,我只能看到左右标签,而不能看到上下标签。有什么想法可以使用react-s的google-chart库来实现吗?

在轴Google图表的两端添加标签

xinsuandeluoba 回答:在轴Google图表的两端添加标签

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3158985.html

大家都在问