BiptJXu opened a new issue #13348:
URL: https://github.com/apache/incubator-echarts/issues/13348


   ### Version
   latest
   
   ### Steps to reproduce
   First, you need to define an array with repeated data, which is correct when 
drawn. However, if you modify the data "my_data[0]=140", you will find that the 
last data is also refreshed 
once.(CH:首先,你需要定义含有重复数据的数组,这时画出来时正确的。但是,如果你修改其中的数据“my_data[0]=140”,你会发现最后一个数据也刷新了一次)
   ```javascript
   var my_data=[130, 200, 150, 80, 70, 110, 130];
   my_data[0]=135;    //test code(is a example)
   option = {
       xAxis: {
           type: 'category',
           data: my_data
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           data: my_data,
           type: 'bar'
       }]
   };
   ```
   This problem seems to have nothing to do with the version. Today, I also 
encountered this problem in the Example on the official 
website.(https://echarts.apache.org/examples/en/editor.html?c=bar-simple)
   
   ### What is expected?
   When the histogram(bar) has two duplicate data, modifying one will refresh 
the other at the same time, although I only want to show the change of one 
data.(CH:当柱状图有两个重复数据时,修改其中一个会同时刷新另外一个,虽然我只想展示一个数据的变化)
   
   ### What is actually happening?
   When modifying the first data, I found that the last data will also change, 
even though I only modified the first one in the array (when the first element 
is the same as the last one).
   CH:修改第一个数据时,发现最后一个数据也会变化,尽管我在数组中只修改了第一个(当第一个元素和最后一个相同时)。
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
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.

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