You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/06/28 08:16:22 UTC

[GitHub] [incubator-echarts] Ka-Houl commented on issue #10750: echarts3.*后的版本,雷达图不支持展示单个维度的数据

Ka-Houl commented on issue #10750: echarts3.*后的版本,雷达图不支持展示单个维度的数据
URL: https://github.com/apache/incubator-echarts/issues/10750#issuecomment-506647003
 
 
   @Ovilia  在formatter回调函数参数params中,未能找到相应端点坐标index,因而似乎判断不出鼠标是移动到了雷达图的哪个端点位置上
   formatter: (params: Object|Array, ticket: string, callback: (ticket: string, html: string)) => string
   
   文档中params的介绍如下
   {
       componentType: 'series',
       // 系列类型
       seriesType: string,
       // 系列在传入的 option.series 中的 index
       seriesIndex: number,
       // 系列名称
       seriesName: string,
       // 数据名,类目名
       name: string,
       // 数据在传入的 data 数组中的 index
       dataIndex: number,
       // 传入的原始数据项
       data: Object,
       // 传入的数据值
       value: number|Array,
       // 数据图形的颜色
       color: string,
   
       // 饼图的百分比
       percent: number,
   
   }

----------------------------------------------------------------
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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org