Socket
Book a DemoInstallSign in
Socket

pi_charts

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pi_charts

1.0.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Pi Charts

Pi Charts is a ruby gem to easily generate beautiful charts using chartjs 📈◕📊◔📉🍩

⚠️ This gem is install in development. Things may change to be better in the future.

Usage

Pi Charts is a really good pair with something like sinatra, for example:

require 'sinatra'
require 'pi_charts'

def bake_pie
  chart = PiCharts::Pie.new
  chart.add_dataset(label: "cats", data: 80)
  chart.add_dataset(label: "dogs", data: 50)
  chart.hover
  chart.responsive
  "<head>" + chart.cdn + "</head>" + "<body>" + chart.html(width: 60) + "</body>"
end

get('/serve_pie') { bake_pie }

Screen Shots

fresh pie

bar

line

License

The gem is available as open source under the terms of the MIT License.

Author

Kent 'picat' Gruber

FAQs

Package last updated on 19 Feb 2017

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.