Project

General

Profile

Actions

Bug #1712

closed

CategoryScale labels are incorrectly drawn for more than 6 categories in 3.3.0-rc2

Added by Mark Snelling about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
02/21/2013
Due date:
% Done:

0%

Estimated time:

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

6 Categories.png (79.7 KB) 6 Categories.png 6 Categories with correct axis Mark Snelling, 02/22/2013 08:24 AM
7 Categories.png (71.8 KB) 7 Categories.png 7 Categories with incorrect axis Mark Snelling, 02/22/2013 08:24 AM
Actions #1

Updated by Koen Deforche about 11 years ago

Hey,

Two screenshots would be helpful ?

Regards,

Koen

Updated by Mark Snelling about 11 years ago

I hope these explain the problem better. You can easily test this with the category charts example by adding extra rows.

Actions #3

Updated by Koen Deforche about 11 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

Actions #4

Updated by Koen Deforche about 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF