I have this object hard coded into my page. Is it possible to update the commented property with ajax? This feels like a dumb question for a yes or a no, but I never attempted this before… If possible, how would I target that property from a separate script?
<script type="text/javascript">
AmCharts.makeChart("left_gauge_div",
{
"type": "gauge",
"pathToImages": "http://cdn.amcharts.com/lib/3/images/",
"arrows": [
{
"id": "GaugeArrow-1",
"value": 23 // <-------------------------------------------- can i update this value?
}
],
"axes": [
{
"bottomText": "23",
"bottomTextYOffset": -20,
"endValue": 220,
"id": "GaugeAxis-1",
"valueInterval": 10,
"bands": [
{
"color": "#00CC00",
"endValue": 90,
"id": "GaugeBand-1",
"startValue": 0
},
{
"color": "#ffac29",
"endValue": 130,
"id": "GaugeBand-2",
"startValue": 90
},
{
"color": "#ea3838",
"endValue": 220,
"id": "GaugeBand-3",
"innerRadius": "95%",
"startValue": 130
}
]
}
],
"allLabels": [],
"balloon": {},
"titles": [
{
"id": "Title-1",
"size": 15,
"text": "Appointments Set"
}
]
}
);
</script>