displaying a google chart using the expression manager

More
5 years 5 months ago #77475 by nkorf
nkorf created the topic: displaying a google chart using the expression manager
Hi,
First of all thanks for the great work you are doing. Especially the Expression Manager is amazing. One thing that i have come through is the ability to render an image based on answers from previous questions. E.g. getting the age and the number of students to show a chart using the google chart api in the next boilerplate question. I have tried to do it by taking the variables using the Expression Manager but when i put an img tag (e.g. <img src=charts.google.com...chd={age}|{num_of_births} />) the data are not retrieved. Has anyone succeeded on doing that ?

Please Log in to join the conversation.

More
5 years 5 months ago #77477 by TMSWhite
TMSWhite replied the topic: displaying a google chart using the expression manager
nkorf-

Does it work if you put your image on the next page? EM inserts <span> tags if you try to use a variable on the same page (so that it can dynamically replace the contents on the page), so that would put a <span> tag in the middle of your <img> tag attribute (and thus would not work).

Please Log in to join the conversation.

More
5 years 5 months ago #77483 by nkorf
nkorf replied the topic: displaying a google chart using the expression manager
Hi: You are absolutely right, it works if it is on another page. Its amazing what you can do with the Expression Manager, great work !

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now