-
Notifications
You must be signed in to change notification settings - Fork 60
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
Data binding for params other than data
#51
Comments
As you noted, currently only changes to When the component is initialized it creates a I am unfamiliar with a C3 API method that would allow you to load a changed |
I'm working on a PR that should allow for this. Problem with updating pies/donuts is that data loaded into the chart object is appended. However, you should be able to specify whether you'd like the current data to be unloaded before the new data is loaded in. |
@jsvg any luck with that PR regarding this issue? |
I believe this is covered in #51 |
Sorry, #52 |
If you only have one donut chart, you can access the title via its class.
The c3 developers suggest using the classes for some uses or even falling back to d3 functions in some applications. Sorry I don't have any links to reference. Can't seem to find what I have read in the past. |
Please see the drill down demo in release 1.0.0. ref pr #88 |
Really old issue but wanted to show this is now possible by setting the title in the donut argument. See donut example in the dummy app:
|
Hi @Glavin001, kudos for such a great addon 😄
I have a use case where I need data binding for the donut chart title:
similarly to the Gauge's example:
I infer that data binding is not triggered because only the
data
parameter is observed: https://github.com/Glavin001/ember-c3/blob/master/addon/components/c3-chart.js#L193, while Gauge's title is extracted fromdata
parameter itself, Donut's title is not (donut
param)I'm somewhat new to Ember, maybe you can hint me if there's a workaround for this, or maybe I'd be happy to work on a PR for it.
Thanks in advance, cheers!
The text was updated successfully, but these errors were encountered: