Subscribe to RSS Feed

Categories

Archives

Clicker Gets Talkative

↓ skip to article

I’ve been avoiding writing two pieces of Chart::Clicker: the legend and the axis and it’s labels. I don’t know why. Perhaps they just aren’t as fun as the renderers.

Tonight I took a crack at it. The above example admittedly doesn’t look like much but it’s actually a lot of progress. There are two series being rendered and the first has a really long label. This code has moved the second label to the next line. There is no padding because all the elements involved (Legend and LegendItem) use default Insets of (0,0,0,0).

I fixed a few stupid bugs in the ColorAllocator. Aside from some early bug fixes and documentation updates, I only ended up with 335 lines of code in establishing a beachead on the Legend front. That’s disappointing.

Tomorrow starts a long weekend were I will be away from the computer. I stayed up late hacking since I wouldn’t have any more chances over the weekend. It’s not worth releasing. The next release will be full legend support.

Comments (No comments)

There are no comments for this post so far.

Post a comment