Open pstoica opened 10 years ago
will try to update the design of this chart before class. it's filling in under the line for some reason and looks rough. might have time to add chart for #2 also
think you're missing some css (stylesheets/main.less
), looked at http://bl.ocks.org/mbostock/3883245
.line {
fill: none;
stroke: steelblue;
stroke-width: 1.5px;
}
pretty sure we should combine the charts into one. even though trends is on a different scale (we can rescale it), it's merely a suggestion instead of hard data so i think it should work out.
yeah, it was missing that. sounds good. i want to add horizontal grid lines too
@camreon the price history shows up now. some to-do for the charts
I'll work on the linking, and maybe tooltips for the maps and the charts?
also, the price chart doesn't reflect null values right now since there are no entries for those months. should we do null values, or let it bridge the gap?
working on showing a popup of data when you mouse over the chart now and then cleaning up the rest of the chart.
i can't figure out why the trend data is going out of the chart's bounds. do either of you want to look into that more?
and i think it's fine to let it bridge gap months for now
takin a look
fixed, it was still drawing dates before 2010, so i filtered that on the server side.
I just added caching for all the JSON responses.
fyi, the mongo mapreduce was kind of wrong. you should see more data now, actually.
@pstoica why are you keeping track of all the past queried prices in line 331?
prices = $.merge(prices, json.prices);
I threw it Ito a global I think so I could use it for the popups on the map?
*threw it into
@camreon that code was actually meant to fill the prices with null values (so that there are visible gaps) and replace them with whatever isn't null. or do you want to leave it as continuous? i feel like we should show gaps so we don't mislead the user or whatever.
ah k. i agree, showing gaps is more honest. i was just being lazy before lol
Maybe try to make this line up with the months in the calendar view?