update chart and display a median