Hello,
I am learning about dc, crossfilter and reductio libraries and am attempting
to make an intermediate kind of example, basing the design on one from peacecorps.gov. This set of three examples will be further documented and shared.
I have had help from Ethan Jewett, who helped me get an example working with reductio and his example showed that I was missing two countries in the json. He said I should move this question to this google group and mentioned a fiddle to start from. The problem is that even with that example I exceeded the quota on jfiddle.
I am stuck and would appreciate any help getting past the next problem. My attempts to get a working fiddle on jsfiddle failed because I keep exceeding the quota there, even with smaller data sets. (Here is where I tried last, https://jsfiddle.net/wheatgrass/qdnbogs0/10/)
I have three examples on github that are gists. The examples two and three almost work, but they do not show all the countries for any example, just some of them. I don't know if I am not filtering right, or if it is a data problem.
The data is a subset and "flattened".
I am interested mostly in discovering why the complete set of countries does
not display after filtering n2dim. Just some of them show up. I have other things too, to fix, but mainly I want to find out if it the data or the filtering, or both that need fixing.
I appreciate any help or suggestions.
https://gist.github.com/greaneym/51c08fbdf2b61c5c5645f84e625728de
http://bl.ocks.org/greaneym/raw/2a600873150a8e3f4bede48356579ad3/
thank you,
Margaret
--
You received this message because you are subscribed to the Google Groups "dc-js user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dc-js-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/8452e38c-819c-4521-9362-f3c01202bbf0%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "dc-js user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dc-js-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/6c994bc2-0072-4d16-8314-08efe42bb413%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "dc-js user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dc-js-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/7aa1aaf3-711f-41f2-ad09-37d2c7ae477f%40googlegroups.com.
var rankings = [
{
"key":"Armenia",
"value":1,
"city":"Seattle",
"key":"Mozambique",
"value":5,
"total":"72",
"key":"Peru",
"value":3,
"key":"Cambodia",
"value":1,
"key":"Costa Rica",
"value":3,
"key":"Albania",
"value":2,
"key":"Liberia",
"value":1,
"key":"Macedonia",
"value":4,
"key":"Nepal",
"value":1,
"key":"Lesotho",
"value":1,
"key":"Vanuatu",
"value":2,
"key":"Rwanda",
"value":2,
"key":"Swaziland",
"value":1,
"key":"Zambia",
"value":3,
"key":"Guyana",
"value":3,
"key":"Belize",
"value":2,
"key":"China",
"value":2,
"key":"South Africa",
"value":1,
"id":"4854",
"key":"Ethiopia",
"value":3,
"key":"United Republic of Tanzania",
"value":4,
"address":"1410 NE Campus Pkwy",
"key":"Jamaica",
"value":1,
"rank":"1",
"key":"Kyrgyzstan",
"value":1,
"key":"Moldova",
"value":1,
"key":"Madagascar",
"value":1,
"key":"Burkina Faso",
"value":2,
"lat":"47.6062095",
"key":"Cameroon",
"value":1,
"zip":"98195",
"key":"Botswana",
"value":1,
"nameloc":"University of Washington",
"key":"Malawi",
"value":2,
"size":"Large",
"key":"Panama",
"value":2,
"key":"Mongolia",
"value":2,
"nid":"0",
"key":"Senegal",
"value":3,
"key":"Morocco",
"value":2,
"key":"Mexico",
"value":1,
"key":"Georgia",
"value":2,
"key":"Ghana",
"value":1,
"state":"WA",
"key":"Gambia",
"value":1,
"key":"Guatemala",
"value":1,
"order":"1",
"key":"Nicaragua",
"value":1,
"lng":"-122.3320708"
},
thank you
I found this comment in SO
and I think that is the method you are telling me to try, which is to change the data that goes into crossfilter(data). I will proceed with that method,
although I do see that other people are using multiple crossfilter data sets.
--
You received this message because you are subscribed to the Google Groups "dc-js user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dc-js-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/3f607f78-a34d-4d12-b7ac-b321b03da629%40googlegroups.com.
1. How do you use the color accessor to color the countries in with navy? I tried this but the error says it can't see thed.exceptionSum.value,
2. The x-axes didn't work at all. I tried various things but they didn't work. If you or anyone could make a suggestion on how to do this, that would be great.
Also, I want to learn how to make the charts from just one crossfilter data set, but so far was not able to do this. When I use one set, I wasn't able to figure out how to separate the three categories of small, med and large sized colleges, but I will keeptrying. That is I could use the filter to separate them, but the charts didn't work. It gave me one chart instead of three.