Bubble Chart with different colors
HTML
<script type="text/javascript" src="http://www.amcharts.com/lib/3/amcharts.js"></script>
<script type="text/javascript" src="http://www.amcharts.com/lib/3/xy.js"></script>
<script type="text/javascript" src="http://www.amcharts.com/lib/3/themes/none.js"></script>
<div id="chartdiv"></div>
CSS
#chartdiv {
width : 100%;
height : 500px;
}
JavaScript
var chart = AmCharts.makeChart("chartdiv", {
"type": "xy",
"pathToImages": "http://www.amcharts.com/lib/3/images/",
"theme": "none",
"dataProvider": [{
"y": 10,
"x": 14,
"value": 59,
"color": "#cc0000"
}, {
"y": 5,
"x": 3,
"value": 50,
"color": "#00cc00"
}, {
"y": -10,
"x": 8,
"value": 29,
"color": "#5555cc"
}],
"valueAxes": [{
"axisAlpha": 0,
"position": "bottom"
}, {
"minMaxMultiplier": 1.2,
"axisAlpha": 0,
"position": "left"
}],
"startDuration": 1.5,
"graphs": [{
"balloonText": "value:<b>[[value]]</b>",
"bullet": "circle",
"bulletBorderAlpha": 0.2,
"bulletAlpha": 0.8,
"labelText": "[[value]]*3",
"labelPosition": "middle",
"lineAlpha": 0,
"fillAlphas": 0,
"valueField": "value",
"xField": "x",
"yField": "y",
"maxBulletSize": 100,
"minBulletSize": 30,
"colorField": "color"
}],
"marginLeft": 46,
"marginBottom": 35
});