ECharts雷达图


formatTooltip: function (dataIndex,e) {
                var value = this.getRawValue(dataIndex);
                var coordSys = this.coordinateSystem;
                //get index by position of mouse.
                var index = getIndexToDisplay(value.length,getAngle(e.offsetX,e.offsetY,coordSys.cx,coordSys.cy));
                var indicatorAxes = coordSys.getIndicatorAxes();
                return indicatorAxes[index].name+ ' : ' + value[index]; //wangjx
                
                //region code, display all data of this series.
                /*return (this._data.getName(dataIndex) == '' ? this.name : this._data.getName(dataIndex)) + '<br/>'
                    + zrUtil.map(indicatorAxes, function (axis, idx) {
                        return axis.name + ' : ' + value[idx];
                    }).join('<br />');*/
            },
//雷达图单行显示

polar : [
                           {   center: ['42%', '50%'],
                               radius:85,
                               indicator : [
                                   { text: '荒废度', max: 100},
                                   { text: '沟通能力', max: 100},
                                   { text: '执行能力', max: 100},
                                   { text: '学习能力', max: 100},
                                   { text: '信誉度', max: 100},
                                
                                ]
                            }
                        ]
//center:    radius:85,用来换行和大小


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM