Opened 5 years ago

Closed 4 years ago

#18412 closed defect (patchwelcome)

dojox charts - gfx create text not taking fonts into consideration

Reported by: snanjai@… Owned by: Eugene Lazutkin
Priority: undecided Milestone: 1.13
Component: DojoX GFX Version: 1.10.3
Keywords: Cc:
Blocked By: Blocking:

Description

Below is the code snippet of creating a dojox/chart For the X-Axis have a title and explicitly specifying htmlLabels to true. However this will not have any effect on IE because by default dojox/charting/axis2d/Default.js, line # 740 checks if it is IE it will use gfx to create the text. Also if the title for Y-Axis with rotation (anything other than 0) will be forced to use gfx. For some reason gfx is not taking fonts into consideration and I didn't get time to dig into the root cause. var c = new Chart("chart");

c.addPlot("default", {

type : StackedAreas?, tension : 3

}).addAxis("x", {

title : "X-Axis", titleOrientation : "away", htmlLabels : true, titleGap: 30, titleFont : "normal normal 24px Tahoma", dropLabels : true, fixLower : "major", fixUpper : "major", font: "normal normal bold 24pt Tahoma", fontColor: "blue"

}).addAxis("y", {

title : "Y-Axis", htmlLabels : true, titleOrientation : "away", titleRotation: 270, titleGap: 30, titleFont : "normal normal 24px Tahoma", vertical : true, fixLower : "major", fixUpper : "major", min : 0, font: "normal normal bold 24pt Tahoma", fontColor: "red"

}).setTheme(Wetland)

Attachments (2)

FF - Fonts not applied for Y-Axis.PNG (50.8 KB) - added by snanjai@… 5 years ago.
Fonts not applied on Y-Axis
IE - Fonts not applied on both axis.PNG (47.8 KB) - added by snanjai@… 5 years ago.
Fonts not applied on both Y-Axis and X-Axis

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by snanjai@…

Fonts not applied on Y-Axis

Changed 5 years ago by snanjai@…

Fonts not applied on both Y-Axis and X-Axis

comment:1 Changed 4 years ago by snanjai@…

Any updates on this bug???

comment:2 Changed 4 years ago by davidabrooks

Could we get an update please

comment:3 Changed 4 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Realistically, without a pull request to fix the issue, it's not going to get fixed for a while. If you have a fix you'd like to propose, please get involved! https://github.com/dojo/dojo/blob/master/CONTRIBUTING.md

If it's a pressing issue that you must get fixed, you could talk with us at SitePen? ( https://sitepen.com/support/ ).

For now, I'm marking this as patchwelcome, as realistically it's not going to get fixed unless someone works on the pull request to fix it.

Note: See TracTickets for help on using tickets.