forked from github/dataease
Merge pull request #12829 from dataease/pr@dev-v2@refactor_chart
Pr@dev v2@refactor chart
This commit is contained in:
commit
73c330a0be
@ -1542,7 +1542,8 @@ export default {
|
|||||||
show_label: '显示标签',
|
show_label: '显示标签',
|
||||||
security_code: '安全密钥',
|
security_code: '安全密钥',
|
||||||
auto_fit: '自适应缩放',
|
auto_fit: '自适应缩放',
|
||||||
zoom_level: '缩放等级'
|
zoom_level: '缩放等级',
|
||||||
|
central_point: '中心点'
|
||||||
},
|
},
|
||||||
dataset: {
|
dataset: {
|
||||||
scope_edit: '仅编辑时生效',
|
scope_edit: '仅编辑时生效',
|
||||||
|
@ -663,7 +663,7 @@ onMounted(() => {
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
class="form-item"
|
class="form-item"
|
||||||
:class="'form-item-' + themes"
|
:class="'form-item-' + themes"
|
||||||
:label="t('chart.longitude')"
|
:label="t('chart.central_point') + t('chart.longitude')"
|
||||||
>
|
>
|
||||||
<el-input-number
|
<el-input-number
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
@ -679,7 +679,7 @@ onMounted(() => {
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
class="form-item"
|
class="form-item"
|
||||||
:class="'form-item-' + themes"
|
:class="'form-item-' + themes"
|
||||||
:label="t('chart.latitude')"
|
:label="t('chart.central_point') + t('chart.latitude')"
|
||||||
>
|
>
|
||||||
<el-input-number
|
<el-input-number
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
|
@ -1590,8 +1590,8 @@ export const DEFAULT_BASIC_STYLE: ChartBasicStyle = {
|
|||||||
mapStyleUrl: '',
|
mapStyleUrl: '',
|
||||||
autoFit: true,
|
autoFit: true,
|
||||||
mapCenter: {
|
mapCenter: {
|
||||||
longitude: 116,
|
longitude: 117.232,
|
||||||
latitude: 39
|
latitude: 39.354
|
||||||
},
|
},
|
||||||
zoomLevel: 7
|
zoomLevel: 7
|
||||||
}
|
}
|
||||||
|
@ -488,7 +488,12 @@ export class GroupBar extends StackBar {
|
|||||||
this.baseOptions = {
|
this.baseOptions = {
|
||||||
...this.baseOptions,
|
...this.baseOptions,
|
||||||
isGroup: true,
|
isGroup: true,
|
||||||
isStack: false
|
isStack: false,
|
||||||
|
meta: {
|
||||||
|
category: {
|
||||||
|
type: 'cat'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.axis = [...BAR_AXIS_TYPE, 'xAxisExt']
|
this.axis = [...BAR_AXIS_TYPE, 'xAxisExt']
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user