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

   ### Version
   
   5.5
   
   ### Link to Minimal Reproduction
   
   -----
   
   ### Steps to Reproduce
   
       initChart() {
         let that = this;
         //初始化X坐标轴
         // let xValue = [];
         // for (let i = 100; i < 900; i++) {
         //   xValue.push(i);
         // }
         const xValue = ['6', '6.5', '7', '7.5', '8', '8.5', '9', '9.5', '10'];
         const yValue = ['6', '6.5', '7', '7.5', '8', '8.5', '9', '9.5', '10'];
         //初始化Y坐标轴
         // let yValue = [];
         // for (let i = -26; i < 27; i++) {
         //   yValue.push(i);
         // }
   
         let option = {
           xAxis: {
             type: 'category',
             data: xValue,
             splitArea: {
               show: true //斑马纹展示
             }
           },
           yAxis: {
             type: 'category',
             data: yValue,
             splitArea: {
               show: true //斑马纹展示
             }
           },
           title: {
             top: 30,
             left: 'center',
             text: 'Daily Step Count'
           },
           tooltip: {},
           visualMap: {
             min: 0,
             max: 10000,
             type: 'piecewise',
             orient: 'horizontal',
             left: 'center',
             top: 65
           },
   
           series: {
             type: 'heatmap',
             name: 'Znys Map',
             data: that.seriesData,
           }
         };
   
         option && that.myChart.setOption(option);
       },
   
   ### Current Behavior
   
       this.myChart = echarts.init(chartDom);
       this.initChart();
       let i = 1, j = 0
       let data=[];
       // this.timer = setInterval(function () {
       for (let j = 0; j < 10; j++) {
         let dataItem = [];
         dataItem.push(j);
         dataItem.push(i);
         dataItem.push(8);
         dataItem.push(i * 2);
         // that.seriesData.push(dataItem);
         data.push(dataItem);
         // this.myChart.setOption({
         //       series: [{
         //         // 假设是某个系列
         //         data: data // 这里替换为你要添加的数据
         //       }]
         //     });
         this.myChart.appendData({
           seriesIndex: 0,
           data: data
         });
         console.log('size is:'+this.seriesData.length)
       }
   
   
   ### Expected Behavior
   
   appendData有效
   
   ### 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: [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