Modifying existing venn diagram JavaScript code for Qualtrics | Experience Community
Skip to main content
Solved

Modifying existing venn diagram JavaScript code for Qualtrics

  • Oct 20, 2018 10:27 AM UTC
  • 10 replies
  • 468 views

I came across this JavaScript to implement a venn diagram measure of overlap: https://github.com/noahfreedman/qualtrics_venn_diagram It seems to have been written quite a while ago. The demo is not functioning and the instructions are outdated. But I think the code is usable with a few adjustments, maybe. Any suggestions on how to use this?

Best answer by TomG

No, but I created a Venn Diagram script that works a completely different way: !
View original

10 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • Oct 20, 2018 7:17 PM UTC
No, but I created a Venn Diagram script that works a completely different way: !

  • Author
  • Oct 20, 2018 7:28 PM UTC
Thanks. Is this open-source? and can it be adjusted to increments of 1 instead of 10?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Oct 21, 2018 1:38 PM UTC
No, it is not open source. It modifies a graphic slider ten-gauge so it can only be adjusted in increments of 10.

  • Mar 15, 2019 6:49 PM UTC
Where can I find this Venn Diagram script?

Forum|alt.badge.img

I would love to know where to find this script as well!


  • Author
  • May 12, 2020 4:50 PM UTC

Hi Hannahkh95,
I got around this in a rather weird way. It's not perfect, so please excuse the non-technical language, but it works. So I used Tom's idea of utilising the 10-gauge slider and created 11 images of overlapping circles, then fed them into the CSS of qualtrics graphic elements. Here's how to do it:

  1. Create a graphic slider and select ten-gauge.

  2. Look & Feel -> Back to Old Editor -> Advanced -> +Add Custom CSS

  3. Paste the attached css code into the box, which will give you control over lots of visual elements. If you look at the 10-gauge section, I have redirected qualtrics to another address, corresponding to the images I wanted to show up (i.e. 11 stages of overlap), but really you can choose any image as long as you are careful with the size and formatting.

Although within qualtrics it may still look like a ten gauge, when you preview/publish, the right diagrams will show up. If this doesn't work, try changing the theme/template of the survey. I hope this helps.
1.png2.png3.png4.pnga.pngcss.txt


Forum|alt.badge.img

Thank you so much!!! This is amazing :D


  • Oct 3, 2021 3:50 PM UTC

Does anyone know how to get a version of the Venn diagram that depicts full overlap?


Forum|alt.badge.img+1
  • Jun 9, 2022 12:42 PM UTC

https://community.qualtrics.com/XMcommunity/discussion/comment/40930#Comment_40930I realise this is a while back now but I would really be interested in knowing the answer to this too!


Forum|alt.badge.img
  • Apr 5, 2024 12:34 AM UTC

Hi Hannahkh95,
I got around this in a rather weird way. It's not perfect, so please excuse the non-technical language, but it works. So I used Tom's idea of utilising the 10-gauge slider and created 11 images of overlapping circles, then fed them into the CSS of qualtrics graphic elements. Here's how to do it:

  1. Create a graphic slider and select ten-gauge.
  2. Look & Feel -> Back to Old Editor -> Advanced -> +Add Custom CSS
  3. Paste the attached css code into the box, which will give you control over lots of visual elements. If you look at the 10-gauge section, I have redirected qualtrics to another address, corresponding to the images I wanted to show up (i.e. 11 stages of overlap), but really you can choose any image as long as you are careful with the size and formatting.


Although within qualtrics it may still look like a ten gauge, when you preview/publish, the right diagrams will show up. If this doesn't work, try changing the theme/template of the survey. I hope this helps.
1.png2.png3.png4.pnga.pngcss.txt

 

Hi Easa, is there a way to download your css file and use your adaptation? Qualtrics will not allow me to download the .txt, but I am also not sure if it will still work given how much time has passed.

 

Thank you!