0 votes
in SoSci Survey (English) by s247189 (150 points)
retagged by s247189

Hello, I have created three internal variables 'co2_transport', 'co2_accommondation' and 'co2_onsite' all containing a decimal value. Now, I want to create a stacked bar graph to visualize the the answers of the respondents at a later stage in the survey. Could you help me with the corresponding HTML/PHP codes that I would need to use?
Thank you for your valuable support!

1 Answer

0 votes
by SoSci Survey (325k points)

Please lookup the HTML code for a stacked bar chart with ChartJS.

Wehn you have that, replace the numbers with placeholders, and use a little PHP code above the HTML element for the bar chart to insert your numbers there.

Please do not forget the library('chartJS') on the page, see visual feedback.

by s247189 (150 points)
Thank you! It worked :-)

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...