-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
自 定 义图例 的 itemMarker 为圆角
#6075
Comments
|
@Runtus |
Hi |
@Runtus 如果 |
如果 import { Chart } from '@antv/g2';
const data = [
{ name: 'London', |
ok, @pearmini |
@Runtus 嗯嗯, |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
import { Chart } from '@antv/g2';
const data = [月 份: 'Jan.', 月 均 降雨 量 : 18.9 },月 份: 'Feb.', 月 均 降雨 量 : 28.8 },月 份: 'Mar.', 月 均 降雨 量 : 39.3 },月 份: 'Apr.', 月 均 降雨 量 : 81.4 },月 份: 'May', 月 均 降雨 量 : 47 },月 份: 'Jun.', 月 均 降雨 量 : 20.3 },月 份: 'Jul.', 月 均 降雨 量 : 24 },月 份: 'Aug.', 月 均 降雨 量 : 35.6 },月 份: 'Jan.', 月 均 降雨 量 : 12.4 },月 份: 'Feb.', 月 均 降雨 量 : 23.2 },月 份: 'Mar.', 月 均 降雨 量 : 34.5 },月 份: 'Apr.', 月 均 降雨 量 : 99.7 },月 份: 'May', 月 均 降雨 量 : 52.6 },月 份: 'Jun.', 月 均 降雨 量 : 35.5 },月 份: 'Jul.', 月 均 降雨 量 : 37.4 },月 份: 'Aug.', 月 均 降雨 量 : 42.4 },
{ name: 'London',
{ name: 'London',
{ name: 'London',
{ name: 'London',
{ name: 'London',
{ name: 'London',
{ name: 'London',
{ name: 'London',
{ name: 'Berlin',
{ name: 'Berlin',
{ name: 'Berlin',
{ name: 'Berlin',
{ name: 'Berlin',
{ name: 'Berlin',
{ name: 'Berlin',
{ name: 'Berlin',
];
const chart = new Chart({
container: 'container',
autoFit: true,
});
chart月 份')月 均 降雨 量 ')
![image](https://private-user-images.githubusercontent.com/14836228/300781110-d2ea1141-5fe0-4fba-968b-009652b737d2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3MTEwNzksIm5iZiI6MTcyNTcxMDc3OSwicGF0aCI6Ii8xNDgzNjIyOC8zMDA3ODExMTAtZDJlYTExNDEtNWZlMC00ZmJhLTk2OGItMDA5NjUyYjczN2QyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDEyMDYxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ1NDM4NmI5ZmE5MmEyNmYzYzcyZmQ5YTkzMzIwNzI1Njg2ZTg3Mzk2Zjg0MGU2MDA5YzQ4ZmVhYTZlNjI3NWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mslmU7fCptWKlVSqQxQh1xl4YqFOTO8xs2Ij3whWjwE)
想 设置图例的 itemMarker 正方形 为圆角 ,出 了 图例全部 自 定 义,可 以只定 义 itemMarker 为自定 义的 div 吗
.interval()
.data(data)
.encode('x', '
.encode('y', '
.encode('color', 'name')
.transform({ type: 'dodgeX' })
.interaction('elementHighlight', { background: true })
.legend('color', { position: 'top', layout: { justifyContent: 'center' }})
chart.render();
No response
No response
预期行 为
No response
No response
补充说明(可 选)
No response
The text was updated successfully, but these errors were encountered: