Rev 23 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>amCharts examples</title><link rel="stylesheet" href="style.css" type="text/css"><script src="../amcharts/amcharts.js" type="text/javascript"></script><script src="../amcharts/pie.js" type="text/javascript"></script><script>var chart;var legend;var chartData = [{"country": "Lithuania","value": 260},{"country": "Ireland","value": 201},{"country": "Germany","value": 65},{"country": "Australia","value": 39},{"country": "UK","value": 19},{"country": "Latvia","value": 10}];AmCharts.ready(function () {// PIE CHARTchart = new AmCharts.AmPieChart();chart.dataProvider = chartData;chart.titleField = "country";chart.valueField = "value";chart.outlineColor = "#FFFFFF";chart.outlineAlpha = 0.8;chart.outlineThickness = 2;chart.balloonText = "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>";// this makes the chart 3Dchart.depth3D = 15;chart.angle = 30;// WRITEchart.write("chartdiv");});</script></head><body><div id="chartdiv" style="width: 100%; height: 400px;"></div></body></html>