Data Visualization can help drive home a point and make trends easier to spot. Check out this great tool that will make your life so much simpler.
Visualizing data online can help drive home a point, make trends easier to spot, and give more context about the data. Reading a list of numbers can be boring, but luckily there are a lot of options to add dynamic data visualization to your website to not only bring clarity to the meaning behind the data, but do so in a visually appealing way.
I was working on an exciting internal tool for Social Driver that captured a lot of data that I wanted the team to be able to process easily. I knew where I was starting from (a boring page), and I knew where I wanted to go (a page filled with meaningful charts and graphs), but the route to get from one point to another seemed needlessly long and overly complicated. There should be a simple solution to this problem. Simple solutions are solutions with the least moving parts. The more parts you have, the more items you have to keep from breaking.
So I took to Google. There had to be a simple way I could create charts using Ruby! I spent some time reading about Highcharts, which is a fabulous library of interactive data representations, but is not free. I read about Google Charts, which has a lot of the same capabilities of Highcharts, but is available for free. Since I was going for simple and cost-effective ways of visualizing dynamic data, Google Charts was a perfect fit. But how to integrate it with my application quickly?
Ruby gems are open-source libraries of code that you can add into your core Ruby library to expand functionality. If you are running into a problem in Ruby, there’s usually a gem to help you out. I came across a Ruby gem called “Chartkick.” Chartkick can work with both Highcharts and Google charts to create dynamic interactive charts that draw data directly from whichever database you are using with your Rails application. Better yet, it does it with one line of Ruby code.
You can then use the helper methods to specify which type of chart or graph you want, and put in the appropriate ActiveRecord query.
If you want to create charts and graphs easily in your web application, you can use Chartkick to access the Google Charts and Highcharts libraries with a small amount of set up. Going forward, a data visualization can quickly be added to any project I am working on. A chart or graph can be added to help drive home a point or emphasis how important the data is.
— B'more on Rails (@bmoreonrails) May 13, 2015
Want to hear more about the technical side of using Chartkick and customizing it for your brand? Two Drivers gave a talk on the subject at B’more on Rails on Tuesday May 12th, 2015. Check out the presentation slides here.
Options: Facbeook, Twitter, Linkedin, Pinterest...