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 2020/01/10 14:36:45 UTC

[GitHub] [incubator-echarts] pissang edited a comment on issue #12007: Display area below isolated values in line charts

pissang edited a comment on issue #12007: Display area below isolated values in line charts
URL: https://github.com/apache/incubator-echarts/issues/12007#issuecomment-573059595
 
 
   Hi @VictorCazanave 
   
   Perhaps you can try to filter out data with `null` siblings and use a `bar` series to draw it. for example
   
   ```js
   series: [{
     type: 'bar'
     data: data.filter((val, idx) => {
         return idx > 0 && idx < data.length - 1 
                         && data[idx - 1] == null && data[idx + 1] == null
               ? val  // Display bar if value has null siblings
               : '-'    // Not display bar for other values
     })
   ]}
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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