Dygraphs on Amazon S3

72 views
Skip to first unread message

Joe Wicentowski

unread,
Feb 19, 2014, 3:56:37 PM2/19/14
to dygraph...@googlegroups.com
Hi all,

This is my first post to dygraphs-users.  Many thanks to the community for this resource.  My first project with dygraphs is online - and has been very well received: 


I'm writing today with a question about a problem I'm having.  I've uploaded a dygraphs chart I've made (and that works fine on my local webserver) to Amazon S3, but I'm having trouble getting it to load from S3.  The URL is:


This page loads the "dygraphs-combined.js" file, but it fails to load the "logs-after.csv" file - though both are in the same directory.

Trying to feel my way in the dark, I've tried enabling CORS on the S3 bucket where this is stored, as described at 


... but to no avail.

Does anyone have suggestions for workarounds?  Would it help if I used something other than CSV for my data?  I'd like to keep the data external to the HTML, but I'm open to any suggestions.

Thanks,
Joe

Dan Vanderkam

unread,
Feb 19, 2014, 4:27:11 PM2/19/14
to dygraph...@googlegroups.com
Is the problem with your self-closing <script> tag?

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

I've only ever seen:

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


--
You received this message because you are subscribed to the Google Groups "dygraphs-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dygraphs-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Joe Wicentowski

unread,
Feb 19, 2014, 5:06:38 PM2/19/14
to dygraphs-users
Hi Dan,

Wow, that did it!  I was expecting the issue was elsewhere, since the same code worked on my local webserver (which must've been serializing my XML-style empty element as HTML-style open and close tags).  

Thanks very much!  
Joe

Dan Vanderkam

unread,
Feb 19, 2014, 5:16:35 PM2/19/14
to dygraph...@googlegroups.com
Glad that did the trick -- the syntax coloring in Chrome's "View Source" looked strange around there.

Pratik Mandrekar

unread,
Nov 18, 2014, 11:36:24 AM11/18/14
to dygraph...@googlegroups.com
Hello,

I am facing this same issue. The solution proposed here is not the correct solution. I can't load the CSV from a different domain including S3.

Before I try to modify the Dygraph source code, has anyone else figured this out within the existing configuration?

Thanks,

Pratik

Dan Vanderkam

unread,
Nov 18, 2014, 11:52:20 AM11/18/14
to dygraph...@googlegroups.com
Have you enabled CORS on your S3 bucket? Are you seeing any errors in your JS console?

For more options, visit https://groups.google.com/d/optout.

Pratik Mandrekar

unread,
Nov 21, 2014, 3:19:52 AM11/21/14
to dygraph...@googlegroups.com

CORS is enabled. I can load other resources from the S3 bucket. Just the CSV errors out.
Reply all
Reply to author
Forward
0 new messages