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
013247c6
Commit
013247c6
authored
Jan 05, 2018
by
niko
Committed by
ddcat1115
Jan 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed charts colors & import default g2 config in charts (#567)
parent
135735b7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
src/components/Charts/TagCloud/index.js
src/components/Charts/TagCloud/index.js
+10
-1
src/components/Charts/g2.js
src/components/Charts/g2.js
+0
-0
src/components/Charts/index.js
src/components/Charts/index.js
+1
-0
src/index.js
src/index.js
+0
-1
No files found.
src/components/Charts/TagCloud/index.js
View file @
013247c6
...
...
@@ -131,7 +131,16 @@ class TagCloud extends Component {
ref
=
{
this
.
saveRootRef
}
>
{
dv
&&
(
<
Chart
width
=
{
w
}
height
=
{
h
}
data
=
{
dv
}
padding
=
{
0
}
>
<
Chart
width
=
{
w
}
height
=
{
h
}
data
=
{
dv
}
padding
=
{
0
}
scale
=
{{
x
:
{
nice
:
false
},
y
:
{
nice
:
false
},
}}
>
<
Coord
reflect
=
"
y
"
/>
<
Geom
type
=
"
point
"
position
=
"
x*y
"
color
=
"
text
"
shape
=
"
cloud
"
/>
<
/Chart
>
...
...
src/g2.js
→
src/
components/Charts/
g2.js
View file @
013247c6
File moved
src/components/Charts/index.js
View file @
013247c6
import
numeral
from
'
numeral
'
;
import
'
./g2
'
;
import
ChartCard
from
'
./ChartCard
'
;
import
Bar
from
'
./Bar
'
;
import
Pie
from
'
./Pie
'
;
...
...
src/index.js
View file @
013247c6
...
...
@@ -2,7 +2,6 @@ import '@babel/polyfill';
import
dva
from
'
dva
'
;
import
'
moment/locale/zh-cn
'
;
import
FastClick
from
'
fastclick
'
;
import
'
./g2
'
;
import
'
./rollbar
'
;
import
onError
from
'
./error
'
;
// import browserHistory from 'history/createBrowserHistory';
...
...
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