Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Two google graphs in one question group?

  • Marieke123
  • Marieke123's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #156586 by Marieke123
Two google graphs in one question group? was created by Marieke123
I want to display two different google graphs in one question group (data is based on respondent's answers)

I have now used two different questions to program the two graphs. However, the code of the second graph replaces the code of the first graph and only the second graph is shown.

Is there anyway to overcome this and to display both graphs in one question group?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 8 months ago #156599 by tpartner
Replied by tpartner on topic Two google graphs in one question group?
Some indication of the code you used and where you put it would be helpful.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Marieke123
  • Marieke123's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago - 6 years 8 months ago #156603 by Marieke123
Replied by Marieke123 on topic Two google graphs in one question group?
Below you can find the code I used for two questions in one question group (I also want to use the expression manager to insert weights from previous questions, but I can also recall the problem without using them). I have also attached the limesurvey-group file (Dutch language). I have also tried this solution, but it did not work (or perhaps I coded something wrong). stackoverflow.com/questions/9888920/how-...arts-on-the-one-page

File Attachment:

File Name: twographs_...roup.lsg
File Size:7 KB


Question 1:
<script type="text/javascript" src=" www.google.com/jsapi ">