Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
house-type
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjiankun
house-type
Commits
223faed4
Commit
223faed4
authored
Sep 03, 2020
by
xingyuji
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'master'
fix:楼盘详情-面宽柱状图, x轴刻度名称换行显示 See merge request !56
parents
caf9e637
63a56804
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
index.vue
src/views/propertiesDetail/index.vue
+19
-11
No files found.
src/views/propertiesDetail/index.vue
View file @
223faed4
...
...
@@ -221,8 +221,9 @@
<ve-histogram
v-if=
"houseWidthCharts.rows.length > 0"
:legend=
"{ bottom: 0 }"
:extend=
"houseWidthExtend"
:settings=
"houseWidthChartsSettings"
:data=
"houseWidthCharts"
:extend=
"extend"
:data=
"houseWidthCharts"
:colors=
"colorArr"
></ve-histogram>
<div
v-else
style=
"height: 400px;display: flex;align-items: center"
>
<div
style=
"width: 50%;text-align: center;margin: auto"
>
...
...
@@ -418,16 +419,6 @@
barMaxWidth
:
30
,
barMinWidth
:
12
,
fontSize
:
9
,
// label: {
// show: false,
// position: 'top',
// formatter:(params) => { // 柱状图上方总面宽信息显示
// if(params.data === 0) {
// return ''
// }
// return this.unitTotalAreaMap[params.name].toFixed(1)
// }
// }
}
},
rateExtend
:
{
...
...
@@ -469,6 +460,23 @@
}
}
},
houseWidthExtend
:
{
xAxis
:
{
axisLabel
:
{
interval
:
0
,
//换行显示
formatter
:
function
(
value
)
{
const
format
=
value
.
split
(
' '
).
join
(
'
\
n'
)
return
"{labelText|"
+
format
+
"}"
;
},
rich
:
{
labelText
:
{
lineHeight
:
18
}
}
}
}
},
// 面宽图表、表格map匹配
// houseWidthMap : {
// 'nxmk': '南向面宽',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment