Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
jml0128
/
xrk-bi
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 89cb2366
authored
Nov 25, 2021
by
jml0128
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:数据大于30条不适用图表形式
1 parent
8b01f449
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
README.md
package.json
src/packages/bi/src/project/20-configurable.vue
README.md
View file @
89cb236
...
...
@@ -3,6 +3,10 @@
*
@Date: 2021-09-08 15:26:40
-->
# 0.1.23
1.
图表数据大于 30 条后,禁止使用表格形式
# 0.1.22
1.
柱状图样式
...
...
package.json
View file @
89cb236
{
"name"
:
"xrk-bi"
,
"version"
:
"0.1.2
2
"
,
"version"
:
"0.1.2
3
"
,
"description"
:
"xrk-bi"
,
"author"
:
"xrk"
,
"main"
:
"dist/bundler.js"
,
...
...
src/packages/bi/src/project/20-configurable.vue
View file @
89cb236
...
...
@@ -406,8 +406,14 @@ export default {
return
ChartConfigFn
.
createConfig
(
dealAxis
(
item
.
topicCountInfos
),
{
...
item
,
blockTitle
:
item
.
topicTitle
,
chartType
:
item
.
chartType
||
randomType
([
1
,
2
,
5
,
6
,
9
,
10
,
11
]),
disableTypes
:
[
3
,
4
]
chartType
:
item
.
chartType
||
randomType
(
item
.
topicCountInfos
.
length
>
30
?
[
1
,
2
,
5
,
6
,
9
,
10
]
:
[
1
,
2
,
5
,
6
,
9
,
10
,
11
]
),
disableTypes
:
item
.
topicCountInfos
.
length
>
30
?
[
3
,
4
,
11
]
:
[
3
,
4
]
});
})
.
sort
((
a
,
b
)
=>
{
...
...
@@ -428,7 +434,12 @@ export default {
toggleAxisContenteditable
:
true
,
blockTitle
:
`
${
item
.
xFactor
}
与
${
item
.
yFactor
}
相关性分析`
,
chartType
:
item
.
chartType
||
randomType
([
1
,
2
,
3
,
4
,
5
,
6
,
9
,
10
,
11
])
item
.
chartType
||
randomType
(
item
.
topicCountInfos
.
length
>
30
?
[
1
,
2
,
3
,
4
,
5
,
6
,
9
,
10
]
:
[
1
,
2
,
3
,
4
,
5
,
6
,
9
,
10
,
11
]
)
});
})
.
sort
((
a
,
b
)
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment