Creating beautiful charts with JRuby and JFreeChart
11 comments
·April 30, 2025tasuki
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...
brightball
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!
headius
Why use C, Python, or JavaScript to generate charts for your Ruby applications? Use JRuby and it's so much easier!
mberning
Thank you for all your work on JRuby. I love it.
knowitnone
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
I don't even like Java/JVM, and I still think that is more reasonable than running a gem that embeds Python.
brightball
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
https://github.com/ruby-numo/numo-gnuplot
There's always good 'ol Gnuplot and it's many wrappers... This one looks nice.
> 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