Code Monkey home page Code Monkey logo

Comments (1)

matoos32 avatar matoos32 commented on June 6, 2024

This one is hitting a road block. For gapless charts we need to somehow map the java.awt.Shape's time coordinate to x-coordinates as indices in time arrays for use in NumberAxis, but Shape is an interface and concrete classes can have any number of x-coordinates passed-in and in any number of ways. The interface provides no means to get shape coordinates polymorphically. So it requires specific logic for 30+ different known implementing classes. See https://docs.oracle.com/javase/8/docs/api/java/awt/Shape.html.

That is a big effort possibly warranting a ticket for each and with high maintenance burden. It's also unclear how much demand there is for these capabilities at all in the builder framework.

So I'm going to merge the implementation for DateAxis ("with gap") charts where in that context it's a general solution for shape annotations.

The implementation for NumberAxis ("gapless") will be left as unsupported but as a TODO to be figured out if there's enough community demand for it. Support for specific Shapes can be added on a case-by-case basis while thinking about how to add them all in.

I know this is not ideal but it's the best I can do within my time constraints.

from jfreechart-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.