Giter Site home page Giter Site logo

ytbryan / chart Goto Github PK

View Code? Open in Web Editor NEW
42.0 42.0 2.0 42.3 MB

๐Ÿ“Š๐Ÿ“‰ Add beautiful and reusable charts with one line of ruby for Rails 5.x

Home Page: https://rubygems.org/gems/chart

License: MIT License

Ruby 99.76% Shell 0.24%
chart chartjs google-charts highcharts nvd3 rails

chart's Introduction

Hi there ๐Ÿ‘‹

chart's People

Contributors

ytbryan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chart's Issues

Option for stacked bar chart

I am using this gem (chart js) for my generating radar and bar charts on pdf. It works great. However, I couldn't find the option for stacked bar chart. Are they included in the gem?

I'm looking for this chart:

image

Currently, this is the chart I have generated.

image

I tried to look for alternative such as chart-js-ror. It has the stacked bar chart option but rendering pdf causes a lot of issues, particularly label inconsistency and responsive problems. And also the pdf generated has some blurred lines. Just wonder if there's such option and sharper image for the chart in this gem. Thanks.

Data example for Radar?

Hello, sample data renders JS error on radar types.

nvd3.self-f952d22d517e888c44e6bf49a58aba336ffdf6b306e978fd396e050150df4ea2.js?body=1:22 Uncaught ReferenceError: d3 is not defined
    at nvd3.self-f952d22d517e888c44e6bf49a58aba336ffdf6b306e978fd396e050150df4ea2.js?body=1:22
    at nvd3.self-f952d22d517e888c44e6bf49a58aba336ffdf6b306e978fd396e050150df4ea2.js?body=1:15425
(anonymous) @ nvd3.self-f952d22d517e888c44e6bf49a58aba336ffdf6b306e978fd396e050150df4ea2.js?body=1:22
(anonymous) @ nvd3.self-f952d22d517e888c44e6bf49a58aba336ffdf6b306e978fd396e050150df4ea2.js?body=1:15425
chart.self-fd14d3b9af2040b3f73dce5df87d357f24b5df47af973d28fbc5d9a4b39ae8b9.js?body=1:3587 Uncaught TypeError: Cannot read property '0' of undefined
    at ChartType.buildScale (chart.self-fd14d3b9af2040b3f73dce5df87d357f24b5df47af973d28fbc5d9a4b39ae8b9.js?body=1:3587)
    at ChartType.initialize (chart.self-fd14d3b9af2040b3f73dce5df87d357f24b5df47af973d28fbc5d9a4b39ae8b9.js?body=1:3470)
    at ChartType.Chart.Type (chart.self-fd14d3b9af2040b3f73dce5df87d357f24b5df47af973d28fbc5d9a4b39ae8b9.js?body=1:915)
    at new ChartType (chart.self-fd14d3b9af2040b3f73dce5df87d357f24b5df47af973d28fbc5d9a4b39ae8b9.js?body=1:1150)
    at Chart.<computed> [as Radar] (chart.self-fd14d3b9af2040b3f73dce5df87d357f24b5df47af973d28fbc5d9a4b39ae8b9.js?body=1:1178)
    at 123:119

I am using a copy paste from the sample data.
Where can i get information on how to build the JSON object needed to generate the Radar graph?
Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.