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/22 09:03:03 UTC

[GitHub] [echarts] yyjdelete commented on issue #15764: Wrong data when use example `bar-large` with Float64Array

yyjdelete commented on issue #15764:
URL: https://github.com/apache/echarts/issues/15764#issuecomment-924729111


   @pissang 没看明白, 是说如果使用TypedArray 的时候, 数据必须按[x0, y0, x1, y1, ...] 这样的顺序填进去, 不能只有单独的y么?
   就是像下面这样?
   ```js
     for (let i = 0; i < count; i++) {
       categoryData.push(
         echarts.format.formatTime('yyyy-MM-dd\nhh:mm:ss', time, false)
       );
       valueData.push(i);
       valueData.push(next(i).toFixed(2));
       time += 1000;
     }
     return {
       categoryData: categoryData,
       valueData: new Float64Array(valueData)
     };
   ```


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