CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Google Summer of Code »
  • Data Visualization Day by Day
Pages: 1 2 [3]

Author Topic: Data Visualization Day by Day  (Read 5162 times)

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: Data Visualization Day by Day
June 08, 2014, 10:42:32 am
Hey. Its been 2-3 days since I last posted an update. I added an event page which is under development and needs some improvement. This page basically has an overview of information regarding events and their participants.
The information include
  • Type of Event
  • Duration of Event
  • Whether a past event or upcoming[\li]
    • Participant Status[\li]
    I am trying to create a dataviz particularly for an event. Which will further focus on participation. I will also add comparison option for the same. If you can help me with a dataset which uses events extensively that will be great.

    Thanks, looking forward to write my first blogpost soon.
Sid
DataViz Project, GSoC 2014

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: Data Visualization Day by Day
June 17, 2014, 12:37:13 pm
Hey, Its been a while that i posted over here. I sincerely apologize for the same and hope that posts will be more frequent in the coming time. The past week was mostly spent in redoing the events page. After discussion with Xavier, we came to a conclusion that a lot of things can be included in that page making it much more interesting, and after one week of work trust me it does.

The events page now have the following dataviz
  • Counts of Past, Current and Upcoming Events
  • A monthly barchart showing event over time.
  • A monthly distribution of participants per event - using a stacked line chart
  • A pie showing event type
  • A rowchart showing day of week
  • Whether the event is monetory or not

In the end we have put a table with list of events which link to a dataviz for particular event. This event Data viz showing demographics and all is currently in our agenda. 

For event page. What I am looking for is
  • Partcipation Timeline
  • Demographic of participants
  • MOney Collected

Also tried to work on number-display widget of dc.js. Lets hope to contribute more to it.
Sid
DataViz Project, GSoC 2014

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Data Visualization Day by Day
June 17, 2014, 11:41:22 pm
two discussions related to the extension (the extracting data part of it)

http://forum.civicrm.org/index.php/topic,33165.0.html
http://forum.civicrm.org/index.php/topic,33196.0.html

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: Data Visualization Day by Day
June 18, 2014, 02:50:50 pm
Today, I spent most of the time adding a feature to two dc.js widgets. I have sent a pull request for the same, lets hope what I have done is actually useful.

Now, the other thing I have been spending time on was the blog. Its done, and I will post it tomorrow after a short review by Xavier.
Sid
DataViz Project, GSoC 2014

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: Data Visualization Day by Day
June 23, 2014, 04:53:13 am
Here is an update for the last 2 days. I have completed the blog, got it reviewed from Xavier as well. Is waiting for the blogging permission.

Also, I have noticed two bugs in civicrm website. One is with the login button redirecting you to home page(can be a feature as well). The other is the search icon in chrome is not at its right position. I dont know where the code is as I can surely help solving it.

I also read about APIs and how smarty templates handle request. Trying to understand most about templating sql queries.
Sid
DataViz Project, GSoC 2014

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Data Visualization Day by Day
June 26, 2014, 06:07:05 am
Hi,
How the login is handled isn't civi but the CMS (drupal in your case).
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: Data Visualization Day by Day
June 26, 2014, 06:25:49 am
Hi Xavier, I was talking about the main civi website. Though the login is handled by drupal, clicking login on any page redirects you to home first and then log in.
Sid
DataViz Project, GSoC 2014

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: Data Visualization Day by Day
June 30, 2014, 08:29:56 am
Hi, I have not been well in the past few days. I am recovering and today I have started working again. I will be working on writing dc.js specs today. Once they are there and the PR gets accepted I will update the dc.js in the repo and I hope everyone in the community who is already using the software is fine with it.

The main work I am taking up for this week is to get a system working for extracting data, I have been following the other two discussions. I will also write documentation on how the data can be extracted. Once this is done I will continue on Single Event Dataviz.
Sid
DataViz Project, GSoC 2014

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: Data Visualization Day by Day
July 05, 2014, 11:56:46 am
Hi,

I hope all of you following this topic are doing well. I have an update regarding the data retrieval system for civisualize. The system till now used to accept just one parameter using url that was can be accessed in template as $id. It was nothing but any string that was in the url after the template name. So if we put our url as ../civicrm/dataviz/contacts/4, $id was assigned the value of 4.

Also we had no particular way of passing variables to a SQL query. I and xavier, after going through the topics http://forum.civicrm.org/index.php/topic,33165.0.html and http://forum.civicrm.org/index.php/topic,33196.0.html and a lot of discussion decided that what we want can be achieved with the help of just two smarty functions.

The function we created was
Code: [Select]
{crmRetrieve var="" name="" type=""} which uses
Code: [Select]
CRM_Utils_Request::retrieve() this is basically to retrieve data from the url.

The second function we modified was our {crmSQL} which now accept JSON files of the following format
abc.json =
Code: [Select]
{"query":"SELECT * from abc where a=%1 group by %2", "params":{"1":{"name":"a","type":"Integer"},"2":{"name":"b","type":"String"}}}
now to run this what we need to do is

Code: [Select]
{crmSQL json="abc" a="2" b="hello"}
Hope these functions will solve a lot of issues and act as a better framework for developers who would want to make their own dataviz. Suggestions and Feedback will be appreciated.
Sid
DataViz Project, GSoC 2014

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: Data Visualization Day by Day
July 25, 2014, 07:09:02 am
Hi Guys, I know its been a while since I have posted an update, but let me update you with what all we have done in the past two weeks. I was working on a event page which could show demographics of a particular event. This basically includes the details about the event, currently
  • Title
  • Type
  • Start and End Date
  • Registration Dates
I am trying to primarily focus on participants and their demographics in this dataviz. The things I am currently working on are
  • Gender of the participant
  • Source
  • Regitration Time in comparison to deadline
  • Money
  • Their status

I further plan to allow users to go ahead and change the status if they have admin rights for the same. Can you guys please suggest me what all in your opinions should be included in the demographics of participants.

You can check out the event branch on https://github.com/siddharthg/civisualize. I am only pushing the code which does not break anything, so you can go ahead and try it.
Sid
DataViz Project, GSoC 2014

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: Data Visualization Day by Day
August 07, 2014, 10:31:12 pm
Hi guys,

I finally have a per event page describing demographics of the user that cab be accessed from civicrm/dataviz/event/<event_id>. Please suggest what all can be added to this.

The next plan is to create a viz for donor trends(https://github.com/micahflee/org.eff.donortrends). Just mentioning my plans for this Visualization,

Instead of using the Donor Trends extension, I think doing it in Civisualize itself is a better idea, that ways we can use crmSQL function or maybe create a new crmDonor function.

This will also keep everything at one place, which according to me will be better, as developers can than refer to different type of visualization, not just the viz created with tpl file but the viz created using their own separate php file.

Donor Trends ask users to choose a base year. As our dataviz needs to be general, can we have any other way apart from asking the users to choose a year.

I want suggestion on accessing the data as one way can be access it all using javascript only.
Sid
DataViz Project, GSoC 2014

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: Data Visualization Day by Day
August 17, 2014, 03:38:13 am
I think that using the api explorer to find what the jQuery for the API calls should be is your best bet.

I'd like to see visualisation by:
Gender
Custom fields
Contact sub type
Tags/Groups
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

s0014

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.37
  • PHP version: 5.5.9
Re: Data Visualization Day by Day
August 17, 2014, 10:20:45 am
Hi John,

For donor trends, we have added age, a trends graph, gender graph and a table with list of all donations.
Please checkout the http://github.com/TechToThePeople/civisualize for the donortrends visualization.
Sid
DataViz Project, GSoC 2014

Pages: 1 2 [3]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Google Summer of Code »
  • Data Visualization Day by Day

This forum was archived on 2017-11-26.