Welcome, Guest
Username: Password: Remember me

TOPIC: displaying a google chart using the expression manager

displaying a google chart using the expression manager 2 years 6 months ago #77475

  • nkorf
  • nkorf's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Thank you received: 1
  • Karma: 1
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 ?
The administrator has disabled public write access.

Re: displaying a google chart using the expression manager 2 years 6 months ago #77477

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
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).
The administrator has disabled public write access.

Re: displaying a google chart using the expression manager 2 years 6 months ago #77483

  • nkorf
  • nkorf's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Thank you received: 1
  • Karma: 1
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 !
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.094 seconds
Donation Image