修改echarts中bars系列的高度

modify the heigth of the bars series in echarts

我目前已加载地图,地图上有一些条形图。我想在工具提示中包含我的变量 text_toltip[i],以便变量 text_toltip[i] 的坐标和文本显示在每个栏中。我该怎么做?我是这个图书馆的新人。

我知道有一个名为 minHeight 的属性,它允许为条形建立最小高度,但我想为条形建立最大预定尺寸,因此条形的其他尺寸和颜色是计算。我该怎么做?

  series: [{
      type: 'bar3D',
      coordinateSystem: 'geo3D',
      barSize:0.05,
      minHeight:0.05,
      data: data.map(function (item) {
      return {
          value: [item[0], item[1], item[2]],
          label: {
              show: false
          }
      }
      }),
      shading: 'lambert'
  }] 

https://plnkr.co/edit/Tdwwk8yKCi0fiY7I3AqK?p=preview

谢谢。

这个问题,我看了Echarts的文档,找到了一个属于"geo3D called "boxHeight"的属性,可以起到你说的"maxheight"一样的作用。我已经测试了一下,没问题。 boxHeight