Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:feedback-visual [04.04.2019 23:14] adminen:create:feedback-visual [26.11.2020 21:15] – [Multiple Values (II)] sophia.schauer
Line 91: Line 91:
 {{:de:create:exp.feedback-visual.textelement.png?nolink|An example for visual presentation of a single value}} {{:de:create:exp.feedback-visual.textelement.png?nolink|An example for visual presentation of a single value}}
  
-Save the following HTML code as a textblock, for example under the identifier "responseSD".+Save the following HTML code as a text in the list fo questions (the following examples assume that it gets the ID "RS01").
  
 <code html> <code html>
Line 125: Line 125:
 // Use textblocks (only if $value delivered a valid value) // Use textblocks (only if $value delivered a valid value)
 if ($value > 0) { if ($value > 0) {
-  show('responseSD', array(+  show('RS01', array(
     '%title%' => 'Extraversion',     '%title%' => 'Extraversion',
     '%zValue100%' => round($zValue * 100)     '%zValue100%' => round($zValue * 100)
Line 139: Line 139:
  
 As long as the //Highcharts// plug-in is available on the questionnaire server, you can use the Highcharts library to display nifty diagrams in your questionnaire. As long as the category labels are saved in the array ''$labels'', the results are saved in the array ''$ownData'', and reference data in the array ''$refData'', you can use the following text block "chart" (//Darstellung// "HTML_Code") and the associated PHP code to display a bar chart. You can find clarifications and details  at [[http://www.highcharts.com/docs|Highcharts Dokumentation]]. As long as the //Highcharts// plug-in is available on the questionnaire server, you can use the Highcharts library to display nifty diagrams in your questionnaire. As long as the category labels are saved in the array ''$labels'', the results are saved in the array ''$ownData'', and reference data in the array ''$refData'', you can use the following text block "chart" (//Darstellung// "HTML_Code") and the associated PHP code to display a bar chart. You can find clarifications and details  at [[http://www.highcharts.com/docs|Highcharts Dokumentation]].
 +
 +**Tip:** The PlugIn ChartJS is available by default and offers similar possibilities as Highcharts.
  
 <code html> <code html>
en/create/feedback-visual.txt · Last modified: 07.12.2023 07:01 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki