You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "kim1124 (via GitHub)" <gi...@apache.org> on 2023/04/28 06:09:53 UTC

[GitHub] [echarts] kim1124 opened a new issue, #18576: [Bug] When dynamically setting series.markArea in SVG mode, if you set markArea after updating the data, it will not be rendered.

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

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/distribution-of-electricity-forked-209l2z?file=/index.js
   
   ### Steps to Reproduce
   
   Here's how to reproduce the bug.
   
   1. Click the "Mark Update" button at the bottom of the chart.
   2. Then click the "Data Update" button to update the data.
   3. Click the "Mark Update" button again to confirm that the Mark Area is not displayed on the screen.
   
   This bug is not reproduced in canvas. If you change the render properties to "canvas" at the top and proceed with the same procedure above, the Mark Area will output normally.
   
   ### Current Behavior
   
   In SVG mode, you want to set the mark area dynamically regardless of the data update, but in the current version, you cannot set the mark area dynamically after updating the data.
   
   To output mark area, you must clear ECharts, then reset all chart options and set Mark Area. This bug does not appear in Canvas mode; it only works normally in Canvas mode.
   
   ### Expected Behavior
   
   We request a modification so that the mark area can be dynamically printed regardless of the data update even in svn mode.
   
   ### Environment
   
   ```markdown
   - OS:Window 10
   - Browser: Chrome 112.0.5615.138
   - Framework: None
   ```
   
   
   ### 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-unsubscribe@echarts.apache.org.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


[GitHub] [echarts] kim1124 commented on issue #18576: [Bug] When dynamically setting series.markArea in SVG mode, if you set markArea after updating the data, it will not be rendered.

Posted by "kim1124 (via GitHub)" <gi...@apache.org>.
kim1124 commented on issue #18576:
URL: https://github.com/apache/echarts/issues/18576#issuecomment-1528740005

   > not-a-bug [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&renderer=svg&code=GYVwdgxgLglg9mABAEzgFRgWwKYAoDOUAhgE5QCUiA3gFCKIQKGJTaYAOGOiAvIgNoBdANx1EwOCUS4ANtiiIYvRIVJRhixAB4VxMogDUiAEwAGDTAMHKtevVYcu2AHTsQ-ABa4A5KdMAub0NFclF6AF8xEnkQEiQHTixsUUiaWG4-VCdcM1CaZCJiZX4xAGYzUwAaE2MADiqagFYG4wA2M2rjAHZSht6AFgbGgEZm6ubB6sG-gE4--urSuam_cdWxVtXELrHEeoaurc2G6ZoRGhpGMGZ8bBIYbHxlW0QwIhx_RG8AUTloe4gMCgAE9vJUxCD2NhPt4ZDAwNgwWJ8Jg4HAoB5PlASCBsOD6AViJ8SnZEL0WgsTLs2i1Dosto1ds0TlslvNZiyhkd1qSdg19tVDg1jitTGJBPjEJhSABrACC0SInxeBMKSoE_CoiAAHnLtTB8FikvxjIJEOFqlrdfrDSxjaUzeFBIIxJFwqJLkwFNqiM8xAAjODgAokYEAcSI7E-wCIMluksJ6vS2Bo7pocHYsAQfvsQLkyrE9mw2qgMIAIgbsTB_SAs0g4MBEL9sP8YICQUjSfgQP7WCWYQAxIgy7CIMtq7yuyVQNEyWBR6iFlj3ADmK7uMKINs7di3BoACnB4awSAXSfZgVCYRASHB8PhJ6TIhFp7PA9qz3ZPHAAO5YnF4kuwDYIUsTQou54qEQABu2ByvgACS0rrsqz52GhFpiNaBqfD6krAnqOEQXYkLgd40GxriO70Hu-AADJEP62AyJ-pISCQ0pQCeMJUBRMi4uEiAAOqPuhko0Tah7HhuxFdm8C7YriS4YZKtz3I8nxqQ8-Cph6txQE4QZQLguCUDwAB8xHJsoWRJLggx5PQPrOImy
 jJmEKh3NpLlqsUS7lFsxh1C0xjUu0tK9PSkyICMTKmNF0yLMsZKUmyoriTF3IHLsArbFlorih5WmPM40okPKio5nYQJsAAyiC-bUAwcAyJIMLsPCMpBJhpKJsSmo6oRtrJiajqWoNNpGjg_AOuazquh69CYMCADCHhqM4-kAPKZvAYC4CqE1EXhS7FbaZ2unkFqIMMpR3aEQA)
   
   What I want is to set up the Mark Area after updating the data. The example you made is different from the problem I found.
   
   Try to set the mark area as shown below after updating the data. It works on canvas, but not on svg.
   
   ```javascript
   setTimeout(() => {
     time = doTime(40);
     xa.data = time;
     series.data = [
       3200,
       2280,
       2250,
       2620,
       2730,
       3040,
       5150,
       5040,
       400,
       390,
       380,
       390,
       400,
       500,
       600,
       750,
       800,
       700,
       600,
       400
     ];
   
     myChart.setOption({
       xAxis: xa,
       series: series
     });
   }, 1333);
   
   setTimeout(() => {
     series.markArea = {
       itemStyle: { color: "pink" },
       data: [[{ xAxis: time[2] }, { xAxis: time[3] }]]
     };
   
     myChart.setOption({
       series: series
     });
   }, 5000);
   ```


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


[GitHub] [echarts] helgasoft commented on issue #18576: [Bug] When dynamically setting series.markArea in SVG mode, if you set markArea after updating the data, it will not be rendered.

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18576:
URL: https://github.com/apache/echarts/issues/18576#issuecomment-1528834200

   cannot reproduce, works fine with canvas and SVG.
   Please reply with fully reproducible code.
   NB: please close issue if problem solved.
   


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


[GitHub] [echarts] helgasoft commented on issue #18576: [Bug] When dynamically setting series.markArea in SVG mode, if you set markArea after updating the data, it will not be rendered.

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18576:
URL: https://github.com/apache/echarts/issues/18576#issuecomment-1527973307

   not-a-bug
   [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&renderer=svg&code=GYVwdgxgLglg9mABAEzgFRgWwKYAoDOUAhgE5QCUiA3gFCKIQKGJTaYAOGOiAvIgNoBdANx1EwOCUS4ANtiiIYvRIVJRhixAB4VxMogDUiAEwAGDTAMHKtevVYcu2AHTsQ-ABa4A5KdMAub0NFclF6AF8xEnkQEiQHTixsUUiaWG4-VCdcM1CaZCJiZX4xAGYzUwAaE2MADiqagFYG4wA2M2rjAHZSht6AFgbGgEZm6ubB6sG-gE4--urSuam_cdWxVtXELrHEeoaurc2G6ZoRGhpGMGZ8bBIYbHxlW0QwIhx_RG8AUTloe4gMCgAE9vJUxCD2NhPt4ZDAwNgwWJ8Jg4HAoB5PlASCBsOD6AViJ8SnZEL0WgsTLs2i1Dosto1ds0TlslvNZiyhkd1qSdg19tVDg1jitTGJBPjEJhSABrACC0SInxeBMKSoE_CoiAAHnLtTB8FikvxjIJEOFqlrdfrDSxjaUzeFBIIxJFwqJLkwFNqiM8xAAjODgAokYEAcSI7E-wCIMluksJ6vS2Bo7pocHYsAQfvsQLkyrE9mw2qgMIAIgbsTB_SAs0g4MBEL9sP8YICQUjSfgQP7WCWYQAxIgy7CIMtq7yuyVQNEyWBR6iFlj3ADmK7uMKINs7di3BoACnB4awSAXSfZgVCYRASHB8PhJ6TIhFp7PA9qz3ZPHAAO5YnF4kuwDYIUsTQou54qEQABu2ByvgACS0rrsqz52GhFpiNaBqfD6krAnqOEQXYkLgd40GxriO70Hu-AADJEP62AyJ-pISCQ0pQCeMJUBRMi4uEiAAOqPuhko0Tah7HhuxFdm8C7YriS4YZKtz3I8nxqQ8-Cph6txQE4QZQLguCUDwAB8xHJsoWRJLggx5PQPrOImyjJmEKh3NpLlq
 sUS7lFsxh1C0xjUu0tK9PSkyICMTKmNF0yLMsZKUmyoriTF3IHLsArbFlorih5WmPM40okPKio5nYQJsAAyiC-bUAwcAyJIMLsPCMpBJhpKJsSmo6oRtrJiajqWoNNpGjg_AOuazquh69CYMCADCHhqM4-kAPKZvAYC4CqE1EXhS7FbaZ2unkFqIMMpR3aEQA)


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


Re: [I] [Bug] When dynamically setting series.markArea in SVG mode, if you set markArea after updating the data, it will not be rendered. [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18576:
URL: https://github.com/apache/echarts/issues/18576#issuecomment-3539352908

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


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


Re: [I] [Bug] When dynamically setting series.markArea in SVG mode, if you set markArea after updating the data, it will not be rendered. [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18576:
URL: https://github.com/apache/echarts/issues/18576#issuecomment-1817076706

   a better solution with [replaceMerge](https://echarts.apache.org/en/api.html#echartsInstance.setOption) instead of _replace_ - [Demo Code](https://echarts.apache.org/examples/en/editor.html?renderer=svg&code=GYVwdgxgLglg9mABAEzgFRgWw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7eLe8YdY-RCmfRtEKTR21tbS0TsDIRAQNgACypQXgI3hAyO4p5NaFw6cYoRAA)


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


[GitHub] [echarts] kim1124 commented on issue #18576: [Bug] When dynamically setting series.markArea in SVG mode, if you set markArea after updating the data, it will not be rendered.

Posted by "kim1124 (via GitHub)" <gi...@apache.org>.
kim1124 commented on issue #18576:
URL: https://github.com/apache/echarts/issues/18576#issuecomment-1529038241

   > 
   
   Thanks for the quick check. Also, the method you gave will be of great help in solving my problem.
   
   Thanks again, hopefully this bug will be fixed in the future.


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


Re: [I] [Bug] When dynamically setting series.markArea in SVG mode, if you set markArea after updating the data, it will not be rendered. [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18576:
URL: https://github.com/apache/echarts/issues/18576#issuecomment-3568335719

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


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


Re: [I] [Bug] When dynamically setting series.markArea in SVG mode, if you set markArea after updating the data, it will not be rendered. [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #18576: [Bug] When dynamically setting series.markArea in SVG mode, if you set markArea after updating the data, it will not be rendered.
URL: https://github.com/apache/echarts/issues/18576


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