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
7c7fb5e3
Commit
7c7fb5e3
authored
Apr 20, 2018
by
Rupeshiya
Committed by
偏右
Apr 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update index.js (#1335)
corrected spelling in src/components/chart/pie/index.js
parent
2d47f4b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/components/Charts/Pie/index.js
src/components/Charts/Pie/index.js
+3
-3
No files found.
src/components/Charts/Pie/index.js
View file @
7c7fb5e3
...
@@ -19,7 +19,7 @@ export default class Pie extends Component {
...
@@ -19,7 +19,7 @@ export default class Pie extends Component {
};
};
componentDidMount
()
{
componentDidMount
()
{
this
.
getLe
n
gendData
();
this
.
getLegendData
();
this
.
resize
();
this
.
resize
();
window
.
addEventListener
(
'
resize
'
,
this
.
resize
);
window
.
addEventListener
(
'
resize
'
,
this
.
resize
);
}
}
...
@@ -33,7 +33,7 @@ export default class Pie extends Component {
...
@@ -33,7 +33,7 @@ export default class Pie extends Component {
legendData
:
[...
this
.
state
.
legendData
],
legendData
:
[...
this
.
state
.
legendData
],
},
},
()
=>
{
()
=>
{
this
.
getLe
n
gendData
();
this
.
getLegendData
();
}
}
);
);
}
}
...
@@ -49,7 +49,7 @@ export default class Pie extends Component {
...
@@ -49,7 +49,7 @@ export default class Pie extends Component {
};
};
// for custom lengend view
// for custom lengend view
getLe
n
gendData
=
()
=>
{
getLegendData
=
()
=>
{
if
(
!
this
.
chart
)
return
;
if
(
!
this
.
chart
)
return
;
const
geom
=
this
.
chart
.
getAllGeoms
()[
0
];
// 获取所有的图形
const
geom
=
this
.
chart
.
getAllGeoms
()[
0
];
// 获取所有的图形
const
items
=
geom
.
get
(
'
dataArray
'
)
||
[];
// 获取图形对应的
const
items
=
geom
.
get
(
'
dataArray
'
)
||
[];
// 获取图形对应的
...
...
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