Fix our legend hack to work with pie charts