d3 / d3

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
https://d3js.org
ISC License
108.9k stars 22.87k forks source link

Opera compatibility #251

Closed Usocrate closed 13 years ago

Usocrate commented 13 years ago

Opera fails to render many examples published on http://mbostock.github.com/d3/ex/ Why ?

mbostock commented 13 years ago

What version of Opera and what operating system ?

Usocrate commented 13 years ago

Version 11.50, Win32, Windows XP Opera/9.80 (Windows NT 5.1; U; fr) Presto/2.9.168 Version/11.50

For instance, here is what is found within DOM for Choropleth :

<div class="gallery" id="chart">
<svg>
    <g id="counties" class="Blues"/>
    <g id="states"/>
</svg>
</div>
jasondavies commented 13 years ago

The examples all work for me in 11.50 on OS X, except for the chord layout. It seems as if the arc commands are being ignored, but I can't see an obvious reason why.

joe776 commented 13 years ago

Similar problems for the current Opera Next snapshot (12.00). Windows 7, x64 12.00 pre-alpha, Build 1076

Opera/9.80 (Windows NT 6.1; U; Edition Next; en) Presto/2.9.211 Version/12.00

The Chord Diagram renders correctly. However, all the examples from Chloropleth to the Scatterplot stay blank... Some others, too.

jasondavies commented 13 years ago

Strange, everything works perfectly using the same build (1076) on OS X, including the chord diagram now. Perhaps there is an issue loading the JSON data for many of the examples. Can you see any errors in the JS console?

joe776 commented 13 years ago

There is indeed an error message related to JSON (sorry for not looking there earlier...): I have no idea where these chinese symbols come from.

jasondavies commented 13 years ago

Which example was causing the error in the screenshot?

joe776 commented 13 years ago

The Force-Directed Graph. But I get similar errors for Non-Contiguous Cartogram, Treemap, Sunburst and others. But the chinese symbols always look a bit different.

larskotthoff commented 13 years ago

Jason, the problem you're seeing is fixed in pull request https://github.com/mbostock/d3/pull/327

lluchs commented 13 years ago

Works in Opera 12.00 alpha [1105]

joe776 commented 13 years ago

Works in Opera 12.00 alpha [1105]

All examples? For me the ones using JSON data are still not displayed. Opera 12.00 alpha, build 1116

lluchs commented 13 years ago

All other examples on http://mbostock.github.com/d3/ex/ work here even on Opera 11.52.

joe776 commented 13 years ago

Ok, found the problem. In my Opera profile folder is a file named handler.ini which associates MIME types to different applications. For JSON, there was a mapping to Opera itself. After deleting this entry, everything works fine. Should have used a completely clean installation to verify this behaviour in the first place...