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

fix(core): add missing properties to AxisOptions interface #1432

Merged
merged 2 commits into from Sep 19, 2022

Conversation

metonym
Copy link
Contributor

@metonym metonym commented Aug 19, 2022

Fixes #1413

The AxisOptions interface is missing main and correspondingDatasets properties to support dual-axes charts.

Updates

  • add missing properties to AxisOptions interface

Demo screenshot or recording

Review checklist (for reviewers only)

  • Demos all features
  • Documented/annotated
  • Matches UI/UX specs
  • Meets the code style guide
  • Accessible
  • Mobile first (responsive)
  • RTL support (bidirectional text)
  • Performant (limited bloat)

@metonym metonym requested review from theiliad, Akshat55 and a team as code owners August 19, 2022 20:32
@metonym metonym requested review from zvonimirfras and removed request for a team August 19, 2022 20:32
Comment on lines +127 to +138
/**
* should be set to `true` for the
* left axis to be the primary axis
*/
main?: boolean;
/**
* used to map data on the secondary axis
*/
correspondingDatasets?: Array<string>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @metonym, we should probably find a way to have this only affect combo charts, since they mostly wouldn't apply to others

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8b492e0

  • created a ComboChartAxisOptions interface
  • updated ComboChartOption.axes to use ComboChartAxisOptions

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theiliad, I don't get it. Why shouldn't I use these properties in ScatterChartOptions as described in my example in #1413? For me, this issue doesn't seem to be fixes as I was trying to use them in a ScatterChartOptions.

Copy link
Member

@theiliad theiliad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing! thanks Eric for the quick update 🙂

@theiliad theiliad merged commit f88f310 into carbon-design-system:master Sep 19, 2022
@theiliad theiliad added this to Closed in Q3- 2022 Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Q3- 2022
Closed
Development

Successfully merging this pull request may close these issues.

[Bug]: Multi-axis properties missing from types
3 participants