Bar charts do not update their data plots

Author: craig-cogdillCreated Sep 8, 2016Updated Jun 23, 2021

I know that bar charts are still experimental but I wasn't able to find any open issues or workarounds for this.

It seems that once a bar chart is drawn, redrawing it updates the axes, graph layout, etc., but the actual data plot is not updated. After the data is drawn once, it is drawn like that for good while the rest of the chart updates properly around it.

I found this on my own system with live updating data, but am able to reproduce it on the interactive chart at http://metricsgraphicsjs.org/interactive-demo.htm

Reproduction steps:

  • Change chart_type to 'bar' --> RUN screen shot 2016-09-08 at 1 29 36 pm
  • Remove/add some data points. I removed all but the first five. --> RUN screen shot 2016-09-08 at 1 30 28 pm

You can see that the graph axes and layout have updated properly, but the data is not redrawn correctly. I have not seen this issue with any of the other experimental charts.

Source: metricsgraphics/metrics-graphics