Ayushsunny commented on issue #15757:
URL: https://github.com/apache/echarts/issues/15757#issuecomment-929820732


   Hey, @htr3n I think we have to put zero instead of null to show when all of 
the values are null(zero).
   
   [see this](https://codepen.io/ayushsunny/pen/ExXrgMP)
   
   ```
   const container = document.getElementById("main");
   const chart = echarts.init(container);
   
   const options = {
     tooltip: {
       trigger: "axis",
       axisPointer: {
         type: "shadow",
         label: {
           show: true,
           overflow: "break"
         }
       }
     },
     xAxis: {
       type: "category",
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     yAxis: [
       {
         type: "value",
       },
     ],
     series: [
       {
         type: "line",
         data: [0, 0, 0, 0, 0, 0, 0],
       }
     ]
   };
   
   chart.setOption(options, true);
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to