小程序
小游戏
企业微信
微信支付
扫描小程序码分享
由于业务需求,我需要绘制中国地图,再在上面加一些散点,我改造官方demo 的散点图把地图的坐标系换成中国地图,但是散点出不来,求大神指点
5 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
请问,地图上添加上散点报错怎么回事?
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
https://www.makeapie.cn/echarts_category/series-bar_18.html 社区有现成例子可以参考
是想要类似下图这个效果吗?
在series里写两个type,一个地图map一个散点图graph
分享个代码呗??
{
name: '散点',
type: 'scatter',
coordinateSystem: 'geo',
data: opt.star,
symbolSize: function (value) {
console.log(value)
if (value[3]) {
return 12
} else {
return 0.1 * value[2]
}
},
symbol:
'path://M89.396,34.401L47.154,0.728c-1.217-0.971-2.868-0.971-3.998,0L0.74,34.401c-1.391,1.068-0.695,3.494,1.043,3.494h8.518v60.164c0,1.068,0.782,1.941,1.738,1.941h66.058c0.956,0,1.739-0.873,1.739-1.941V37.895h8.518C90.005,37.895,90.7,35.469,89.396,34.401L89.396,34.401z M58.975,84.474H31.161v-7.763h27.813L58.975,84.474L58.975,84.474z M58.975,68.947H31.161v-7.763h27.813L58.975,68.947L58.975,68.947z M58.975,53.421H31.161v-7.763h27.813L58.975,53.421L58.975,53.421z',
symbolRotate: 0,
label: {
formatter: '{b}',
position: 'right',
show: false,
请问,如何实现的引入chain.js的我的总是报错
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
请问,地图上添加上散点报错怎么回事?
https://www.makeapie.cn/echarts_category/series-bar_18.html 社区有现成例子可以参考
是想要类似下图这个效果吗?
在series里写两个type,一个地图map一个散点图graph
分享个代码呗??
{
name: '散点',
type: 'scatter',
coordinateSystem: 'geo',
data: opt.star,
symbolSize: function (value) {
console.log(value)
if (value[3]) {
return 12
} else {
return 0.1 * value[2]
}
},
symbol:
'path://M89.396,34.401L47.154,0.728c-1.217-0.971-2.868-0.971-3.998,0L0.74,34.401c-1.391,1.068-0.695,3.494,1.043,3.494h8.518v60.164c0,1.068,0.782,1.941,1.738,1.941h66.058c0.956,0,1.739-0.873,1.739-1.941V37.895h8.518C90.005,37.895,90.7,35.469,89.396,34.401L89.396,34.401z M58.975,84.474H31.161v-7.763h27.813L58.975,84.474L58.975,84.474z M58.975,68.947H31.161v-7.763h27.813L58.975,68.947L58.975,68.947z M58.975,53.421H31.161v-7.763h27.813L58.975,53.421L58.975,53.421z',
symbolRotate: 0,
label: {
formatter: '{b}',
position: 'right',
show: false,
请问,如何实现的引入chain.js的我的总是报错