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
1.10.2
null
const spec = { type: 'line', data: [ { id: 'line', values: [ { x: 'Round 1', y: 21, c: 'Role A' }, { x: 'Round 1', y: 38, c: 'Role B' }, { x: 'Round 2', y: 28, c: 'Role A' }, { x: 'Round 2', y: 45, c: 'Role B' }, { x: 'Round 3', y: 22, c: 'Role A' }, { x: 'Round 3', y: 56, c: 'Role B' }, { x: 'Round 4', y: 34, c: 'Role A' }, { x: 'Round 4', y: 48, c: 'Role B' }, { x: 'Round 5', y: 34, c: 'Role A' }, { x: 'Round 5', y: 64, c: 'Role B' }, { x: 'Round 6', y: 44, c: 'Role A' }, { x: 'Round 6', y: 72, c: 'Role B' }, { x: 'Round 7', y: 38, c: 'Role A' }, { x: 'Round 7', y: 65, c: 'Role B' }, { x: 'Round 8', y: 24, c: 'Role A' }, { x: 'Round 8', y: 70, c: 'Role B' }, { x: 'Round 9', y: 28, c: 'Role A' }, { x: 'Round 9', y: 62, c: 'Role B' } ] } ], legends: { visible: true, orient: 'bottom' }, axes: [ { orient: 'left', max: 100 }, { orient: 'bottom' }, { orient: 'right', max: 100 } ], xField: 'x', yField: 'y', seriesField: 'c', point: { style: { size: 5 }, state: { dimension_hover: { size: 10 } } }, crosshair: { xField: { visible: true, line: { type: 'line', // Defaults is `rect` style: { lineWidth: 1, opacity: 1, stroke: '#000', lineDash: [2, 2] } }, bindingAxesIndex: [1], defaultSelect: { axisIndex: 1, datum: 'Round 6' }, label: { visible: true, // label is off by default formatMethod: (text) => `${text}%` }, }, yField: { visible: true, bindingAxesIndex: [0, 2], defaultSelect: { axisIndex: 2, datum: 40 }, line: { style: { lineWidth: 1, opacity: 1, stroke: '#000', lineDash: [2, 2] } }, label: { visible: true, // label is off by default formatMethod: (text) => `${text}%` } } } }; const vchart = new VChart(spec, { dom: CONTAINER_ID }); vchart.renderSync(); // 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:
zamhown
No branches or pull requests
Version
1.10.2
Link to Minimal Reproduction
null
Steps to Reproduce
Current Behavior
Expected Behavior
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: