I'm using AmCharts in my program with guides line. These guide lines i tested with some values see code below.:
"guides": [{
"value": 17.3,
"toValue": 17.3,
"lineColor": "#FF3C1E",
"balloonText": "17.3",
"fillAlpha": 1,
"fillColor": "#FF3C1E",
"position": "right",
"label": "Max grens"
}, {
"value": 16.5,
"toValue": 16.5,
"lineColor": "#CCF500",
"balloonText": "16.5",
"fillAlpha": 1,
"fillColor": "#CCF000",
"position": "right",
"label": "Target"
}, {
"value": 15.2,
"toValue": 15.2,
"lineColor": "#FF3C1E",
"balloonText": "15.2",
"fillAlpha": 1,
"fillColor": "#FF3C1E",
"position": "right",
"label": "Min grens"
}],
I tryed to pas my session value into that like this: "value": <?php $_SESSION["RMFRtarget"]; ?>,
But that dos'nt work.
Can anybody help me, i'm little bit stuck on it.
Forget about my comment. You just simply forgot to echo the value of your session variable:
"value": <?php echo $_SESSION["RMFRtarget"]; ?>