Opened 9 years ago

Closed 7 years ago

#10962 closed defect (fixed)

yaxis width calculated only by first and last label

Reported by: Ganeshpuri Owned by: cjolif
Priority: high Milestone: 1.8
Component: Charting Version: 1.4.2
Keywords: yaxis label with Cc: xiangxz@…, deanw, davec, cjolif
Blocked By: Blocking:

Description

If first and last item are very narrow the middle items are cut off in IE 8 and displayed incorrectly in FF. I've set up an example here: http://www.dojofaces.org/JSFExamples20/showRoom/test_DataChart_yaxis.faces

Change History (8)

comment:1 Changed 9 years ago by Adam Peller

Cc: xiangxz@… deanw davec added

comment:2 Changed 9 years ago by Eugene Lazutkin

Milestone: tbdfuture
Priority: highnormal
Status: newassigned

From the inline doc:

labelFunc:      null,   // function to compute label values
maxLabelSize:   0,      // size in px. For use with labelFunc

If you specify labelFunc you should specify maxLabelSize in pixels.

I keep this ticket open, because I prefer to see a more elegant solution to this problem.

comment:3 Changed 7 years ago by cjolif

Cc: cjolif added

comment:4 Changed 7 years ago by cjolif

I did not test in 1.4.x but in 1.7/trunk the maxLabelSize property won't solve the issue. The more complete solution would probably be to implement a mechanism similar to #13180 to fully compute the needed room for the axis.

comment:5 Changed 7 years ago by cjolif

Resolution: fixed
Status: assignedclosed

In [27523]:

fixes #13180, #13257, #10962. As the new more costly drop labels mechanism does not hurt performance (because it also contains optimizations compare to previous version). I've kept it by default. !strict.

comment:6 Changed 7 years ago by cjolif

Milestone: future1.8
Resolution: fixed
Status: closedreopened

comment:7 Changed 7 years ago by cjolif

Owner: changed from Eugene Lazutkin to cjolif
Status: reopenednew

comment:8 Changed 7 years ago by cjolif

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.