GithubHelp home page GithubHelp logo

Add sparklines (feature) about chartkick HOT 5 CLOSED

ankane avatar ankane commented on May 2, 2024
Add sparklines (feature)

from chartkick.

Comments (5)

ankane avatar ankane commented on May 2, 2024

I don't use sparklines in any of my current projects but feel free to take a stab at it. You'll just need to implement these three functions.

https://github.com/ankane/chartkick.js/blob/94d3eee9921fe24d66c0738e6d220eab6a702b0a/chartkick.js#L121

from chartkick.

StephenOTT avatar StephenOTT commented on May 2, 2024

@AAANDRE @ankane was this functionality ever added?

from chartkick.

StephenOTT avatar StephenOTT commented on May 2, 2024

@AAANDRE A quick way to get this functionality is to use gChart gem.

    def produceSparklineChart(data)
            return chartURL = Gchart.sparkline(
            :data => data.values,
            :size => '80x20'
            )
    end

In my case the data was a Hash with Dates and Values

from chartkick.

andreimoment avatar andreimoment commented on May 2, 2024

Thank you!

On Sun, Oct 20, 2013 at 1:25 PM, Stephen Russett
[email protected]:

@AAANDRE https://github.com/aaandre A quick way to get this
functionality is to use gChart gem.

def produceSparklineChart(data)
        return chartURL = Gchart.sparkline(
        :data => data.values,
        :size => '80x20'
        )
end


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-26681758
.

from chartkick.

ankane avatar ankane commented on May 2, 2024

Cleaning up issues. jQuery Sparklines is a great library for this.

from chartkick.

Related Issues (20)

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.