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 2019/12/12 02:25:43 UTC

[GitHub] [incubator-echarts] qierkang commented on issue #8396: 10台车,每350ms每台车就会进来一个轨迹点,当轨迹点达到一定数量时,页面很卡

qierkang commented on issue #8396: 10台车,每350ms每台车就会进来一个轨迹点,当轨迹点达到一定数量时,页面很卡
URL: https://github.com/apache/incubator-echarts/issues/8396#issuecomment-564821299
 
 
   在绘制行为轨迹点的时候 数据量 图层过多,可以采用 降采样策略,开启后可以有效的优化图表的绘制效率,默认关闭 ,或者清理历史数据点,定时清空这样内存压力会小很多 希望有用 [查看帮助](https://www.echartsjs.com/zh/option.html#series-line.sampling)   💪💪
   例如:
   ```javascript
   option = {
       dataset: {
           source: [
               // 有了上面 dimensions 定义后,下面这五个维度的名称分别为:
               // 'date', 'open', 'close', 'highest', 'lowest'
               [12, 44, 55, 66, 2],
               [23, 6, 16, 23, 1],
               ...
           ]
       },
       series: {
           type: 'xxx',
           // 定义了每个维度的名称。这个名称会被显示到默认的 tooltip 中。
           dimensions: ['date', 'open', 'close', 'highest', 'lowest']
       }
   }
   series: {
       type: 'xxx',
       dimensions: [
           null,                // 如果此维度不想给出定义,则使用 null 即可
           {type: 'ordinal'},   // 只定义此维度的类型。
                                // 'ordinal' 表示离散型,一般文本使用这种类型。
                                // 如果类型没有被定义,会自动猜测类型。
           {name: 'good', type: 'number'},
           'bad'                // 等同于 {name: 'bad'}
       ]
   }
   ```
   

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