Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

c3-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c3-rails

  • 0.4.18
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

c3-rails

c3 is a D3-based reusable chart library that enables deeper integration of charts into web applications.

c3-rails provides c3 for Rails 4 (it might work with Rails 3)

Installation

To install, add the following line to your Gemfile:

gem 'c3-rails'

Then add these to their respective file:

app/assets/javascripts/applications.js:

//= require c3

app/assets/stylesheets/applications.css:

*= require c3

Now you've included c3 into your rails project.

But wait, there's more!

Dependency: D3

c3 requires D3 which c3-rails does not include, to get D3 installed try one of the following gems:

or you could copy d3.js to your assets/javascripts manually.

Now c3 is ready to be used on any pages that have assets handled by rails asset pipeline.

Versioning

This gem now follows the version of c3 being included.

So version 0.2.5 of this gem will provide c3 at version 0.2.5.

Install using git submodule

If you wish to have access to all of c3's source files you can install by putting this line in the Gemfile instead:

gem 'c3-rails', :git => 'https://github.com/SunnyLi/c3-rails', :submodules => true

Then you'll be able to include files like

    //= require c3/c3
    //= require c3/c3.min
    //= require c3/extensions/js/c3ext

    *= require c3/c3
    *= require c3/c3.min
    *= require c3/htdocs/css/bootstrap.min

This is just an example, not that you would ever want to include bootstrap into your project this way..

License

Both c3 and c3-rails are licensed under the MIT license

FAQs

Package last updated on 13 Oct 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc