Cuiyansong commented on a change in pull request #16372:
URL: https://github.com/apache/echarts/pull/16372#discussion_r786384574



##########
File path: src/processor/dataSample.ts
##########
@@ -94,7 +94,7 @@ export default function dataSample(seriesType: string): 
StageHandler {
                 const size = Math.abs(extent[1] - extent[0]) * (dpr || 1);
                 const rate = Math.round(count / size);
 
-                if (rate > 1) {

Review comment:
       > Using `isFinte(rate)` may be better
   
   Sure, is it better for `if (isFinite(rate) && rate > 1)` ?




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to