log charts refactor