in Embedded Wizard Studio by
I am trying to plot an SVG image. But, SVG string is more than 2kB. String is getting broken into multiple lines and getting compilation errors. Please help me to fix this issue.

1 Answer

0 votes


SVG support is not limited to 2048 characters. Also the strings are not limited. From your description I suppose you address a limitation of the Code Editor. Code lines longer than 2048 characters are automatically broken. New, unexpected Line-Feed is added then to the code. If this is the case, you can try following:

1. If the long SVG line is found in the implementation of a method, you can divide the long SVG string in multiple shorter strings and concatenate them with the + operator as shown below:

2. If you want the long SVG string to be assigned to a constantvariable, etc. member, then copy and paste the string directly in the Inspector window without using the Code Editor window as shown below:

Does it help you further?

Best regards

Paul Banach

Yes Paul,

This addressed my issue. Thanks for your help.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint