You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "henrik-wolf (via GitHub)" <gi...@apache.org> on 2024/11/12 08:47:31 UTC

Re: [I] [Bug] Selected state not correctly redrawn when updating map data with `setOption` [echarts]

henrik-wolf commented on issue #20502:
URL: https://github.com/apache/echarts/issues/20502#issuecomment-2469925047

   It seems to me that the [`series-map.data.selected`](https://echarts.apache.org/en/option.html#series-map.data.selected) is not considered on a redraw that was not triggered by a mouse-interaction. Using
   ```javascript
   data: [
           { name: 'poly_0', value: 0.4, selected: true },
           { name: 'poly_1', value: 0.1, selected: false },
         ],
   ```
   as the data in the map series does not render the selected area as selected until you interact with the map:
   [see this example](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=MYewdgzgLgBAtgTwOYFMQCsLhgXhgbwFgAoGGKBABxQC4YByAMRQEMoBXAJxQGEQAbfimBQAluHoAaEmQBmrDtwh0A2jLIF1G8lVoNmbLiilaNogCZ16ABhOltMVCDgoonBHSL2HMUCE7momBsKMowat4-4aZR4QCsAMwAjABsCQkAdABMSVlx1gDs1qmSMCmFcUkJ1hlxACwFSakAnFkAutKRsSqJWSkAHHHZzQUpOdbFpeUFCf1ZmXHNuUn9CSkdMVE9CVl1Sc0Z1oPpxXEpU4UrVYeNlVlLG10Oj7EvURTUVgAKAsgSnT4AL4AhyUTggaicMShTybMgsbgsOj5DJzEZFdK3QYgnyUX4AfQsVjx_AQ-NsOI0wNM1MiXh8Hz0TAURjsPiJDCSbIcThcbg8mieZD8ASCITCEViZElUulvSqmRyeUKxXOZQqVRq9UaLXalO6iTqsyG91G40m6pmcwWSxyq3W-q2hr2ByOiWqSTOF0a_WulzuD0d2jePhDDkZ31-SH-m1puPBkOhYXpUQRrGRNTRBQxCSxcSDMBJZI59CL-K5jrjVJBj0BAG4SCRhAALBFQCAZbhIUTQFCcACyLEoAAp6GmWPi4EOpPBkGhMOAAJQN4gkCFibB4FNQEACMSUTxVgBuPfYLH4g4Pgu0cCCdGslKnAA86ElKUEAEosMCoWFPUD8P4qj0AAxOYABGLDABMM6gRBKQoDBpSgcAsgTDBYZVmQEB9qIoQAJJgOYKAvjAD7qFWTiqKYKbaBGDBTpQ3I3kOVjjpO06OsELhfAmfYUMSBIWMxMBVm8OGcHhEo0Zs9H0IxIlkE4hHEaR5FPDhQgiCg5j9iAxFWBAQRIEIikwOYbBItEQoEDA3FMmWFIwEe57sHoNR1KUmnCFAOl0G4
 bmiQW-B2SwLiCaS5Yzi5_BufeGRvjA3naZYMCyOeOFBZsmHqLWQA)


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

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


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