解决方法
我建议你在amChart目录下的Lang文件夹中创建名为fa.js的JavaScript文件,代码如下.
AmCharts.translations.fa = { "monthNames": ["دی","بهمن","اسفند","فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذز"],"shortMonthNames": ["دی","dayNames": ["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],"shortDayNames": ["یکشنبه","zoomOutText": "نمایش همه"}
现在你需要做更多的事情:
将fa.js导入您的项目
<script type="text/javascript" src="/amcharts/lang/fa.js"></script>
然后在amchart对象中定义它
var chart = AmCharts.makeChart("chartdiv",{ "type": "serial","theme": "dark","marginRight": 40,"marginLeft": 40,"language":"fa" . . .