javascript - dc.js Bubble Chart, plotting bubbles along the x-axis timeline -
i building bubble chart in dc.js having problems plotting along x-axis.
the link graphs is: http://junklogic.com/dcjs/creatures/creatures.html
the design of chart follows, using dataset of "mythical creature sightings" fun.
each line of json this:
{ "creature_name": "dragon", "seenby": "ann", "date": "2014-01-25t22:10:58", "danger": 3, "location": "fl" },
each bubble grouped based on date , time of creature sightings.
- the bubble radius count of sightings individual @ particular time.
- the bubble color average of danger levels, summed , divided count reveal number 1-3
- the y-axis calculation of danger levels multiplied count (i call "impact")
- the x-axis should plot bubbles based on timeline, same time range bar chart below it. stuck.
all bubbles pinned @ pixel 0 , dont plot across. these reflect point across timeline. ideally, i'd group them into, say, 1-hour groups. getting them plot make big difference in progression of learning these libraries.
the script at: http://junklogic.com/dcjs/creatures/js/creatures.js
the json file at: http://junklogic.com/dcjs/creatures/data/dashdata.json
thanks in advance help. if need provide other info solve question, i'm happy provide can
well, found it.
p.datetime += v.date;
and
p.datetime -= v.date;
should be:
p.datetime = v.date;
Comments
Post a Comment