-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs(tiny-line): add tiny demos * fix(tiny-line): remove tiny lineStyle callback params * docs(tiny-line): add tiny area demos * docs(tiny-column): add tiny column demos * docs(ring-progress): add tiny ring progress demos * docs(progress): add tiny progress demos * fix(progress): make ci passed
- Loading branch information
Showing
67 changed files
with
954 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"title": { | ||
"zh": "中文分类", | ||
"en": "Category" | ||
}, | ||
"demos": [ | ||
{ | ||
"filename": "progress.ts", | ||
"title": { | ||
"zh": "迷你进度条图", | ||
"en": "basic Progress chart" | ||
}, | ||
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*nBhpT5HbGOAAAAAAAAAAAABkARQnAQ" | ||
}, | ||
{ | ||
"filename": "progress-style.ts", | ||
"title": { | ||
"zh": "迷你进度条图样式", | ||
"en": "Tiny Progress style" | ||
}, | ||
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*fQihRrLMIWsAAAAAAAAAAABkARQnAQ" | ||
}, | ||
{ | ||
"filename": "progress-style-callback.ts", | ||
"title": { | ||
"zh": "迷你进度条图回调样式", | ||
"en": "Tiny Progress style callback" | ||
}, | ||
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*lSOiS4lGCaIAAAAAAAAAAABkARQnAQ" | ||
}, | ||
{ | ||
"filename": "progress-width.ts", | ||
"title": { | ||
"zh": "迷你进度条图大小", | ||
"en": "Tiny Progress width" | ||
}, | ||
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*4NmuSaVRZ44AAAAAAAAAAABkARQnAQ" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Progress } from '@antv/g2plot'; | ||
|
||
const progress = new Progress('container', { | ||
height: 100, | ||
width: 300, | ||
autoFit: false, | ||
percent: 0.7, | ||
progressStyle: (percent: number, type: string) => { | ||
if (type === 'current') { | ||
return { fill: 'green' }; | ||
} | ||
return { fill: '#999', lineDash: [1, 1], stroke: '#333' }; | ||
}, | ||
}); | ||
|
||
progress.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Progress } from '@antv/g2plot'; | ||
|
||
const progress = new Progress('container', { | ||
height: 100, | ||
width: 300, | ||
autoFit: false, | ||
percent: 0.7, | ||
progressStyle: { | ||
stroke: 'grey', | ||
lineDash: [4, 4], | ||
lineWidth: 1, | ||
}, | ||
}); | ||
|
||
progress.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Progress } from '@antv/g2plot'; | ||
|
||
const progress = new Progress('container', { | ||
height: 100, | ||
width: 300, | ||
autoFit: false, | ||
percent: 0.7, | ||
barWidthRatio: 0.1, | ||
}); | ||
|
||
progress.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Progress } from '@antv/g2plot'; | ||
|
||
const progress = new Progress('container', { | ||
height: 100, | ||
width: 300, | ||
autoFit: false, | ||
percent: 0.7, | ||
}); | ||
|
||
progress.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: 设计规范 | ||
--- | ||
|
||
设计规范 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: 设计规范 | ||
--- | ||
|
||
设计规范 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: 进度条图 | ||
order: 0 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: 进度条图 | ||
order: 0 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"title": { | ||
"zh": "中文分类", | ||
"en": "Category" | ||
}, | ||
"demos": [ | ||
{ | ||
"filename": "ring-progress.ts", | ||
"title": { | ||
"zh": "迷你进度环图", | ||
"en": "basic Ring chart" | ||
}, | ||
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*nBhpT5HbGOAAAAAAAAAAAABkARQnAQ" | ||
}, | ||
{ | ||
"filename": "ring-progress-style.ts", | ||
"title": { | ||
"zh": "迷你进度环图样式", | ||
"en": "Tiny Ring style" | ||
}, | ||
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*fQihRrLMIWsAAAAAAAAAAABkARQnAQ" | ||
}, | ||
{ | ||
"filename": "ring-progress-style-callback.ts", | ||
"title": { | ||
"zh": "迷你进度环图回调样式", | ||
"en": "Tiny Ring style callback" | ||
}, | ||
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*lSOiS4lGCaIAAAAAAAAAAABkARQnAQ" | ||
}, | ||
{ | ||
"filename": "ring-progress-radius.ts", | ||
"title": { | ||
"zh": "迷你进度环图半径大小", | ||
"en": "Tiny Ring radius" | ||
}, | ||
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*4NmuSaVRZ44AAAAAAAAAAABkARQnAQ" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { RingProgress } from '@antv/g2plot'; | ||
|
||
const ringProgress = new RingProgress('container', { | ||
height: 100, | ||
width: 100, | ||
autoFit: false, | ||
percent: 0.7, | ||
innerRadius: 0.95, | ||
radius: 0.95, | ||
}); | ||
|
||
ringProgress.render(); |
Oops, something went wrong.