Coder Social home page Coder Social logo

Comments (3)

ennerf avatar ennerf commented on August 17, 2024 4

Below are some before and after pictures

Before After Comment
image image The chart anatomy parts can still be fully accessed, but without the need for StackPane wrappers
image image All of the extra layout panes were removed and have been replaced with a small hierarchy of custom panes. Axis layouts are now deterministic and can be done without recursion.
image image labels don't disapper when resizing
image image tick label spacing is now computed correctly
image image disabled ranges now correctly remove the invalid tick labels (bottom left)
image image enabling an axis does not break the label positioning anymore
image image all rotations and overlap strategies get correctly rendered

Most importantly, the data rendered on the chart is now always consistent with the value shown on the axes.

Here is a video of one of our applications that used to have significant rendering issues: Deterministic Layout PR

from chart-fx.

ennerf avatar ennerf commented on August 17, 2024 1

As per discussion on June 21 with Alex and updated July 21.

Deterministic layout and hierarchy changes

  • Split layout and rendering
  • Perform layout based on properties in the children nodes
  • Report consistent axes size and do the axis layout in a deterministic way
  • Simplify chart hierarchy levels

Smaller changes that would be better in a separate PR.

  • Remove XYChart class and use Chart directly
  • Remove dataset list from main chart and keep datasets within the renderer. The global color index should be maintained.
  • Deprecate delegating methods, e.g., chart delegating to the grid renderer
  • Change renderer to always have one X and one Y axis. If one is not defined it defaults to the first one.

from chart-fx.

ennerf avatar ennerf commented on August 17, 2024

I think the goals have all been achieved and are ready for review. The style nodes ended up not being necessary.

from chart-fx.

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.