danvk / dygraphs

Interactive visualizations of time series using JavaScript and the HTML canvas tag
http://dygraphs.com
Other
3.17k stars 605 forks source link

Dygraph 1.1.1 not working on WebKit-based browser #753

Open RadhiFadlillah opened 8 years ago

RadhiFadlillah commented 8 years ago

Dygraph v1.1.0 and v1.1.1 is not working on WebKit based browser e.g Midori, Uzbl, DWB and Surf; but v1.0.1 and prior is working.

To reproduce, open Dygraph website in WebKit based browser. I've tested it on Linux Mint 17.2 64-bit using following browser :

On all mentioned browser, graph in Dygraph home page is not working :

Graph not working

But it's working on example page :

Graph is working

danvk commented 8 years ago

Are you seeing errors in the JS console? To be honest, I've never heard of any of those browsers.

przmv commented 8 years ago

FYI @danvk these browsers are based on WebKitGTK+ (https://webkitgtk.org/). @RadhiFadlillah you could check rstudio/dygraphs repository to see if there were some similar issues (and fixes) since RStudio IDE itself uses WebKit (not GTK+ but QT) for web view.

RadhiFadlillah commented 8 years ago

Sorry for late reply. I've created a Dygraph chart following tutorials :

<html>

<head>
    <script type="text/javascript" src="dygraph-combined-dev.js"></script>
</head>

<body>
    <div id="graphdiv2" style="width:500px; height:300px;"></div>

    <script type="text/javascript">
        g2 = new Dygraph(
            document.getElementById("graphdiv2"),
            "temperatures.csv", 
            {}
        );
    </script>
</body>

</html>

When tested in Surf browser, console shows these errors :

dygraph issue