Skip to content
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

增加旭日图 demo #5855

Closed
pearmini opened this issue Aug 2, 2023 · 0 comments · Fixed by #5854
Closed

增加旭日图 demo #5855

pearmini opened this issue Aug 2, 2023 · 0 comments · Fixed by #5854
Assignees

Comments

@pearmini
Copy link
Member

pearmini commented Aug 2, 2023

Discussed in #5323

chart.options({
  type: 'interval',
  theme: 'classic',
  data: [
    { name: '狮子', type: '火象星座', value: 11, percent: 0.11, series: 'a' },
    { name: '白羊', type: '火象星座', value: 10, percent: 0.1, series: 'a' },
    { name: '射手', type: '火象星座', value: 10, percent: 0.1, series: 'a' },
    { name: '水瓶', type: '风向星座', value: 14, percent: 0.14, series: 'a' },
    { name: '双子', type: '风向星座', value: 7, percent: 0.07, series: 'a' },
    { name: '天秤', type: '风向星座', value: 7, percent: 0.07, series: 'a' },
    { name: '摩羯', type: '土象星座', value: 14, percent: 0.14, series: 'a' },
    { name: '金牛', type: '土象星座', value: 3, percent: 0.03, series: 'a' },
    { name: '处女', type: '土象星座', value: 3, percent: 0.03, series: 'a' },
    { name: '天蝎', type: '水象星座', value: 11, percent: 0.11, series: 'a' },
    { name: '巨蟹', type: '水象星座', value: 5, percent: 0.05, series: 'a' },
    { name: '双鱼', type: '水象星座', value: 5, percent: 0.05, series: 'a' },
    { type: '火象星座', value: 31, percent: 0.31, series: 'b' },
    { type: '风向星座', value: 28, percent: 0.28, series: 'b' },
    { type: '土象星座', value: 20, percent: 0.2, series: 'b' },
    { type: '水象星座', value: 21, percent: 0.21, series: 'b' },
  ],
  encode: {
    y: 'value',
    x: 'series',
    color: 'type',
  },
  transform: [{ type: 'stackY' }],
  scale: { x: { padding: 0 } },
  axis: false,
  legend: false,
  coordinate: { type: 'theta' },
  style: { stroke: '#fff' },
});
@pearmini pearmini transferred this issue from antvis/G2 Nov 28, 2023
@pearmini pearmini transferred this issue from antvis/g2-extensions Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants