Opened 10 years ago
Closed 8 years ago
#11824 closed defect (wontfix)
dojo.charting not working with FF 3.5.3 for Ubuntu
Reported by: | zladivliba | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | future |
Component: | Charting | Version: | 1.5 |
Keywords: | charting, ff, firefox | Cc: | |
Blocked By: | Blocking: |
Description (last modified by )
I've had a LOT of problems using FF under linux with dojo.charting. Usually the bugs are that nothing is shown inside a graphic. I'm parsing this piece of code :
dojo.require("dojox.charting.Chart2D"); makeCharts = function(){ var chart1 = new dojox.charting.Chart2D("simplechart"); chart1.addPlot("default", {type: "Lines"}); chart1.addAxis("x"); chart1.addAxis("y", {vertical: true}); chart1.addSeries("Series 1", [1, 2, 2, 3, 4, 5, 5, 7]); chart1.render(); }; dojo.addOnLoad(makeCharts);
and nothing appears inside the graph (I see the axes though). I've tested the same thing under chrome and it works.
It seems also that using an array makes the navigator bug (I never get to see the array of elements inside a graph, only the first elements).
Attachments (1)
Change History (11)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Milestone: | tbd → future |
---|---|
Priority: | highest → normal |
severity: | blocker → normal |
Status: | new → assigned |
FF 3.5.3 for Ubuntu --- this is what I use for testing and development on daily basis. Could you provide a test file, which is broken for you?
comment:3 Changed 10 years ago by
Description: | modified (diff) |
---|
...or if some tests/demos do not work for you on this browser, just give me their links.
comment:4 Changed 10 years ago by
What else can I say : I didn't see any lines inside the graph. Just both axis but nothing inside it.
I tested on chrome and I saw the line inside the graph. I don't see what more can I say about it.
If you can't reproduce well there's a problem, maybe it's my navigator (i've updated since) but seems weird.
comment:5 Changed 10 years ago by
You can test graphics problems using nightlies:
- http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/charting/tests/
- http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/gfx/tests/
- http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/gfx/demos/
Do they work for you or not?
comment:6 follow-up: 7 Changed 10 years ago by
I can confirm that problem on Firefox 3.5.13 with all extensions disabled. The second example on the documentation doesn't work (the simple one in the "Usage" chapter).
http://dojotoolkit.org/reference-guide/dojox/charting.html#dojox-charting
comment:7 Changed 10 years ago by
Replying to sylence:
I can confirm that problem on Firefox 3.5.13 with all extensions disabled. The second example on the documentation doesn't work (the simple one in the "Usage" chapter).
http://dojotoolkit.org/reference-guide/dojox/charting.html#dojox-charting
I just tried it with Firefox 3.6.12pre and it works for me. Probably I need to find 3.5 and try it...
comment:8 Changed 10 years ago by
I've switched to Firefox 3.6 and now it really works. But FF3.5 users will still not be able to see these simple charts (while complex one still work there).
Changed 10 years ago by
comment:9 Changed 10 years ago by
I've added a simple test file, test.htm, which is based on the example mentioned above. Also in the file, I've overridden the function dojox.charting.plot2d.common.collectSimpleStats so that more logging is available. With Firebug enabled, logging such as this will occur:
stats.hmin prior = Infinity
stats.hmin after = 1
stats.hmin prior = Infinity
stats.hmin after = 2
This test file fails to produce graph lines for me on Firefox 3.5.16 and Windows 7. I've found two remedies for this:
- Force the min value for the x-axis to be 1 - change this line
chart1.addAxis("x");
to
chart1.addAxis("x", {min: 1});
- Revert dojo.delegate to dojo.clone (as it is in Dojo 1.4) - change this line
var stats = dojo.delegate(dojox.charting.plot2d.common.defaultStats);
to
var stats = dojo.clone(dojox.charting.plot2d.common.defaultStats);
It seems based on the logging that I've added that Firefox 3.5 has a problem with the delegated "stats" var. It appropriately reads the value Infinity from stats.hmin during the first loop iteration and sets stats.hmin to 1. However, during the second iteration, it's back to Infinity! I don't think that this is a problem with dojo.delegate. It instead seems to be a problem with Firefox caching the value Infinity from the delegated value.
comment:10 Changed 8 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Firefox 3.5 is not supported anymore in recent Dojo releases nor by Mozilla. I think we should close that one for now except if somebody comes up with a patch for old releases.
More details about my navigator : Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20091020 Ubuntu/9.10 (karmic) Firefox/3.5.3