Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c43bedf1
authored
Jul 25, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
折线图,字颜色
1 parent
4381e42d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
src/components/LineChart.vue
src/components/lineOptions.js
src/components/LineChart.vue
View file @
c43bedf
...
...
@@ -162,6 +162,7 @@ export default {
var
seriesDate
=
this
.
dataList
.
map
(
item
=>
+
item
.
num
)
this
.
lineOptions
.
series
[
0
].
data
=
seriesDate
this
.
lineOptions
.
yAxis
.
scale
=
true
this
.
lineOptions
.
tooltip
.
textStyle
.
fontSize
=
this
.
setChartFontSize
(
10
)
// this.lineOptions.yAxis.min = Math.min(...seriesDate)
// this.lineOptions.yAxis.max = Math.max(...seriesDate)
this
[
this
.
domId
].
setOption
(
this
.
lineOptions
)
...
...
src/components/lineOptions.js
View file @
c43bedf
...
...
@@ -6,7 +6,7 @@ function getLineOptions(obj) {
borderWidth
:
0
,
backgroundColor
:
'rgba(68,68,68,0.80)'
,
textStyle
:
{
color
:
'
#FFFFFF
'
,
color
:
'
rgba(255,255,255,0.6)
'
,
fontSize
:
'1.5px'
},
formatter
:
tooltipFormatter
||
''
,
...
...
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