-
Notifications
You must be signed in to change notification settings - Fork 3
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 ability to pass arbitrary options to c3.generate #19
Comments
I agree, this would make the config a lot easier. A first implementation of this would probably just to listen for changes on this options object, and then call |
+ Config data.onclick: http://c3js.org/reference.html#data-onclick Still just experimenting with particular config options. For data.onclick probably dispatch custom viewModel event if <bit-c3 onclick="true" (click)="clickHandler(%event)"></bit-c3> |
Looks like almost all config properties are lower cased, except for couple (data.xFormat, data.xLocaltime, data.xSort). So we can translate camel-cased properties into nested object config:
can be achieved declaratively:
And we can observe the config and run |
I would like to be able to pass other options to this call: https://github.com/bitovi-components/bit-c3/blob/master/src/chart.js#L35.
Some example options that would be nice to be able to set are http://c3js.org/reference.html#axis-rotated and c3js/c3#188 (comment).
Not sure exactly how this would work, but it would make bit-c3 much more flexible.
The text was updated successfully, but these errors were encountered: