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

[Bug]: Multi-axis properties missing from types #1413

Closed
cloudlena opened this issue Jul 20, 2022 · 0 comments · Fixed by #1432
Closed

[Bug]: Multi-axis properties missing from types #1413

cloudlena opened this issue Jul 20, 2022 · 0 comments · Fixed by #1432
Labels
type: bug 🐛 Something isn't working

Comments

@cloudlena
Copy link

cloudlena commented Jul 20, 2022

Contact Details

No response

What happened?

The properties main and correspondingDatasets used for multi-axis setups (as described in https://github.com/carbon-design-system/carbon-charts/blob/80f53aafe3f87012caedeb77605559e8ee402bdf/packages/core/stories/tutorials/dual-axes.ts) are missing from the documentation at https://charts.carbondesignsystem.com/documentation/interfaces/_interfaces_axis_scales_.axisoptions.html and from the TypeScript definitions.

Version

@carbon/charts-svelte@1.3.2

Data & options used

        const options: ScatterChartOptions = {
		axes: {
			bottom: {
				mapsTo: 'time',
				scaleType: 'time' as ScaleTypes.TIME
			},
			left: {
				mapsTo: 'power',
				main: true
                                // TypeScript Error: Object literal may only specify known properties, and 'main' does not exist in type 'AxisOptions'.
			},
			right: {
				mapsTo: 'temperature',
				correspondingDatasets: ['Temperature']
                                // TypeScript error: Object literal may only specify known properties, and 'correspondingDatasets' does not exist in type 'AxisOptions'.
			}
		}
	};

Relevant log output

No response

Codesandbox example

No response

@cloudlena cloudlena added the type: bug 🐛 Something isn't working label Jul 20, 2022
metonym added a commit to metonym/carbon-charts that referenced this issue Aug 19, 2022
metonym added a commit to metonym/carbon-charts that referenced this issue Sep 14, 2022
theiliad pushed a commit that referenced this issue Sep 19, 2022
* fix(core): add missing properties to `ComboChartAxisOptions`

Fixes #1413

* chore: apply correct formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant