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
partially derive the dataElementOptions and datasetElementOptions from the defaults options for an element.
dataElementOptions
datasetElementOptions
e.g.
defaults.set('elements', { rectangle: { backgroundColor: defaultColor, borderColor: defaultColor, borderSkipped: 'bottom', borderWidth: 0 } }); BarController.prototype.dataElementOptions = [ 'backgroundColor', 'borderColor', 'borderSkipped', 'borderWidth', 'barPercentage', 'barThickness', 'categoryPercentage', 'maxBarThickness', 'minBarLength' ];;
The first four options could be automatically derived from the default options (its keys).
avoid code duplication and easier to extend
The text was updated successfully, but these errors were encountered:
I wonder if we might have to fix #5233 first
Sorry, something went wrong.
Closed by #8374
Successfully merging a pull request may close this issue.
Feature Proposal
partially derive the
dataElementOptions
anddatasetElementOptions
from the defaults options for an element.e.g.
The first four options could be automatically derived from the default options (its keys).
Feature Use Case
avoid code duplication and easier to extend
The text was updated successfully, but these errors were encountered: