Merge pull request #373 from dataease/pr@dev@feat_地图工具栏

feat: 增加地图工具栏
This commit is contained in:
fit2cloud-chenyw 2021-07-28 13:43:36 +08:00 committed by GitHub
commit a5d5b658c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
import { hexColorToRGBA } from '@/views/chart/chart/util'
// import { hexColorToRGBA } from '@/views/chart/chart/util'
import { componentStyle } from '../common/common'
export function baseMapOption(chart_option, chart) {
@ -44,10 +44,10 @@ export function baseMapOption(chart_option, chart) {
value: valueArr[i]
}
// color
y.itemStyle = {
color: hexColorToRGBA(customAttr.color.colors[i % 9], customAttr.color.alpha),
borderRadius: 0
}
// y.itemStyle = {
// color: hexColorToRGBA(customAttr.color.colors[i % 9], customAttr.color.alpha),
// borderRadius: 0
// }
chart_option.series[0].data.push(y)
}
}