If I were you I would reverse the focus and make it a JavaScript library with helpers for various languages.
Show HN: Create Javascript charts with one line of Ruby
51–60 of 64 posts
Re: Show HN: Create Javascript charts with one line of Ruby
#52I wasn't going to click on this as I don't use Ruby very often, but I'm glad I did as it's mostly JavaScript with a ruby helper! If I were you I would reverse the focus and make it a JavaScript library with helpers for various languages.
Re: Show HN: Create Javascript charts with one line of Ruby
#53Re: Show HN: Create Javascript charts with one line of Ruby
#54Re: Show HN: Create Javascript charts with one line of Ruby
#55Re: Show HN: Create Javascript charts with one line of Ruby
#56Earlier quoted context omitted.
it'd be nice to get a heads up that this was dependent on using a SQL database.
It's not dependent on SQL. @pixel.hits is returning an Array, and there is no method group for Array in Ruby. You could try group_by if you really want to group an Array, or use the Mongoid syntax for grouping.
http://stackoverflow.com/questions/4732393/ordering-and-grou...
What you're referring to?
Re: Show HN: Create Javascript charts with one line of Ruby
#57Re: Show HN: Create Javascript charts with one line of Ruby
#58Assuming the data for the graph shown is the dots, then the lines between them should be straight, not curved, because othrwise the graph is pretending to have higher accuracy than it actually has, which is a lie.
it's called interpolation.
Re: Show HN: Create Javascript charts with one line of Ruby
#59Can the charts be customized?
Re: Show HN: Create Javascript charts with one line of Ruby
#60Earlier quoted context omitted.
It's not dependent on SQL. @pixel.hits is returning an Array, and there is no method group for Array in Ruby. You could try group_by if you really want to group an Array, or use the Mongoid syntax for grouping.
Is this: http://stackoverflow.com/questions/4732393/ordering-and-grou... What you're referring to?
Hopefully someone else can speak to this.