Bug #1712
closedCategoryScale labels are incorrectly drawn for more than 6 categories in 3.3.0-rc2
0%
Description
When testing the Wt:Cart:Category chart in Wt 3.3.0 rc2 the category axis doesn't draw the labels correctly when there are more than 6 categories. This works correctly in 3.2.3 and is broken in 3.3.0 rc2
Files
Updated by Koen Deforche almost 12 years ago
Hey,
Two screenshots would be helpful ?
Regards,
Koen
Updated by Mark Snelling almost 12 years ago
- File 6 Categories.png 6 Categories.png added
- File 7 Categories.png 7 Categories.png added
I hope these explain the problem better. You can easily test this with the category charts example by adding extra rows.
Updated by Koen Deforche almost 12 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
Hey,
I did change an internal parameter for deciding how many labels should be drawn, and I guess that's why 3.3.0 and 3.2.3 behave differently.
While there is an alignment glitch which I've fixed now (the label is not centered under the tick line), the behavior is quite close to what I intend (and so we could discuss what you prefer to see instead in case the effective 'label interval' does not equal 1 ?
You can fix the behavior to the 3.2.3 behavior by forcing the label interval to be 1 using setLabelInterval(1) for the X axis.
Regards,
koen
Updated by Koen Deforche almost 12 years ago
- Status changed from Resolved to Closed