Generalize a little more to support quantitative chart as well