Coder Social home page Coder Social logo

Comments (6)

ankane avatar ankane commented on May 7, 2024

Hey Justin, I was hoping to keep the first few examples concise. Does the "Data" section help at all?

from chartkick.

jcollum avatar jcollum commented on May 7, 2024

Yeah, it did. I found it a while later and just came back here to update. I'd start with the most basic example first though, when you're bringing in new things and run into problems you need to simplify first to troubleshoot.

Thanks for the prompt response!

from chartkick.

jcollum avatar jcollum commented on May 7, 2024

Oh and for some reason I had to restart my rails dev server to get Rails to build even a simple pie chart. Worth adding to your walkthrough?

from chartkick.

ankane avatar ankane commented on May 7, 2024

I'll see what I can do to make it simpler. Just FYI, you'll need to restart your Rails server after installing any gem. I appreciate you taking the time to let me know your experience. I can see these slight changes being very helpful to other beginners.

from chartkick.

caseydierking avatar caseydierking commented on May 7, 2024

Hey I would love to chime in on this. I've gotta say I'm just a bit confused too with the examples. Some of them work out of the box perfectly.

I particularly LOVE how this one looks.
<%= line_chart @goals.map{|goal|
{:name => goal.name, :data => goal.feats.group_by_week(:created_at).count }
} %>

But its a bit confusing because I can't seem to get it to work after changing the instance variables to what I have in my app. I've installed the groupdate gem but would love to know how to get the desired results that you have.

I apologize, I am a rails beginner. But is it possible to use this and single out 3 separate columns from one table and display them on the graph and show the name of the column?

from chartkick.

ankane avatar ankane commented on May 7, 2024

Cleaning up issues

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.