[openspending-dev] Filters in bubbletree, cuts
Vitor Baptista
vitor at vitorbaptista.com
Tue Feb 19 20:26:33 UTC 2013
Hi Vladimir,
I'm not sure, but I guess you should change in
https://github.com/okfn/bubbletree/blob/master/build/bubbletree.js#L1992-L1993.
Instead of title = tt[0] and text = tt[1], you do the other way around. Set
title = tt[1] and text = tt[0].
I haven't tested it.
Cheers,
Vítor.
2013/2/16 Володимир Харченко <vx2005 at ukr.net>
> Thank you Vitor!
> I have a set of redistribution (0 removed), it took less time than I was
> looking for an answer :)
>
> Tell me you do not know how to change places (top, bottom) of the
> inscriptions on the bubble:
> Now: 1) amount (1000) 2) label (total);
> to: 1) label (total), 2) amount (1000).
> My second option is more attractive.
> Maybe you know the line number of line here (ttps://
> github.com/okfn/bubbletree/blob/master/build/bubbletree.js)?
> I can not find ..
> Vladimir
>
> --- Исходное сообщение ---
> От кого: "Vitor Baptista" <vitor at vitorbaptista.com>
> Кому: "Володимир Харченко" <vx2005 at ukr.net>
> Дата: 16 февраля 2013, 00:32:20
> Тема: Re: [openspending-dev] Filters in bubbletree, cuts
>
>
>
> Hi Vladimir,
>
> As far as I know, there's no way to cut by greater than (or less than,
> etc). The only way to do what you want is to simply not add the values with
> amount == 0 to your dataset in the first place.
>
> Cheers,
> Vtor.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/openspending-dev/attachments/20130219/80f0a568/attachment.html>
More information about the openspending-dev
mailing list