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