-
Notifications
You must be signed in to change notification settings - Fork 717
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
How to expose update_values
and add_data_point
functions?
#65
Comments
@ianjdarrow Hmm, would be easier to tell by seeing the usage. Can you share your code? |
Of course - thanks. Here's the code:
As I mentioned, the chart renders properly, but the desired methods don't seem to be exposed. The chart displays properly and |
@ianjdarrow You'll find them quite down nested in the prototype chain of the |
@pratu16x7 thanks so much! Knowing that the functions were nested way down the prototype chain, I was able to confirm that they was there. I have this working now. Not 100% sure what the issue was – probably my own stupidity – but very grateful for your help and your work on this library. |
It looks like these functions are not available on all chart types. For example I'm now using this, which seems to work:
Is this the right way to do it? Would be nice if all charts could implement these functions for a consistent API. |
When creating a new Chart object per the docs, the chart renders correctly but the functions referenced in the docs (including
update_values
andadd_data_point
) don't appear to be included in the newly-created object. This is true for both LineChart and BarChart, both of which inherit AxisChart where the desired methods live. Grateful for any assistance folks can provide in exposing these functions.The text was updated successfully, but these errors were encountered: