You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/02/24 16:35:17 UTC

[GitHub] [echarts] sakiraykurt opened a new issue #16579: [Bug] some events are not triggered as expected with new SVG renderer

sakiraykurt opened a new issue #16579:
URL: https://github.com/apache/echarts/issues/16579


   ### Version
   
   5.3.0
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/nervous-lake-y3j0r9-ssr-issue-y3j0r9
   
   ### Steps to Reproduce
   
   1. Try to initialize new SVG renderer in NodeJS app.
   
   ### Current Behavior
   
   'rendered' and 'finished' events are not triggered.
   
   ### Expected Behavior
   
   'rendered' and 'finished' events to be triggered.
   
   ### Environment
   
   _No response_
   
   ### Any additional comments?
   
   It is working well with `Canvas` but not with new `SVG`.
   The app is only hanging and not finishing after `setOption()` function called.


-- 
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] sakiraykurt edited a comment on issue #16579: [Bug] some events are not triggered as expected with new SVG renderer

Posted by GitBox <gi...@apache.org>.
sakiraykurt edited a comment on issue #16579:
URL: https://github.com/apache/echarts/issues/16579#issuecomment-1055715563


   Hi,
   I was expecting the events are to be triggered. Yes, I see how it is working with SVG render. I leave some code here for people and close the issue. thanks.
   ```
   const echarts = require("echarts");
   const myChart = echarts.init(null, null, { renderer: "svg", ssr: true, width: 500, height: 500});
   const option = {};
   myChart.setOption(option);
   const svgString = myChart.renderToSVGString();
   myChart.dispose();
   ```
   


-- 
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] sakiraykurt commented on issue #16579: [Bug] some events are not triggered as expected with new SVG renderer

Posted by GitBox <gi...@apache.org>.
sakiraykurt commented on issue #16579:
URL: https://github.com/apache/echarts/issues/16579#issuecomment-1055715563


   Hi,
   I was expecting the events are to be triggered. Yes, I see how it is working with SVG render. I leave some code here for people and close the issue thanks.
   ```
   const echarts = require("echarts");
   const myChart = echarts.init(null, null, { renderer: "svg", ssr: true, width: 500, height: 500});
   const option = {};
   myChart.setOption(option);
   const svgString = myChart.renderToSVGString();
   myChart.dispose();
   ```
   


-- 
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] sakiraykurt closed issue #16579: [Bug] some events are not triggered as expected with new SVG renderer

Posted by GitBox <gi...@apache.org>.
sakiraykurt closed issue #16579:
URL: https://github.com/apache/echarts/issues/16579


   


-- 
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] JinJianQi commented on issue #16579: [Bug] some events are not triggered as expected with new SVG renderer

Posted by GitBox <gi...@apache.org>.
JinJianQi commented on issue #16579:
URL: https://github.com/apache/echarts/issues/16579#issuecomment-1055305522


   @sakiraykurt hi~
   Through the offical docs, the `renderToSVGString` API should be called. And this function will return string, the SVG string.
   ```js
   const str = barChart.renderToSVGString();
   ```
   And there may be no desire that need those listeners in server side, cause there is no other thing but only rendering.


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