*** tpb has joined #melange | 00:00 | |
*** tansell--laptop has joined #melange | 02:00 | |
*** tansell_laptop has quit IRC | 02:02 | |
*** dr__house has joined #melange | 02:09 | |
*** dr__house has quit IRC | 03:41 | |
*** dr__house has joined #melange | 04:13 | |
*** dr__house has quit IRC | 04:44 | |
*** madrazr has joined #melange | 05:14 | |
*** ChanServ sets mode: +v madrazr | 05:14 | |
*** MatthewWilkes has joined #melange | 05:21 | |
*** Merio has joined #melange | 05:26 | |
*** ChanServ sets mode: +v Merio | 05:26 | |
*** dr__house has joined #melange | 06:03 | |
*** madrazr1 has joined #melange | 06:08 | |
*** madrazr has quit IRC | 06:09 | |
*** madrazr1 is now known as madrazr | 06:21 | |
*** ChanServ sets mode: +v madrazr | 06:21 | |
*** dr__house has quit IRC | 06:25 | |
*** dr__house has joined #melange | 07:05 | |
*** mithro has quit IRC | 07:13 | |
*** mithro has joined #melange | 07:31 | |
*** ChanServ sets mode: +v mithro | 07:31 | |
*** dr__house has quit IRC | 07:37 | |
*** dr__house has joined #melange | 07:44 | |
*** madrazr has quit IRC | 07:44 | |
*** madrazr has joined #melange | 07:44 | |
*** ChanServ sets mode: +v madrazr | 07:44 | |
*** mithro has quit IRC | 08:50 | |
*** mithro has joined #melange | 09:09 | |
*** ChanServ sets mode: +v mithro | 09:09 | |
*** madrazr has quit IRC | 09:58 | |
*** madrazr has joined #melange | 09:59 | |
*** ChanServ sets mode: +v madrazr | 09:59 | |
*** dhans has joined #melange | 10:07 | |
*** ChanServ sets mode: +v dhans | 10:07 | |
*** florinciu has joined #melange | 10:10 | |
*** madrazr has left #melange | 10:29 | |
dhans | Merio: ping? | 10:54 |
---|---|---|
Merio | dhans: pong! | 10:54 |
dhans | Merio: hi :) I've got a question | 10:55 |
Merio | dhans: yep tell me | 10:55 |
dhans | Merio: how come some visualizations (like column charts or bar charts) are so 'short'? | 10:55 |
dhans | Merio: they have only 32px? | 10:56 |
Merio | dhans: I need to fix the width/height.. problem is to do it in a sensible way programmatically | 10:56 |
Merio | dhans: for example in pie chart is sensible to have width==height | 10:56 |
Merio | dhans: but for bar charts (especially horizontal ones) it's difficult to determine the optimal height, perhaps it needs to be dependent on how many columns there are | 10:57 |
Merio | dhans: (ftr I've fixed the pagination on tables) | 10:57 |
dhans | Merio: great :-) | 10:57 |
dhans | Merio: but shouldn't Visualization API determine some optimal height by itself? | 10:58 |
*** arvind_khadri has joined #melange | 10:58 | |
Merio | dhans: AFAIK no, let me know if you find something | 10:59 |
dhans | Merio: I do not know :P | 10:59 |
Merio | dhans: good :D | 11:00 |
*** madrazr has joined #melange | 11:01 | |
*** ChanServ sets mode: +v madrazr | 11:01 | |
*** arvind_khadri has quit IRC | 11:02 | |
*** madrazr has quit IRC | 11:12 | |
dhans | Merio: would it be possible to make dimensions one of the parameters of the function which constructs visualizations? | 11:14 |
Merio | dhans: I wouldn't do that into the constructor | 11:17 |
dhans | Merio: because? | 11:17 |
Merio | dhans: because you can set it in the widget options, to be passed to the google visualization constructor. But this is something for the option panel... I didn't know whether coding this now or after GSoC... I could do something basic now | 11:18 |
Merio | dhans: do you feel there are more urgent tasks? Apart from looking for browser side templates I feel not, so I could do something.. what do you think? | 11:19 |
dhans | Merio: so this is possible to set width/height by passing them to chart options in the constructor? | 11:19 |
dhans | Merio: I do not feel that the option panel is so important right now | 11:20 |
Merio | dhans: yes, but this is something different between normal visualizations and imagechart visualizations | 11:20 |
Merio | dhans: have a look at the following lines | 11:20 |
Merio | dhans: because I already do set the widths | 11:21 |
dhans | Merio: which lines? | 11:21 |
Merio | dhans: melange.graph.chart.js => line 417, 426, 429 | 11:21 |
Merio | dhans: something I need to fix, and going to fix if I find something sensible to do | 11:22 |
Merio | dhans: if you see, on line 426 and 429 height and width are set in the visualization_options, which is passed to the constructor on line 435 | 11:23 |
Merio | dhans: for ImageChart that's something slightly different, because width and height are to be passed the Image Chart API way, in the chs option widthxheight format | 11:23 |
dhans | Merio: right | 11:23 |
Merio | dhans: you could see that on line 417 | 11:23 |
Merio | dhans: we really need to simplify all that JS/HTML tangled code in some way.. i hate it | 11:25 |
dhans | Merio: I don't care, but it could look better :) | 11:26 |
Merio | dhans: I'm going to explore BST systems further, wanna find a solution | 11:26 |
Merio | dhans: well, because you know more or less what the code does | 11:26 |
Merio | dhans: but if you don't know what it does it's very difficult to figure out what happens | 11:27 |
dhans | Merio: indeed :) | 11:27 |
Merio | dhans: and if we're going to produce more JS code in the future... then it would be painful and a sort of a mess, as coding Melange in Python without using Django | 11:28 |
Merio | dhans: I really would like Dojo instead of jQuery, but it's a personal opinion :P | 11:28 |
dhans | Merio: I've never worked with Dojo, so cannot compare | 11:29 |
Merio | dhans: actually Dojo is more comprehensive, and while the beauty of jQuery is the extendibility and the vast choice of plugins, Dojo is extendible as well, but is more "organized". For example it has Java-like packaging system built in to resolve dependencies between scripts | 11:30 |
Merio | dhans: in this very moment we had to hard code dependencies in Python, which is not manageable in the same way | 11:31 |
Merio | dhans: furthermore, there is built in inheritance system, that works really well | 11:31 |
dhans | Merio: yes it is worse | 11:32 |
Merio | dhans: well, I could write tons of words comparing the two.. there are advantages and drawbacks, but to me Dojo helps to design Ajax applications better | 11:32 |
Merio | dhans: Stopping ramblings now :D | 11:32 |
dhans | Merio: does the dojo have such libraries like dragable or sortable? | 11:33 |
*** arvind_khadri has joined #melange | 11:34 | |
Merio | dhans: yep, drag and drop is built-in in the core package | 11:34 |
Merio | dhans: well to be fair is in an optional package, but referring to the core | 11:35 |
dhans | Merio: I do have to check it out :) | 11:35 |
Merio | dhans: http://dojotoolkit.org/projects/core | 11:35 |
tpb | Title: The Dojo Core | The Dojo Toolkit (at dojotoolkit.org) | 11:35 |
Merio | dhans: it also has i18n... and so on... plus the "dijit" and "dojox" stuff, which is a bunch of goodies like widgets and GUI controls | 11:36 |
Merio | dhans: not to mention the DTL package, which is a sort of Javascript porting of Django | 11:37 |
dhans | Merio: heh it *is* really comprehensive as you said ;-) | 11:37 |
Merio | dhans: I've found it unvaluable in my last year GSoC, although I didn't know how to use it at full power at that time :D | 11:38 |
dhans | Merio: before this GSoC I had barely know what jQuery is :P | 11:40 |
dhans | *known | 11:40 |
Merio | dhans: and now you're using it pretty well, that's the magic of GSoC (and of your dedication) :) | 11:41 |
dhans | Merio: yeah, thank you for all the help :) | 11:44 |
Merio | dhans: yw, thank you for Python tips as well :) | 11:48 |
dhans | Merio: yw :) | 11:49 |
Merio | dhans: During the conference call, IIRC Sverre has asked to put the code in our demo instance | 12:03 |
dhans | Merio: yes, I am working on that | 12:05 |
Merio | dhans: ok | 12:05 |
dhans | Merio: I've already deployed a new version, but to be honest, we do not have much data stored to show very interesting statistics :-P | 12:06 |
*** madrazr has joined #melange | 12:07 | |
*** ChanServ sets mode: +v madrazr | 12:07 | |
Merio | dhans: what can we do about it? I've just added some other image visualizations, please remember to put also these in the seed_db | 12:13 |
Merio | dhans: I mean IIRC there is no google image chart inside seed_db for statistics | 12:13 |
dhans | Merio: of course I will remember :-) | 12:13 |
Merio | dhans: great ^__^ | 12:14 |
dhans | Merio: yes, I am going to add it now | 12:14 |
Merio | dhans: (line 38-108 of melange.graph.chart.js) | 12:14 |
*** Lennie has joined #melange | 12:26 | |
*** ChanServ sets mode: +o Lennie | 12:26 | |
Lennie | hello | 12:45 |
dhans | Merio: ImageChartBar refers to http://code.google.com/apis/visualization/documentation/gallery/imagebarchart.html ? | 12:51 |
tpb | <http://ln-s.net/3tHe> (at code.google.com) | 12:51 |
Merio | Lennie: hello :) | 12:51 |
Lennie | hi Merio | 12:51 |
Merio | dhans: it refers to vertical bar chart => http://code.google.com/apis/visualization/documentation/gallery/genericimagechart.html | 12:52 |
tpb | <http://ln-s.net/3tHh> (at code.google.com) | 12:52 |
dhans | Merio: hmm it makes more sense :P | 12:53 |
Merio | dhans: there's a problem because sometimes there are proper visualizations made from image charts, sometimes you have to pass the proper image in the options to the generic ImageChart constructor | 12:53 |
Merio | dhans: this is a sort of a mess, I've noticed only now, and I prefer not to deal with it in this very moment, we should do a sort of proper classing of the visualizations types, which is not something to do 5 days before GSoC ending :P :P | 12:54 |
Merio | dhans: it's quite confusing, but perhaps I didn't catch the logic | 12:55 |
dhans | Merio: we distinguish between the types by cht? | 12:55 |
Merio | dhans: yes, for ImageCharts, as documented in that page | 12:56 |
dhans | Merio: ok thanks | 12:56 |
Merio | dhans: yw :) | 12:56 |
*** florinciu has quit IRC | 13:02 | |
dhans | Merio: For each visualization type I am always getting Line Chart :P | 13:08 |
*** MatthewWilkes has quit IRC | 13:21 | |
Merio | dhans: sorry didn't see the message | 13:45 |
dhans | Merio: np :) | 13:45 |
Merio | dhans: going to check :) | 13:45 |
dhans | Merio: it may be difficult to add support for Map Chart, so I will do it later | 13:51 |
Merio | dhans: why are you putting "default_options": {}? Is it a problem if void? | 13:52 |
dhans | Merio: yes | 13:53 |
dhans | Merio: line 455 | 13:53 |
dhans | Merio: there was a problem if visualization_options were undefined | 13:54 |
Merio | dhans: ok | 13:54 |
dhans | Merio: similar situation is with intensity map: they accept only ISO 3166 Country codes while we are sending country names in JSON responses | 13:54 |
Merio | dhans: similar situation comparing with what? | 13:55 |
dhans | Merio: Map Chart | 13:55 |
Lennie | hmm | 13:56 |
Lennie | demo me that :P | 13:56 |
Lennie | sounds good ^^ | 13:56 |
dhans | Lennie: I am finishing working on setting up visualization options for each statistic, so expect it soon :) | 13:57 |
Lennie | ^^ | 13:57 |
Merio | dhans: ah ok.. so we should put ISO 3166 country codes in the seed_db along with domain identifiers | 13:57 |
dhans | Merio: rather in countries.py | 13:58 |
Merio | dhans: here visualizations change | 13:58 |
Merio | dhans: ops pardon, I meant countries.py :D | 13:58 |
dhans | Merio: but the problem is that for some visualizations we need names and codes for the others | 13:58 |
Merio | dhans: sounds interesting :P | 13:59 |
dhans | Merio: so it'd be the best to have something like half-cooked jsons | 13:59 |
*** MatthewWilkes has joined #melange | 13:59 | |
dhans | Merio: "here visualizations change" -> where? | 14:00 |
Merio | dhans: sure, but I'm afraid we can't miss the maps | 14:00 |
Merio | dhans: in my box, if I change the visualizations I get different visualizations, not always line chart | 14:00 |
dhans | Merio: so for Students Per Degree (all) ImageChartBar you get the vertical chart bar? | 14:01 |
dhans | Merio: because for all "Image" visualizations I get always line chart | 14:01 |
Merio | dhans: can't we do a momentary half-ugly hack to have different statistics, one for table/piechart and one for maps? | 14:01 |
dhans | Merio: probably something like this will work | 14:02 |
Merio | dhans: with Bar Chart (I) I get vertical bar charts, with Pie Chart (I) I get pie chart | 14:02 |
Merio | dhans: 3D pie chart works as well | 14:02 |
Merio | dhans: even if I don't have a clue why the labels are out of the visualization | 14:03 |
Merio | dhans: it's not a problem of width, even copying and pasting the URL gives the same stuff... need to check it | 14:03 |
dhans | Merio: ok, you are right :P | 14:03 |
Merio | dhans: about what... labels or visualization switch working? :) | 14:03 |
dhans | Merio: I was checking on /statistic/visualize page and there I am always getting Line Chart. Strange :P | 14:04 |
dhans | Merio: about visualizations switch | 14:04 |
Merio | dhans: do you want me to check it? | 14:05 |
dhans | Merio: I think I know what is wrong now. If I have some problems, I'll ping you. But thank you :-) | 14:08 |
Merio | dhans: that's ok | 14:08 |
*** arvind_khadri has quit IRC | 14:20 | |
*** dhaun has joined #melange | 14:54 | |
*** dhans has quit IRC | 14:54 | |
*** Lennie has quit IRC | 15:29 | |
*** Lennie has joined #melange | 15:33 | |
*** ChanServ sets mode: +o Lennie | 15:33 | |
*** Lennie has quit IRC | 15:44 | |
*** ajuonline has joined #melange | 16:00 | |
*** Lennie has joined #melange | 16:45 | |
*** ChanServ sets mode: +o Lennie | 16:45 | |
*** dhans has joined #melange | 17:19 | |
*** ChanServ sets mode: +v dhans | 17:19 | |
*** dhans has quit IRC | 17:24 | |
*** dhans has joined #melange | 17:31 | |
*** ChanServ sets mode: +v dhans | 17:31 | |
*** dhaun has quit IRC | 17:32 | |
*** dhans has quit IRC | 18:49 | |
*** dhans has joined #melange | 18:55 | |
*** ChanServ sets mode: +v dhans | 18:55 | |
*** madrazr has quit IRC | 18:57 | |
*** dr__house has quit IRC | 19:20 | |
*** mithro has quit IRC | 20:11 | |
*** Merio has quit IRC | 20:20 | |
*** MatthewWilkes has quit IRC | 20:22 | |
*** mithro has joined #melange | 20:34 | |
*** ChanServ sets mode: +v mithro | 20:34 | |
*** Lennie has quit IRC | 21:08 | |
*** dhans has left #melange | 21:16 | |
*** dhans has joined #melange | 21:43 | |
*** ChanServ sets mode: +v dhans | 21:43 | |
*** dhans has left #melange | 21:43 | |
*** tansell--laptop has quit IRC | 23:24 | |
*** Lennie has joined #melange | 23:28 | |
*** ChanServ sets mode: +o Lennie | 23:28 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!