我使用Google Charts API,而非地图。 我有这个功能。我想制作标记动画,所以我想将默认圆改为gif图像。我该怎么办?可能吗?
google.charts.load('current', {
callback: function () {
var chart = new window.google.visualization.GeoChart(document.getElementById('chart_div'));
var options = {
displayMode: 'markers',
sizeAxis: {
minSize: 3
},
backgroundColor: {
fill: '#303030'
},
colorAxis: {
colors: ['#FBFE72', '#FEB86B', '#EE683C']
},
legend: 'none',
region: 'US',
datalessRegionColor: '#289499'
};
var data;
data = new window.google.visualization.DataTable();
data.addColumn('number', 'Lat');
data.addColumn('number', 'Long');
data.addColumn('string', 'Name');
data.addColumn('number', 'Count');
data.addRows(1);
data.setValue(0, 0, -120);
data.setValue(0, 1, 2);
data.setValue(0, 2, 'Test');
data.setValue(0, 3, 1);
chart.draw(data, options);
},
packages:['geochart']
});
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src="https://www.google.com/jsapi"></script>
<div id="chart_div"></div>