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

Add formatter support for type ColorFormat #90

Conversation

aleksandar-kandzhichki
Copy link
Contributor

@aleksandar-kandzhichki aleksandar-kandzhichki commented Sep 10, 2018

Since ColorFormat formatter constructor takes no arguments, we need to explicitly call addRange or addGradientRange methods
I assume the structure could be something like

options: {
    ranges: {from: number, to: number, fromBgColor?: number, toBgColor: number}[],...
}

and we could iterate through ranges to add them to the formatter

Reference: https://developers.google.com/chart/interactive/docs/reference#colorformatter

Since ColorFormat formatter constructor takes no arguments, we need to explicitly call 'addRange' or 'addGradientRange' methods
I assume the structure could be something like
options: {
    ranges: {from: number, to: number, fromBgColor?: number, toBgColor: number}[],...
}
and we could iterate through ranges to add them to the formatter
@aleksandar-kandzhichki
Copy link
Contributor Author

This could solve
Issue #29

@gmazzamuto
Copy link
Owner

Merged

@gmazzamuto gmazzamuto closed this Nov 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants