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
fe1aeb2e
Commit
fe1aeb2e
authored
Apr 17, 2018
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix charts api, margin => padding
parent
c86c321c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/components/Charts/index.md
src/components/Charts/index.md
+4
-4
No files found.
src/components/Charts/index.md
View file @
fe1aeb2e
...
...
@@ -59,7 +59,7 @@ Ant Design Pro 提供的业务中常用的图表类型,都是基于 [G2](https
|----------|------------------------------------------|-------------|-------|
| title | 图表标题 | ReactNode
\|
string | - |
| color | 图表颜色 | string |
`rgba(24, 144, 255, 0.85)`
|
|
margin | 图表内部间距 | array |
\[
32, 0, 32, 40
\]
|
|
padding | 图表内部间距 |
[
array
](
https://github.com/alibaba/BizCharts/blob/master/doc/api/chart.md#7padding-object--number--array-
)
|
`'auto'`
|
| height | 图表高度 | number | - |
| data | 数据 | array
<
{
x
,
y
}
>
| - |
| autoLabel | 在宽度不足时,自动隐藏 x 轴的 label | boolean |
`true`
|
...
...
@@ -72,7 +72,7 @@ Ant Design Pro 提供的业务中常用的图表类型,都是基于 [G2](https
| color | 图表颜色 | string |
`rgba(24, 144, 255, 0.85)`
|
| height | 图表高度 | number | - |
| hasLegend | 是否显示 legend | boolean |
`false`
|
|
margin | 图表内部间距 | array |
\[
24, 0, 24, 0
\]
|
|
padding | 图表内部间距 |
[
array
](
https://github.com/alibaba/BizCharts/blob/master/doc/api/chart.md#7padding-object--number--array-
)
|
`'auto'`
|
| percent | 占比 | number | - |
| tooltip | 是否显示 tooltip | boolean | true |
| valueFormat | 显示值的格式化函数 | function | - |
...
...
@@ -87,7 +87,7 @@ Ant Design Pro 提供的业务中常用的图表类型,都是基于 [G2](https
| title | 图表标题 | ReactNode
\|
string | - |
| height | 图表高度 | number | - |
| hasLegend | 是否显示 legend | boolean |
`false`
|
|
margin | 图表内部间距 | array |
\[
24, 30, 16, 30
\]
|
|
padding | 图表内部间距 |
[
array
](
https://github.com/alibaba/BizCharts/blob/master/doc/api/chart.md#7padding-object--number--array-
)
|
`'auto'`
|
| data | 图标数据 | array
<
{
name
,
label
,
value
}
>
| - |
### Gauge
...
...
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