Opened 6 years ago
Closed 5 years ago
#18412 closed defect (patchwelcome)
dojox charts - gfx create text not taking fonts into consideration
Reported by: | 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)
Change History (5)
Changed 6 years ago by
Attachment: | FF - Fonts not applied for Y-Axis.PNG added |
---|
Changed 6 years ago by
Attachment: | IE - Fonts not applied on both axis.PNG added |
---|
Fonts not applied on both Y-Axis and X-Axis
comment:3 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|---|
Resolution: | → patchwelcome |
Status: | new → closed |
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.
Fonts not applied on Y-Axis