Skip to content(if available)orjump to list(if available)

Creating beautiful charts with JRuby and JFreeChart

npongratz

> 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

tasuki

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

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

Title needs a correction: Hideous charts with JRuby and JFreeChart.

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.