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/08/03 07:03:44 UTC

[GitHub] [echarts] tmtron opened a new issue #15464: Add option for Axis Pointer to ignore NULLs

tmtron opened a new issue #15464:
URL: https://github.com/apache/echarts/issues/15464


   ### What problem does this feature solve?
   When we use a line series and set [connectNulls](https://echarts.apache.org/en/option.html#series-line.connectNulls)=`false` the NULL data samples will not be visible, but the axis-pointer will still snap to the (invisible) point and also the tooltip will show up.  
   
   ![2021-08-03_08h59_54](https://user-images.githubusercontent.com/20422904/127971963-ca0388d1-a03a-49ff-b334-7a760d42b590.png)  
   [Stackblitz example](https://stackblitz.com/edit/echarts5-log-max-issue-m8etfn?file=opt1.js)
   
   This is confusing for some or our users: it would be good to have an option to deactivate this.
   
   ### What does the proposed API look like?
   maybe add:
   * `axisPointer.ignoreNulls` (`boolean`), default=`false` (for backward compatibility): when true, the Axis Pointer should ignore NULLS (and thus also the tooltip will not be shown)
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


-- 
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


[GitHub] [echarts] echarts-bot[bot] commented on issue #15464: Add option for Axis Pointer to ignore NULLs

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15464:
URL: https://github.com/apache/echarts/issues/15464#issuecomment-891667134


   This issue is labeled with `difficulty: easy`.
   @tmtron Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.
   
   Please have a look at [How to debug ECharts](https://github.com/apache/echarts/blob/master/CONTRIBUTING.md#how-to-debug-echarts) if you'd like to give a try. 🤓


-- 
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


[GitHub] [echarts] Ovilia edited a comment on issue #15464: Add option for Axis Pointer to ignore NULLs

Posted by GitBox <gi...@apache.org>.
Ovilia edited a comment on issue #15464:
URL: https://github.com/apache/echarts/issues/15464#issuecomment-891666418


   Update: The problem beneath has been fixed in https://github.com/apache/echarts/pull/15313
   
   ---
   
   Another related problem is that if `tooltip.formatter` is defined and returns `null` for null data, the previous data value is used, which is even more confusing.
   
   ```js
   formatter: function(param) {
         return param[0].value[1] == null ? null : 'value: ' + param[0].value[1];
   }
   ```
   
   ![image](https://user-images.githubusercontent.com/779050/127987868-7ebe4e62-6c26-4e9e-872a-1b9f60a1d5e0.png)
   


-- 
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


[GitHub] [echarts] Ovilia edited a comment on issue #15464: Add option for Axis Pointer to ignore NULLs

Posted by GitBox <gi...@apache.org>.
Ovilia edited a comment on issue #15464:
URL: https://github.com/apache/echarts/issues/15464#issuecomment-891666418


   Another related problem is that if `tooltip.formatter` is defined and returns `null` for null data, the previous data value is used, which is even more confusing.
   
   ```js
   formatter: function(param) {
         return param[0].value[1] == null ? null : 'value: ' + param[0].value[1];
   }
   ```
   
   ![image](https://user-images.githubusercontent.com/779050/127987868-7ebe4e62-6c26-4e9e-872a-1b9f60a1d5e0.png)
   
   
   ---
   
   Update: This has been fixed in https://github.com/apache/echarts/pull/15313


-- 
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


[GitHub] [echarts] Ovilia commented on issue #15464: Add option for Axis Pointer to ignore NULLs

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #15464:
URL: https://github.com/apache/echarts/issues/15464#issuecomment-891666418


   Another related problem is that if `tooltip.formatter` is defined and returns `null` for null data, the previous data value is used, which is even more confusing.
   
   ```js
   formatter: function(param) {
         return param[0].value[1] == null ? null : 'value: ' + param[0].value[1];
   }
   ```
   
   ![image](https://user-images.githubusercontent.com/779050/127987868-7ebe4e62-6c26-4e9e-872a-1b9f60a1d5e0.png)
   


-- 
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


[GitHub] [echarts] echarts-bot[bot] commented on issue #15464: Add option for Axis Pointer to ignore NULLs

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15464:
URL: https://github.com/apache/echarts/issues/15464#issuecomment-891590647


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


-- 
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