Tag:Gas

  • The ecarts pie chart hides data with data of 0

    Time:2021-9-21

    Idea:1. Add a default item for each data item. Show is true label: { show: true }, labelLine: { show: true } 2. When the data of traversal data is 0, assign show to false /*Early warning event*/ initCensus() { this.census = { tooltip: { trigger: “item”, formatter: `{a} <br/>{b} <br/> {c} ({d}%)`, }, series: […]