ecomfe / echarts-gl

Extension pack for Apache ECharts, providing globe visualization and 3D plots.
BSD 3-Clause "New" or "Revised" License
2.57k stars 844 forks source link

类目轴的axisTick、axisLine与axisLabel对齐 #485

Open sheep94lion opened 1 year ago

sheep94lion commented 1 year ago

在绘制3D surface时,如果使用类目轴,axisTick与axisLine是出现在两个类目(例如图中的a、b)之间,而不是在axisLabel的位置,请问是否支持让这种情况下的axisTick和axisLine标注在axisLabel的位置,而不是在两个axisLabel之间?

option = {
  tooltip: {},
  backgroundColor: '#fff',
  visualMap: {
    show: false,
    dimension: 2,
    min: 0,
    max: 1,
    inRange: {
      color: [
        '#313695',
        '#4575b4',
        '#74add1',
        '#abd9e9',
        '#e0f3f8',
        '#ffffbf',
        '#fee090',
        '#fdae61',
        '#f46d43',
        '#d73027',
        '#a50026'
      ]
    }
  },
  xAxis3D: {
    type: 'category'
  },
  yAxis3D: {
    type: 'category'
  },
  zAxis3D: {
    type: 'value'
  },
  grid3D: {
    viewControl: {
      // projection: 'orthographic'
    }
  },
  series: [
    {
      type: 'surface',
      data: [['a', 'a', 0],['a', 'b', 0.5],['a', 'c', 1],['b', 'a', 0],['b', 'b', 0.5],['b', 'c', 1],['c', 'a', 0],['c', 'b', 0.5],['c', 'c', 1]]
    }
  ]
};
helgasoft commented 1 year ago

Demo Code might help image