544447 commented on issue #19964:
URL: https://github.com/apache/echarts/issues/19964#issuecomment-2123790847

   let scatter = []
     let scatters = []
     for (let i = 0; i < data.length; i++) {
       if (i < 5) {
         scatter.push(data[i])
       } else {
         scatters.push(data[i])
       }
     }
   
     let option = {
       visualMap: {
         show: false,
         min: 0,
         max: 2600,
         inRange: {
           color: [
             '#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', 
             '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026'
           ]
         }
       },
       tooltip: {
         backgroundColor: 'rgba(0, 0, 0, 0.4)',
         borderColor: 'rgba(0, 0, 0, 0.4)',
         textStyle: { color: '#fff' },
         formatter: (params) => {
           return `仿真结果<br/>出口平均温度:${params.value[4]}℃`
         }
       },
       xAxis3D: {
         name: '温度(℃)',
         type: 'value'
       },
       yAxis3D: {
         name: '压力(Mpa)',
         type: 'value'
       },
       zAxis3D: {
         name: '流量(kg/s)',
         type: 'value'
       },
       grid3D: {
         axisLine: {
           lineStyle: { color: '#fff' }
         },
         axisPointer: {
           lineStyle: { color: '#fff' }
         },
         viewControl: {
           // autoRotate: true
         },
         light: {
           main: {
             shadow: true,
             quality: 'ultra',
             intensity: 1.5
           }
         }
       },
       series: [
         {
           name: '仿真结果',
           type: 'scatter3D',
           data: scatter,
           shading: 'lambert',
           symbolSize: 10
         },
         {
           name: '仿真结果',
           type: 'scatter3D',
           data: scatters,
           shading: 'lambert',
           itemStyle: {
             borderWidth: 1,
             borderColor: '#fff',
           },
           symbolSize: 20
         },
       ]
     },this is my code


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to