updates

add chart logic