Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
577564cf
Commit
577564cf
authored
Oct 24, 2017
by
nikogu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed charts padding
parent
20bf3264
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
src/components/Charts/MiniArea/index.js
src/components/Charts/MiniArea/index.js
+6
-12
src/components/Charts/MiniBar/index.js
src/components/Charts/MiniBar/index.js
+1
-1
src/components/Charts/index.less
src/components/Charts/index.less
+1
-0
No files found.
src/components/Charts/MiniArea/index.js
View file @
577564cf
...
...
@@ -41,7 +41,7 @@ class MiniArea extends PureComponent {
height
:
height
+
54
,
animate
,
plotCfg
:
{
margin
:
[
36
,
0
,
30
,
0
],
margin
:
[
36
,
5
,
30
,
5
],
},
legend
:
null
,
});
...
...
@@ -74,28 +74,22 @@ class MiniArea extends PureComponent {
},
};
const
view
=
chart
.
createView
();
view
.
tooltip
({
chart
.
tooltip
({
title
:
null
,
crosshairs
:
false
,
map
:
{
name
:
'
y
'
,
title
:
null
,
name
:
'
x
'
,
value
:
'
y
'
,
},
});
const
view
=
chart
.
createView
();
view
.
source
(
data
,
dataConfig
);
view
.
area
().
position
(
'
x*y
'
).
color
(
color
).
shape
(
'
smooth
'
)
.
style
({
fillOpacity
:
1
});
chart
.
on
(
'
tooltipchange
'
,
(
ev
)
=>
{
const
item
=
ev
.
items
[
0
];
const
{
title
}
=
item
;
item
.
title
=
''
;
item
.
name
=
''
;
item
.
value
=
`
${
title
}
:
${
item
.
value
}
`
;
});
if
(
line
)
{
const
view2
=
chart
.
createView
();
view2
.
source
(
data
,
dataConfig
);
...
...
src/components/Charts/MiniBar/index.js
View file @
577564cf
...
...
@@ -42,7 +42,7 @@ class MiniBar extends PureComponent {
forceFit
:
fit
,
height
:
height
+
54
,
plotCfg
:
{
margin
:
[
36
,
0
,
30
,
0
],
margin
:
[
36
,
5
,
30
,
5
],
},
legend
:
null
,
});
...
...
src/components/Charts/index.less
View file @
577564cf
...
...
@@ -6,6 +6,7 @@
bottom: -34px;
width: 100%;
& > div {
margin: 0 -5px;
overflow: hidden;
}
}
...
...
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