Welcome to the LimeSurvey Community Forum

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

Plot a single result on an XY chart

  • DenisChenu
  • DenisChenu's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 days ago #151061 by DenisChenu
Plot a single result on an XY chart was created by DenisChenu
Not included LimeSurvey core, and i really think we never include something like this.

Solutions :
1. Make it via CSS only ? Must be possible
2. Make it via a js graph system
3. Make it via a php graph system (and get framagit.org/SondagePro-LimeSurvey-plugin/generateGraphQuestion for inspiration)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 4 days ago - 7 years 4 days ago #151286 by tpartner
Replied by tpartner on topic Plot a single result on an XY chart
Assuming the plot is on a different page from the position questions, you can do this with Expression Manager in the CSS of the plot.

Here is a simple example of plotting a dot inside a container with percentages loaded via Expression Manager:

Code:
<div class="frame" style="position:relative;width:300px;height:300px;background:#FFFFFF;border:1px solid #000000;">
  <div class="dot" style="position:absolute;width:8px;height:8px;background:red;margin:-4px 0 0 -4px;left:{position_SQ001}%;top:{position_SQ002}%; border-radius:50%;"></div>
</div>

Sample survey attached:

File Attachment:

File Name: limesurvey...1874.lss
File Size:16 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 years 4 days ago by tpartner.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 days ago #151310 by DenisChenu
Replied by DenisChenu on topic Plot a single result on an XY chart
And tpartner do it in css only !!!

Great , really great

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose