虽然我已经包含了响应式 js 并启用了响应属性为 true,但雷达图没有响应。即使在他们的网站上,它也无法响应移动视图。
我应该怎么办?
<div id="chartdiv" style="width: 100%; height: 100%;"></div>
这是我的脚本:
<script>
var chart = AmCharts.makeChart("chartdiv1", {
"type": "radar",
"dataProvider": [{
"country": "Czech Republic",
"litres": 156.9
}, {
"country": "Ireland",
"litres": 131.1
}],
"categoryField": "country",
"startDuration": 2,
"valueAxes": [{
"axisAlpha": 0.15,
"minimum": 0,
"dashLength": 3,
"axisTitleOffset": 20,
"gridCount": 5
}],
"graphs": [{
"valueField": "litres",
"title": "Litres",
"bullet": "round",
"balloonText": "[[value]] litres of beer per year"
}],
"legend": {},
"responsive": {
"enabled": true
}
});
</script>