You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/09/29 04:18:05 UTC

[GitHub] [echarts] Ayushsunny commented on issue #15757: Graph tooltips do not show when all input values are null but all will show given at least one valid input

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-unsubscribe@echarts.apache.org

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



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