Hello,
I have several stackedbar2d with very different values. In the bars have to be a text with also the value of the bar.
For the position of the text I have this line:
"x": "$dataset.1.set.0.X - 90",
in the script for the stackedbar2d.
The number of the x-position I have to change by every value of the bar length, otherwise the text is not on the same position in display.
Is there any solution for this problem? Maybe by an calculation with the whole length of both bars in pixel and a constant?
Here is an fiddle example for that.
first chart:
"groups": [
{
"id": "Callout", "items": [
{
"id": "CalloutLabel0",
"type": "Text",
"fontSize": "12",
"bold": "0",
"fillcolor": "#333",
"text": "N=164 MW=5.8",
"align":"left",
"x": "$dataset.1.set.0.X - 200",
"y": "$dataset.0.set.0.starty + 10"
},
$dataset.1.set.0.X - 200
in the chart below:
$dataset.1.set.0.X - 320
if both has $dataset.1.set.0.X - 320 then you have this result here. (please use chrome browser for fiddle maybe)