Show HN: Create Javascript charts with one line of Ruby
31–40 of 64 posts
Re: Show HN: Create Javascript charts with one line of Ruby
#32Earlier quoted context omitted.
The ruby wrapping lib supports AJAX out of the box by passing a URL or route path to the helper and returning JSON from that endpoint.
Well, well, mccolin replying to akane, long live Context Optional. And nice work akane.
Re: Show HN: Create Javascript charts with one line of Ruby
#33Re: Show HN: Create Javascript charts with one line of Ruby
#34Re: Show HN: Create Javascript charts with one line of Ruby
#35Assuming 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.
Re: Show HN: Create Javascript charts with one line of Ruby
#36The ruby wrapper lib around the JS is dead simple. Could be ported to any language with ease. Very nice work! https://github.com/ankane/chartkick/blob/master/lib/chartkic...
(Disclosure: I am the developer of RazorFlow, and am only posting here because I feel it's relevant to this particular story)
Re: Show HN: Create Javascript charts with one line of Ruby
#37Earlier quoted context omitted.
"Beautiful charts with 1 line of ruby" "This looks nice, but most of the hard work is done elsewhere." What were you expecting?
The title seems to lead on that it's possible to create beautiful charts with just one line of Ruby, when really it's 'Create beautiful charts with just one line of Ruby (if you use these libraries).' The original title is 'Create beautiful Javascript charts with one line of Ruby', which is more accurate.
Re: Show HN: Create Javascript charts with one line of Ruby
#38Time to go back and refactor...
Re: Show HN: Create Javascript charts with one line of Ruby
#39If you want to "AJAX" an image onto the page after the initial page load, why not just use an tag? You may be surprised to learn that it's even part of the HTML spec! I was pretty surprised when I got to the ChartsController and saw it returning JSON. Seems like the hard way to go about it. I just assumed it was generating SVGs.
Why should the controller be generating graphics? The UI can do that.
Re: Show HN: Create Javascript charts with one line of Ruby
#40Earlier quoted context omitted.
"Beautiful charts with 1 line of ruby" "This looks nice, but most of the hard work is done elsewhere." What were you expecting?
The title seems to lead on that it's possible to create beautiful charts with just one line of Ruby, when really it's 'Create beautiful charts with just one line of Ruby (if you use these libraries).' The original title is 'Create beautiful Javascript charts with one line of Ruby', which is more accurate.