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

Restore datasets namespace (revert 6955) #8090

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented Nov 21, 2020

Closes #8073

Datasets options are now created from (bar for example):

  • defaults.controllers.bar.datasets,
  • options.datasets.bar,
  • data.datasets

The defaults.controllers.bar.datasets seems suspect. Its there because a controller needs to be able to provide chart level defaults and dataset level defaults. To align things , we could move the per controller dataset defaults to defaults.datasets[type] and keep defaults.controllers[type] as chart level controller defaults.

Thoughts?

@kurkle kurkle added this to the Version 3.0 milestone Nov 21, 2020
@etimberg etimberg requested a review from simonbrunel November 21, 2020 21:28
etimberg
etimberg previously approved these changes Nov 21, 2020
@kurkle kurkle force-pushed the datasets-controllers branch from 9c18a82 to 9852c35 Compare November 24, 2020 08:54
@kurkle kurkle marked this pull request as ready for review November 24, 2020 08:58
Copy link
Member

@etimberg etimberg left a comment

Choose a reason for hiding this comment

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

I think moving as much as possible to the dataset defaults is the way to go. Not sure if you want to tackle that in this PR or not.

@kurkle
Copy link
Member Author

kurkle commented Nov 24, 2020

I think moving as much as possible to the dataset defaults is the way to go. Not sure if you want to tackle that in this PR or not.

I think it might be better to do that in a separate PR. Lets wait for SB to review this too.

@kurkle kurkle merged commit e3ad318 into chartjs:master Nov 24, 2020
@kurkle kurkle mentioned this pull request Nov 24, 2020
3 tasks
@kurkle kurkle deleted the datasets-controllers branch December 30, 2020 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restore options namespace for controller options (options[type].* being too weak)
3 participants