don't assume any relationship between legend order and series order; fixes #295