How to expose `update_values` and `add_data_point` functions?
See original GitHub issueWhen creating a new Chart object per the docs, the chart renders correctly but the functions referenced in the docs (including update_values
and add_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.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Add Data Points to Existing Chart - Excel & Google Sheets
This tutorial will demonstrate how to add a Single Data Point to Graph in Excel & Google Sheets. Add a Single Data Point...
Read more >Plug-in API Reference: BeamDialog Class Reference - SIMDIS
Updates the enable/disable for several buttons. More... - Protected Member Functions inherited from PIGUI::PIDialogBox · PIDialogBox (). Inherited constructor, ...
Read more >Dynamically update values of a chartjs chart - Stack Overflow
Here is how to do it in the last version of ChartJs: setInterval(function ...
Read more >How to add different data for two lines in one dynamic graph?
Hi,i want to make a oscilloscope to show two data curve. ... These two lines show the same data,becuse the addDataPoint function can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ianjdarrow You’ll find them quite down nested in the prototype chain of the
Chart
object in the console output, given the inheritance. Aside, have you tried actually running the function? I assumed that the functions themselves didn’t work.It looks like these functions are not available on all chart types. For example
PercentageChart
extends fromBaseChart
which doesn’t have theupdate_values
function. Is there a way to dynamically update aPercentageChart
?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.