Dear Community,
is it possible to add a chart with a width defined by an equation-value in the question text box?
Problem
The situation is the following: I have two questions. The first question is from the type equation and saves a numeric positive value var_x.NAOK. In the question text box of the second question, I want to dispaly a chart. The width of the chart shall be var_x.NAOK. My objective is two show a chart where I can set the width/ size of e.g. a bar with var_x.NAOK.
Current approach
My current solution is the following:
The simple HTML-Code draws three bars. However, the width is fixed (e.g. width: 400px). I can only display the equation-value as the descritpion (e.g. ..> bar 1 {var_x.NAOK}</div>)
Code:
<h2>Bar Chart</h2>
<div style="font: 10px sans-serif; text-align: right; color: white;">
<div style="background: steelblue; padding: 3px; margin: 1px; width: 400px;"> bar 1 {var_x.NAOK}</div>
<div style="background: steelblue; padding: 3px; margin: 1px; width: 100px;"> bar 2 </div>
<div style="background: steelblue; padding: 3px; margin: 1px; width: 50px;"> bar 3 </div>
</div>
Version
My current version is LimeSurvey 3.22.27+200720. I am flexible in version and add-ons.
I am happy about your expert insights!