fix compilation error
WIP: chart from ws

right now only sends chart one time