decouple chart utils from utils