xieziyu / ngx-echarts

An angular (ver >= 2.x) directive for ECharts (ver >= 3.x)
https://xieziyu.github.io/ngx-echarts/
MIT License
1.11k stars 197 forks source link

NaN Tooltip #303

Open FirstVertex opened 3 years ago

FirstVertex commented 3 years ago

Hello, I try to debug the NaN tooltip of this example: https://xieziyu.github.io/ngx-echarts/#/gl/bar3d It has 2 tooltips, I try to remove the NaN one but I can't make it stop. Please help.

doptrois commented 1 year ago

You can get rid of NaN by adding

"label": {
  "formatter": ""
}

to the first "series" object, e.g.

"series": [
  {
    "type": "bar3D",
    "shading": "lambert",
    "encode": {
      "x": "Year",
      "y": "Country",
      "z": "Life Expectancy",
      "tooltip": [0, 1, 2, 3, 4]
    },
    "label": {
      "formatter": ""
    }
  }
]

NaN-workaround2