Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dc.min.js.map 404 (Not Found) #866

Closed
adriangibbons opened this issue Mar 1, 2015 · 10 comments
Closed

dc.min.js.map 404 (Not Found) #866

adriangibbons opened this issue Mar 1, 2015 · 10 comments
Milestone

Comments

@adriangibbons
Copy link

404

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="js/crossfilter.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/dc/1.7.3/dc.min.js"></script>

No 404 error if I use <script src="http://cdnjs.cloudflare.com/ajax/libs/dc/1.7.3/dc.js"></script> instead of the minified version.

The crossfilter issue is there in both cases, though this is probably because I haven't had experience of this before either.

@gordonwoodhull
Copy link
Contributor

Good point, we probably need to check in the source maps along with the modified source. I have been seeing a lot of this lately, so I wonder if Chrome had gotten more proactive about downloading those.

As for the crossfilter errors, looks like perhaps you have a corrupted copy of crossfilter.min.js? Does it help if you use

https://cdnjs.cloudflare.com/ajax/libs/crossfilter/1.3.11/crossfilter.min.js

instead?

@gordonwoodhull
Copy link
Contributor

Thanks @adriangibbons.

@adriangibbons
Copy link
Author

Cheers @gordonwoodhull - I hadn't found the crossfilter CDNJS. It was that the file hadn't downloaded properly. I've downloaded again and crossfilter works fine now. Getting my head around these great tools - steep learning curve!

@gordonwoodhull
Copy link
Contributor

Thanks. Yes, it is steep, but worth it.

And is the error about the .map file harmless in your app? I still want to fix it, because it breaks debuggability.

@adriangibbons
Copy link
Author

It doesn't seem to have any impact, but I am really only doing crude examples/prototypes at the moment. Cheers

@gordonwoodhull gordonwoodhull added this to the v2.0 milestone Mar 20, 2015
@lfdversluis
Copy link

Damn, just as I discovered DC I run into this issue. Is there any (quick) fix for it? I am using d3 now but working with 20k points in a scatterplot makes things slow, hence I found DC.

@gordonwoodhull
Copy link
Contributor

@lfdversluis, as noted above, this error is not the root of your problem. Something else is crashing and then the debugger is trying to load the .map debugger file.

I'll make sure the file gets into the next beta release. To enable debugging now, simply use the non-minified dc.js instead.

@gordonwoodhull
Copy link
Contributor

I should mention (as you've probably figured out) that dc.js won't automatically solve plot performance problems. You will have to aggregate in order to plot that many points using anything DOM/SVG based, and crossfilter/dc help with that, but plotting as many points will still be slow. If you're determined to plot every one of those 20k points, you should look for something canvas-based.

@lfdversluis
Copy link

Thanks for your replies. I managed to get rid of the error, thanks 👍 As for the amount of points, yes all of them have to be plotted. Basically they are 20k genes located in the brain spatially represented by an x and y coordinate after some pre-processing. You should be able to select all or a subset of them. Based on this selection some parts of the brain (a svg that I yet have to receive) should lighten up (the more genes inside a part, the brighter).

As I am not that experienced with graph (and visualizing in general), could you give me a pointer to a canvas-based approach? I will definitely take a look at it then.

@gordonwoodhull
Copy link
Contributor

I'm surprised that a google search only brings up one canvas-based d3 scatterplot. I thought this explanation was quite cogent. However, it doesn't get quite all the way to a scatter plot and I haven't tried it myself.

You'll probably want low opacity in order to see so many points. This seems like a helpful post on that.

If you have any luck, please comment on the related issue #811.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants