Multi-colored axis in Chart Director

207 views Asked by At

I am replacing an old charting package with chart director. The previous package produced multiply colored axis, so that you can quickly see where different days begin/end, like this:

enter image description here

Does chart-director support anything similar?

1

There are 1 answers

1
user3100235 On

May be you can try to add thick custom lines using BaseChart.addLine, or thin custom rectangles using BaseChart.addText (create an empty text box, use Box.setSize to set its size and Box.setBackground to set the background and border colors). Basically, you would need to determine the standing and ending positions of each day, and then add a think or a thin box just below the x-axis.