Example showing real time chart updating

The chart below is a historical bar chart, which is ideal for visualizing time series data.
First, you need to update the data model for the chart. In the example, we append a random number every half a second. Then, you call chart.update().