Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8001923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:13:28+00:00 2026-06-04T16:13:28+00:00

Is there a library to generate same charts for the same data, both in

  • 0

Is there a library to generate same charts for the same data, both in Java and Javascript?

My task is both:

  • display some flashy dynamic chart in a browser, better with dynamic tooltips, zooming and so on (I’m thinking Javascript here)
  • and generate the same (or similar enough) charts on server side, in Java, for automatically sending them in emails (no browser at all in this scenario).

I’d like to avoid Flash for iPhone interoperability.

There are some static server-side charts like Eastwood/JFreeChart, but I’d like to make it more alive in browser.

Yes I can reload static images via Ajax. Are there other options?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:13:30+00:00Added an answer on June 4, 2026 at 4:13 pm

    How come this question is more than a year old but got no answers?! I suggest a rather questionable and somewhat hardcore approach.


    Use JavaScript, it’s awesome!

    Here’s your success formula: d3.js+jsdom+Rhino+Batik

    Specifically:

    1. Generate your graphs using some slick JavaScript library like d3.js.

    2. Use jsdom to run d3 server-side. Jsdom is pure JS library and d3 is known to be working on top of it.

    3. Run jsdom and d3 inside Rhino – a JavaScript engine baked into your beloved JVM since 1.6 (yay, JSR-223!). Although, I suggest you updating it to latest release (It’s on Maven Central, neat!). I guess Node.JS can do a better job but I assume that you’re stuck with Java.

      Also note that there’s an older, more mature and Rhino-specific server-side DOM implementation – EnvJs (requires Rhino 1.7R2, not R3). You can try it if jsdom doesn’t work for you.

    4. Use Batik to rasterize an SVG generated by d3. Batik even supports scripting inside SVG via Rhino. That means you can generate interactive charts server-side if you want to. I also used it in practice and had great experience with it.

    The whole approach is known to work server-side with Node.JS as a JS engine and ImageMagick as a rasterizer but I see no reasons why it wouldn’t work for you as well.


    BTW, If you’ll make it all running let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering is there a JavaScript library available that would allow me to generate
Is there a tool to generate stubs for me, or a library to interact
Is there any Library for .NET that returns SPARQL results in some structured List
I'm about to port a smallish library from Java to Python and wanted some
Is there any library for distributed in-memory cache, distributed tasks, publish/subscribe messaging? I have
Is there a library/simple way to flip an image? Flip image like this: AABBCC
Is there a library that has a class to extract the text from a
Is there a library for Python that will allow me to parse c++ code?
Is there any library in C for Linux to get gpu information for example
Is there any library for playing MKV (matroska multimedia container) files in Flash (AS3,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.