WIP: daily contributions chart

still needs legend, would be nice to add functionality that displayed date on mouse hover
oh yea, i been meaning to add some comments, it didnt have to be exactly
that number, but the idea is to make it so that there is a point on the
line just before they started collecting at which point they had 0 dollars,
so the lines don't start up at 20,000 if that's how much they raised the
first day. 300000000 was the number i chose cause visually setting the
point there looked nice to me.


On Sat, Aug 30, 2014 at 12:42 PM, Tom Dooner <notifications@github.com>
wrote:

> In assets/js/views/_dailyContributionsChart.js:
>
> >            }
> >            else {
> > -            tempAmounts[el.recipient.name] = {}
> > -            tempAmounts[el.recipient.name][new Date(new Date(el.date) - 300000000)] = 0
> > -            tempAmounts[el.recipient.name][new Date] = 0
> > -            tempAmounts[el.recipient.name][new Date(el.date)] = el.amount;
> > +            tempAmounts[candidate][new Date(el.date)] = el.amount
> > +            tempAmounts[candidate][new Date(new Date(el.date) - 300000000)] = 0
>
> What is the significance of 300000000?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/openoakland/opendisclosure/pull/209/files#r16930999>.
>



-- 
Cell: 617-833-1574