[openspending-dev] Help to input the icons on WDMMG

Lucy Chambers lucy.chambers at okfn.org
Tue Feb 5 20:10:36 UTC 2013


This message didn't come through to the list for some reason - so I am
forwarding it here.

--- Пересылаемое сообщение ---
От кого: "Володимир Харченко" <vx2005 at ukr.net>
Кому: openspending-dev at lists.okfn.org
Дата: 2 февраля 2013, 18:33:38
Тема: Help to make the color and icons when importing from openspending.



Hello!  Help to make the color and icons when importing from openspending.
I want to make the color and icons in their dataset : http :/ /
openspending.org/sumy13_v_col
I did not, I made the right color in the table csv. I can not make icons .:(
I took this one for an example set http://openspending.org/nigeriabudg13.
I redid the case of Uganda
(https://github.com/okfn/bubbletree/tree/master/demos/uganda).
I get only the center circle.
new OpenSpending.Aggregator({
apiUrl: 'http://openspending.org/api',
dataset: 'nigeriabudg13',
drilldowns: ['from', 'to'],
rootNodeLabel: ' 2013 Budget Proposal (Nigeria)',
breakdown: 'to',
callback: function(data) {
new BubbleTree({
data: data,
container: '.bubbletree',
//tooltipCallback: tooltip,
bubbleType: 'icon',
initTooltip: initTooltip,
maxNodesPerLevel: 12,
bubbleStyles: {
'id': {
'root': { color: '#FF0000', icon: 'money.svg'}// yes
},
'name': {
'DEBT SERVICE': {color: '#1A439A', icon: 'money.svg' },// not
'STATUTORY TRANSFERS': {color: '#A1218D', icon: 'money.svg' },// not
'CAPITAL SUPPLEMENTATION': {color: '#1A439A', icon: 'money.svg'}// not
}
What am I doing wrong?

-- 
Lucy Chambers
Project Coordinator,
School of Data & OpenSpending
Open Knowledge Foundation
Skype: lucyfediachambers
Twitter: @lucyfedia




More information about the openspending-dev mailing list