Merge pull request #12829 from dataease/pr@dev-v2@refactor_chart

Pr@dev v2@refactor chart
This commit is contained in:
wisonic-s 2024-10-22 16:19:04 +08:00 committed by GitHub
commit 73c330a0be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 6 deletions

View File

@ -1542,7 +1542,8 @@ export default {
show_label: '显示标签',
security_code: '安全密钥',
auto_fit: '自适应缩放',
zoom_level: '缩放等级'
zoom_level: '缩放等级',
central_point: '中心点'
},
dataset: {
scope_edit: '仅编辑时生效',

View File

@ -663,7 +663,7 @@ onMounted(() => {
<el-form-item
class="form-item"
:class="'form-item-' + themes"
:label="t('chart.longitude')"
:label="t('chart.central_point') + t('chart.longitude')"
>
<el-input-number
controls-position="right"
@ -679,7 +679,7 @@ onMounted(() => {
<el-form-item
class="form-item"
:class="'form-item-' + themes"
:label="t('chart.latitude')"
:label="t('chart.central_point') + t('chart.latitude')"
>
<el-input-number
controls-position="right"

View File

@ -1590,8 +1590,8 @@ export const DEFAULT_BASIC_STYLE: ChartBasicStyle = {
mapStyleUrl: '',
autoFit: true,
mapCenter: {
longitude: 116,
latitude: 39
longitude: 117.232,
latitude: 39.354
},
zoomLevel: 7
}

View File

@ -488,7 +488,12 @@ export class GroupBar extends StackBar {
this.baseOptions = {
...this.baseOptions,
isGroup: true,
isStack: false
isStack: false,
meta: {
category: {
type: 'cat'
}
}
}
this.axis = [...BAR_AXIS_TYPE, 'xAxisExt']
}