🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

rbgct

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rbgct

bundlerRubygems
Version
0.2.1
Version published
Maintainers
1
Created
Source

RbGCT - Ruby Google Chart Tools

because charting should be a pleasure!

$ gem install rbgct

Implemented Classes

  • LineChart
  • PieChart

TODO

way too much!

  • Add Specs
  • Add Documentation
  • Implement More :chart_options
  • Fix Known Bugs
  • Implement:
    • Annotated Time Line
    • Area Chart
    • Bar Chart
    • Candlestick Chart
    • Chart Editor
    • Chart Wrapper
    • Column Chart
    • Combo Chart
    • Gauge
    • Geo Chart
    • Geo Map
    • Image Chart
    • Image Area Chart
    • Image Bar Chart
    • Image Candlestick Chart
    • Image Line Chart
    • Image Pie Chart
    • Intensity Map
    • Motion Chart
    • Org Chart
    • Scatter Chart
    • Sparkline
    • Table
    • Tree Map

LineChart

SampleData = Struct.new(:date, :values)
fantasy_data = (0..100).to_a.map {|i| SampleData.new((Time.now + 60*5*i).strftime("%H:%M"), rand(500)) }

Rbgct.render(fantasy_data,{
	:type     => :line_chart, 
	:x_method => :date, 
	:y_method => :values,
	:x_label  => :time,
	:y_label  => :transactions,
	:chart_options =>{
	  :width => 1600,
	  :height => 600,
	  :dom_id => 'transactions_linechart',
	  :curve_type => 'function'
}})

LineChart in Google Beauty

LineChart RbGTC

PieChart

SampleDataPieChart = Struct.new(:label, :value)
fantasy_data = ['OSX', 'WIN', 'LINUX'].map{ |os| SampleDataPieChart.new(os,rand(99999999))}

Rbgct.render(fantasy_data, {
	:type => :pie_chart,
	:name => :label,
	:value => :value,
	:name_label => 'Type',
	:value_label => 'Installations',
	:chart_options =>{
	  :width => 600,
	  :height => 600,
	  :dom_id => 'graph',
	  :is_3d => true,
	  :title => "Operating Systems Installations (2012)"
  }
})

PieChart in Google Beauty

PieChart RbGTC

FAQs

Package last updated on 15 Nov 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts