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 [06.02.2017 01:20] – u m.andrejevicen:create:feedback-visual [07.02.2017 14:14] – [Mehrere Werte (II)] m.andrejevic
Line 133: Line 133:
  
  
-==== Mehrere Werte (I) ====+==== Multiple Values (I) ====
  
-Mit Hilfe der Funktion ''[[:de:create:functions:diagram2]]'' lassen sich ausgewählte Diagramme im Fragebogen platzierenZur Verwendung sei auf die Dokumentation der Funktion verwiesenEine optimierte Funktion ''chart()'' wird in künftigen Versionen von SoSci Survey zur Verfügung stehen.+Using the function ''[[:en:create:functions:diagram2]]'', one can place desired Diagrams into the QuestionnaireTo learn how to use it please refer to the documentation of the functionAn optimized function ''chart()'' is going to be available in future versions of SoSci Survey. 
 +==== Multiple Values (II) ====
  
- +As long as the //Highcharts// plug-in is available on the questionnaire serveryou can use the Highcharts library to display nifty diagrams in your questionnaireAs 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 chartYou can find clarifications and details  at [[http://www.highcharts.com/docs|Highcharts Dokumentation]].
-==== Mehrere Werte (II) ==== +
- +
-Sofern auf dem Befragungsserver das Plug-In //Highcharts// zur Verfügung stehtkönnen mit der Highcharts-Bibliothek sehr schicke Diagramme im Fragebogen angezeigt werdenWenn die Kategorie-Beschriftungen in im Array ''$labels'' gespeichert sinddie Ergebnisse im Array ''$ownData'' und Referenzdaten im Array ''$refData'', kann man mit folgendem Textbaustein "chart" (//Darstellung// "HTML_Code"und dem zugehörigen PHP-Code ein Balken-Diagramm anzeigenErklärungen und Details sind der [[http://www.highcharts.com/docs|Highcharts Dokumentation]] zu entnehmen.+
  
 <code html> <code html>
-<!-- Container für das Diagramm -->+<!-- Container for the diagram -->
 <div id="chart" style="height: 600px"></div> <div id="chart" style="height: 600px"></div>
  
Line 184: Line 182:
         },         },
         series: [{         series: [{
-            name: 'Durchschnitt',+            name: 'Average',
             data: %refData%,             data: %refData%,
             color: '#BBBBBB',             color: '#BBBBBB',
Line 191: Line 189:
             }             }
         }, {         }, {
-            name: 'Ihr Wert',+            name: 'Your Value',
             data: %ownData%,             data: %ownData%,
             color: '#009900',             color: '#009900',
Line 207: Line 205:
  
 <code php> <code php>
-// Bibliothek jQuery verfügbar machen+// Make jQuery library available
 option('script', 'jQuery 1.x'); option('script', 'jQuery 1.x');
-// Textbaustein mit dem HTML-Code für das Chart einbinden+// Bind the textblock with the HTML code for the chart
 text('chart', array( text('chart', array(
   '%labels%' => json_encode($labels),   '%labels%' => json_encode($labels),
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