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/04/06 10:34:22 UTC

[GitHub] [incubator-echarts] 6axter82 commented on issue #12265: Two array series with different time stamps and a different number of data points

6axter82 commented on issue #12265: Two array series with different time stamps and a different number of data points
URL: https://github.com/apache/incubator-echarts/issues/12265#issuecomment-609713856
 
 
   @100pah , totally not correct in [https://jsfiddle.net/1fwd67tu/](https://jsfiddle.net/1fwd67tu/) .
   
   First of all, look the first point in data2 where y is set to 0, but in the chart it starts from above.
   Second, look into the dates and compare them in the arrays.
   Third, Try to set the seconds of times in data2 to some different values:
   
   ```
   const data1 =  [
       ["2020-03-10T06:48:08.884220928Z", 99],
       ["2020-03-10T06:48:10.888220928Z", 09],
       ["2020-03-10T06:48:14.890221056Z", 17],
       ["2020-03-10T06:49:18.894221056Z", 12],
       ["2020-03-10T06:49:20.895220992Z", 16],
       ["2020-03-10T06:49:24.900220928Z", 54],
       ["2020-03-10T06:49:26.901220864Z", 21],
       ["2020-03-10T06:50:30.904220928Z", 24],
       ["2020-03-10T06:50:32.904220928Z", 22],
       ["2020-03-10T06:50:36.910221056Z", 22],
   ];
   const data2 =  [
       ["2020-03-10T06:48:08.884220928Z", 0],
       ["2020-03-10T06:48:12.888220928Z", 29],
       ["2020-03-10T06:48:16.890221056Z", 85],
       ["2020-03-10T06:49:18.894221056Z", 0],
       ["2020-03-10T06:49:20.895220992Z", 0],
       ["2020-03-10T06:49:24.900220928Z", 0],
       ["2020-03-10T06:49:26.901220864Z", 0],
       ["2020-03-10T06:50:30.904220928Z", 0],
       ["2020-03-10T06:50:28.904220928Z", 98],
       ["2020-03-10T06:50:34.910221056Z", 98],
   ];
   ```
   As you can see the result is not what is expected.
   Further, why one cannot use just 4 points in array data2, but specify exactly the same amount of points as in data1? Just like:
   ```
   const data1 =  [
       ["2020-03-10T06:48:08.884220928Z", 99],
       ["2020-03-10T06:48:10.888220928Z", 09],
       ["2020-03-10T06:48:14.890221056Z", 17],
       ["2020-03-10T06:49:18.894221056Z", 12],
       ["2020-03-10T06:49:20.895220992Z", 16],
       ["2020-03-10T06:49:24.900220928Z", 54],
       ["2020-03-10T06:49:26.901220864Z", 21],
       ["2020-03-10T06:50:30.904220928Z", 24],
       ["2020-03-10T06:50:32.904220928Z", 22],
       ["2020-03-10T06:50:36.910221056Z", 22],
   ];
   const data2 =  [
       ["2020-03-10T06:48:10.888220928Z", 29],
       ["2020-03-10T06:48:14.890221056Z", 85],
       ["2020-03-10T06:50:32.904220928Z", 98],
       ["2020-03-10T06:50:36.910221056Z", 98],
   ];
   ```
   
   Anyways, I am thinking to switch to another library

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