We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
seriesIndex
1.3.0
none
const spec = { type: 'common', padding: { top: 10 }, layout: { type: 'grid', col: 1, row: 6, elements: [ { modelId: 'legend', col: 0, row: 4 }, { modelId: 'legend0', col: 0, row: 5 }, { modelId: 'DAU', col: 0, row: 0 }, { modelId: '新增', col: 0, row: 1 }, { modelId: 'MAU', col: 0, row: 2 }, { modelId: 'DAU/MAU', col: 0, row: 3 } ] }, region: [ { id: 'DAU' }, { id: '新增' }, { id: 'MAU' }, { id: 'DAU/MAU' } ], legends: [ { visible: true, orient: 'bottom', id: 'legend', seriesId: ['DAUseries0', '新增series0', 'MAUseries0'], item: { visible: true, background: { style: { fill: 'transparent' } } } }, { visible: true, orient: 'bottom', id: 'legend0', seriesId: ['DAU/MAUseries0'], // only related to the last pie chart item: { visible: true, background: { style: { fill: 'transparent' } } } } ], series: [ { id: 'DAUseries0', regionId: 'DAU', type: 'pie', valueField: 'value', categoryField: 'type', data: { id: 'DAU', values: [ { type: '首页', value: 120 }, { type: '大屏', value: 100 }, { type: '看板', value: 200 } ] }, seriesField: 'type', label: { style: { visible: false } } }, { id: '新增series0', regionId: '新增', type: 'pie', valueField: 'value', categoryField: 'type', data: { id: '新增', values: [ { type: '首页', value: 80 }, { type: '大屏', value: 200 }, { type: '看板', value: 400 } ] }, seriesField: 'type', label: { style: { visible: false } } }, { id: 'MAUseries0', regionId: 'MAU', type: 'pie', valueField: 'value', categoryField: 'type', data: { id: 'MAU', values: [ { type: '首页', value: 123 }, { type: '大屏', value: 245 }, { type: '看板', value: 367 } ] }, seriesField: 'type', label: { style: { visible: false } } }, { id: 'DAU/MAUseries0', regionId: 'DAU/MAU', type: 'pie', valueField: 'value', categoryField: 'type', data: { id: 'DAU/MAU', values: [ { type: '首页1', value: 10 }, { type: '大屏1', value: 18 }, { type: '看板1', value: 8 } ] }, seriesField: 'type', label: { style: { visible: false } } } ] }; const vchart = new VChart(spec, { dom: CONTAINER_ID }); vchart.renderAsync(); // Just for the convenience of console debugging, DO NOT COPY! window['vchart'] = vchart;
- OS: - Browser: - Framework:
No response
The text was updated successfully, but these errors were encountered:
fix: seriesId in discreteLegend not work, close #732
fb2b8ab
0dac41f
xiaoluoHe
Successfully merging a pull request may close this issue.
Version
1.3.0
Link to Minimal Reproduction
none
Steps to Reproduce
Current Behavior
Expected Behavior
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: