[HN Gopher] Creating beautiful charts with JRuby and JFreeChart
___________________________________________________________________
Creating beautiful charts with JRuby and JFreeChart
Author : headius
Score : 29 points
Date : 2025-04-30 20:30 UTC (1 days ago)
(HTM) web link (blog.headius.com)
(TXT) w3m dump (blog.headius.com)
| headius wrote:
| Why use C, Python, or JavaScript to generate charts for your Ruby
| applications? Use JRuby and it's so much easier!
| mberning wrote:
| Thank you for all your work on JRuby. I love it.
| npongratz wrote:
| > Everyone loves pie!
|
| Oh gosh, no! Count me among those who greatly dislike pie charts
| in almost every context.
|
| "Almost never use a pie chart for data"
|
| https://theconversation.com/heres-why-you-should-almost-neve...
|
| https://news.ycombinator.com/item?id=38912534
| knowitnone wrote:
| article complains about a ruby gem(Charty) calling a python
| library(matplotlib) yet author is running Ruby in Java so they
| can access some Java library!
| vidarh wrote:
| I don't even like Java/JVM, and I still think that is more
| reasonable than running a gem that embeds Python.
| brightball wrote:
| The Ruby code is already running on the JVM so utilizing the
| library isn't calling out to another runtime to execute like
| you normally would have to in order to do something like this.
| dismalaf wrote:
| https://github.com/ruby-numo/numo-gnuplot
|
| There's always good 'ol Gnuplot and it's many wrappers... This
| one looks nice.
| tasuki wrote:
| Wow, the first chart on that web page is really, really ugly. It
| has these weird 3-d effects that look like from 2001. All it's
| missing are reflections...
| omneity wrote:
| I read your comment first and was like it can't be that bad. I
| then opened the page, scrolled frantically down and boy oh boy
| were you right.
| specproc wrote:
| Title needs a correction: Hideous charts with JRuby and
| JFreeChart.
| brightball wrote:
| That's really impressive! Not the chart itself, but seeing how
| easy it is to use any existing Java library from within a Ruby
| codebase is super cool.
|
| Ruby already has a pretty incredible gem ecosystem but having all
| things Java available too really adds tremendous utility.
|
| Love JRuby. Thanks for all of the hard work headius!
___________________________________________________________________
(page generated 2025-05-01 23:00 UTC)