guoliuqing123 opened a new issue, #19825:
URL: https://github.com/apache/echarts/issues/19825

   ### Version
   
   无
   
   ### Link to Minimal Reproduction
   
   无
   
   ### Steps to Reproduce
   
   let data = [
       [
           [ "技\n保\n中\n心\n", "#255359",4.94,5, 5.01,4.98,4.96,4.93,4.94],
           [ "网\n络\n中\n心\n","#336774", 4.96,5.02, 5.01, 5,4.99,4.98,4.97]
       ],
   ]
   
   
   
   
         let arr1 = []
         let arr2 = []
         if (data && data.length > 0) {
           data.forEach((items,index) => {
             let y = data.length === 1 ? '50%' : '';
             let radius = '35%';
   
             if(items[0])  {
               let obj1 ={
                 center: data.length === 1 ? ['28%', y] : ['28%', y],  //雷达图位置
                 radius: radius,  //雷达图直径
                 indicator: [
                   {name: 'W1', max: 10},
                   {name: 'W7', max: 10, axisLabel: {show: false}},
                   {name: items[0][0]+' '+' W6', max: 10, axisLabel: {show: 
false}},
                   // {name: 'W6', max: 10, axisLabel: {show: false}},
                   {name: 'W5', max: 10, axisLabel: {show: false}},
                   {name: 'W4', max: 10, axisLabel: {show: false}},
                   {name: 'W3', max: 10, axisLabel: {show: false}},
                   {name: 'W2', max: 10, axisLabel: {show: false}}
                 ],
                 nameGap:5, //指示器名称和指示器轴的距离。
                 splitNumber: 5, // 雷达图圈数设置
                 axisLine: {  // 设置雷达图中间射线的颜色
                   lineStyle: {
                     color: '#fff',
                   },
                 },
                 axisLabel: {
                   show: false,
                   textStyle: {
                     fontSize: 8,
                     color: '#333',
                   }
                 }, //坐标轴文本标签
                 splitArea: {  //设置图表颜色,show的值为true
                   show: false,
                   areaStyle: {
                     color: "#fff", //一般设置方式
                   },
                 },
                 name: { //修改indicator文字的颜色
                   textStyle: {
                     color: "#4f4f4f",
                     fontSize:7,
                   }
                 },
               };
               arr1.push(obj1)
               let obj3 ={
                 type: 'radar',
                 radarIndex: arr1 && arr1.length ? arr1.length-1 :'',
                 symbolSize:4,
                 data: [{
                   name:items[0][0],
                   value: items[0].slice(2),
                   itemStyle: { //该数值区域样式设置
                     normal: {
                       color: items[0][1], //背景颜色,还需设置areaStyle
                     },
                   },
                 },]
               };
               arr2.push(obj3)
             }
             if(items[1]){
               let obj2 ={
                 center: data.length === 1 ? ['73%', y] : ['73%', y],  //雷达图位置
                 radius: radius,  //雷达图直径
                 indicator: [
                   {name: 'W1', max: 10},
                   {name: 'W7', max: 10, axisLabel: {show: false}},
                   {name: items[1][0]+' '+' W6', max: 10, axisLabel: {show: 
false}},
                   // {name: 'W6', max: 10, axisLabel: {show: false}},
                   {name: 'W5', max: 10, axisLabel: {show: false}},
                   {name: 'W4', max: 10, axisLabel: {show: false}},
                   {name: 'W3', max: 10, axisLabel: {show: false}},
                   {name: 'W2', max: 10, axisLabel: {show: false}}
                 ],
                 nameGap:5, //指示器名称和指示器轴的距离。
                 splitNumber: 5, // 雷达图圈数设置
                 axisLine: {  // 设置雷达图中间射线的颜色
                   lineStyle: {
                     color: '#fff',
                   },
                 },
                 axisLabel: {
                   show: false,
                   textStyle: {
                     fontSize: 8,
                     color: '#333',
                   }
                 }, //坐标轴文本标签
                 splitArea: {  //设置图表颜色,show的值为true
                   show: false,
                   areaStyle: {
                     color: "#fff", //一般设置方式
                   },
                 },
                 name: { //修改indicator文字的颜色
                   textStyle: {
                     color: "#4f4f4f",
                     fontSize:7,
                   }
                 },
               };
               arr1.push(obj2)
               let obj4 ={
                 type: 'radar',
                 radarIndex: arr1 && arr1.length ? arr1.length-1 :'',
                 symbolSize:4,
                 data: [
                   {
                     name:items[1][0],
                     value: items[1].slice(2),
                     itemStyle: { //该数值区域样式设置
                       normal: {
                         color: items[1][1], //背景颜色,还需设置areaStyle
                       },
                     },
                   },
                 ]
               };
               arr2.push(obj4)
             }
           });
         }
   
         option ={
           radar:arr1,
           series:arr2,
           tooltip: {
             formatter(params){
               return (params.name + '<br/>'+
                 'W1: '+params.value[0]+ '<br/>'+
                 'W2: '+params.value[1]+ '<br/>'+
                 'W3: '+params.value[2]+ '<br/>'+
                 'W4: '+params.value[3]+ '<br/>'+
                 'W5: '+params.value[4]+ '<br/>'+
                 'W6: '+params.value[5]+ '<br/>'+
                 'W7: '+params.value[6]
               )
             },
           },
         }
   
   ### Current Behavior
   
   
![QQ1](https://github.com/apache/echarts/assets/105954867/625716af-4861-4619-94ea-b48ebb235552)
   当前的样式是放在indicator的name 中实现的 
,这样修改fontweight,其他文字也受影响,想要实现如预期行为的图片的样子,修改fontweight的时候,其他文字不受影响
   
   ### Expected Behavior
   
   
![QQ3](https://github.com/apache/echarts/assets/105954867/1d90d522-19aa-43bf-ac07-1994c684731b)
   想要实现如预期行为的图片的样子,修改fontweight的时候,其他文字不受影响
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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-unsubscr...@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to