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/09/05 03:01:47 UTC
[GitHub] [echarts] echarts-bot[bot] commented on issue #17615: [Bug] Property 'renderToSVGString' does not exist on type 'EChartsType'.
echarts-bot[bot] commented on issue #17615:
URL: https://github.com/apache/echarts/issues/17615#issuecomment-1236498457
@han-ysys It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**BODY**
### Version
5.3.3
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
I want to export the chart to pdf. After I found 5.3.0, there is a method renderToSVGString. I tried it
````javascript
const echartsdiv = document.getElementById('chart-for-download') as HTMLElement
chartins = echarts.init(echartsdiv, undefined, {renderer: 'svg'})
console.log('renderToSVGString', chartins.renderToSVGString())
````
### Current Behavior
vscode error
> Property 'renderToSVGString' does not exist on type 'EChartsType'.
However, the definition of renderToSVGString can be found in echarts.d.ts
> renderToSVGString(opts?: {
useViewBox?: boolean;
}): string;
### Expected Behavior
hope it gets resolved
### Environment
_No response_
### Any additional comments?
_No response_
</details>
--
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