Fix high cpu usage when chart shown (#44)