-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(legend): 图例支持多行分页 * docs(legend): 图例文档 & demo 完善 * chore: update changelog
- Loading branch information
Showing
5 changed files
with
54 additions
and
3 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
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,27 @@ | ||
import { Column } from '@antv/g2plot'; | ||
|
||
fetch('https://gw.alipayobjects.com/os/antfincdn/P14mCvkybz/large-datra.json') | ||
.then((data) => data.json()) | ||
.then((data) => { | ||
const plot = new Column('container', { | ||
data, | ||
xField: 'product_box', | ||
yField: 'value', | ||
seriesField: 'province', | ||
isGroup: 'true', | ||
legend: { | ||
flipPage: true, | ||
// 两行分页 | ||
maxRow: 2, | ||
pageNavigator: { | ||
marker: { | ||
style: { | ||
fill: 'rgba(0,0,0,0.65)', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
plot.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