Trying to make a energy chart