added basic chart example with auto update function