TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Creating beautiful charts with JRuby and JFreeChart

67 pointsby headius21 days ago

11 comments

tasuki19 days ago
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...
评论 #43864726 未加载
评论 #43863952 未加载
nritchie19 days ago
Being able to add an interpreted script engine to a Java application is a super-power for some uses. I embedded a Jython (Python in the JVM) command line into a Java Swing app to provide a level of flexibility that I never could with a GUI. Every time I look at JRuby I wonder if Jython was the right choice. It is too late now but JRuby looks awfully nice.
评论 #43867778 未加载
brightball19 days ago
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.<p>Ruby already has a pretty incredible gem ecosystem but having all things Java available too really adds tremendous utility.<p>Love JRuby. Thanks for all of the hard work headius!
npongratz19 days ago
&gt; Everyone loves pie!<p>Oh gosh, no! Count me among those who greatly dislike pie charts in almost every context.<p>&quot;Almost never use a pie chart for data&quot;<p><a href="https:&#x2F;&#x2F;theconversation.com&#x2F;heres-why-you-should-almost-never-use-a-pie-chart-for-your-data-214576" rel="nofollow">https:&#x2F;&#x2F;theconversation.com&#x2F;heres-why-you-should-almost-neve...</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38912534">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38912534</a>
评论 #43864696 未加载
评论 #43865834 未加载
rorylaitila19 days ago
JFreeChart is quite the throwback! Modern JavaScript chart libraries are much better for our users however. On the JVM, I&#x27;ve been successful running JS with GraalJS for the backend. We run GraalJS for <a href="https:&#x2F;&#x2F;docs.chartsql.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.chartsql.com&#x2F;</a> with the output being Apache ECharts (<a href="https:&#x2F;&#x2F;echarts.apache.org&#x2F;en&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;echarts.apache.org&#x2F;en&#x2F;index.html</a>) for the browser. ECharts can generate SVG server side also, though I haven&#x27;t tested it in production.
sabslikesobs19 days ago
Very cool. I&#x27;m one of the few (it seems) who likes these styles of chart, so that was a nice surprise.<p>I love Ruby, and one of my few qualms about using it is that it doesn&#x27;t really have any cross-platform GUI libraries. Someday I&#x27;ll try building one in JRuby...
dismalaf19 days ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;ruby-numo&#x2F;numo-gnuplot">https:&#x2F;&#x2F;github.com&#x2F;ruby-numo&#x2F;numo-gnuplot</a><p>There&#x27;s always good &#x27;ol Gnuplot and it&#x27;s many wrappers... This one looks nice.
codr719 days ago
One word, Tufte; read them all, then read them again.
headius21 days ago
Why use C, Python, or JavaScript to generate charts for your Ruby applications? Use JRuby and it&#x27;s so much easier!
评论 #43863912 未加载
knowitnone19 days ago
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!
评论 #43863675 未加载
评论 #43863966 未加载
评论 #43865079 未加载
gitroom19 days ago
tbh those old 3d charts just crack me up - i remember seeing stuff like that in early office programs. you ever feel like some trends just stick around for way too long even when better stuff exists?