Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ant-design-pro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thiago Borges
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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
index.js
src/components/Charts/TagCloud/index.js
+10
-1
g2.js
src/components/Charts/g2.js
+0
-0
index.js
src/components/Charts/index.js
+1
-0
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