A JavaFX library that contains different kind of charts

Related tags

GUI charts
Overview

Charts


A library for scientific charts in JavaFX.

This is still a work in development, but here are some of the charts being worked on so far.

The charts library can be found over at maven central

Area heat map

Area heat map

X and Y axis

Axis

Area, line, dot and ring chart

Area, line, dot and ring chart

Logarithmic chart

Logarithmic chart

Circular chart

Circular chart

Comparison ring chart

Comparison ring chart

Concentric ring chart

Concentric ring chart

Coxcom chart

Coxcomb chart

Force directed graph

Force directed chart

Grids for chart backgrounds

Grid

Heat map overlay

Heat map overlay

Horizon chart

Horizon chart

Smoothed line chart

Smoothed line chart

Logarithmic axis and grid

Logarithmic axis and grid

Matrix heat map

Matrix heat map

Matrix chart

Matrix chart

Nested bar chart

Nested bar chart

Parallel coordinates chart

Parallel coordinates chart

Pareto chart

Pareto chart

Playfair chart

Playfair chart

Polar chart

Polar chart

Radar chart

Radar chart

Ridge line chart

Ridge line chart

Sankey plot

Sankey chart

Stream chart

Stream chart

Sunburst chart

Sunburst chart

Time based x-axis

Time based x-axis

Worldmap with heatmap overlay

Worldmap with Heatmap

ArcChart

Arc chart

BubbleGridChart

BubbleGridChart

SectorChart

SectorChart

Voronoi/Delauny chart

VoronoiChart

Multi Time Series chart

MultiTimeSeries

Comments
  • Flow Circle

    Flow Circle

    No pressure Gerrit, I showed my coworkers some of your work. One of them has asked if creating a flow circle graph is doable. This is something that would be really killer for connection-driven flow problems (e.g. transportation, trade economics, etc).

    What do you think?

    image

    opened by thomasnield 15
  • Axis extensions

    Axis extensions

    • added the option to set a StringConverter for number display
    • added getValueForDisplay() method as in standard axis
    • disabled overwriting of custom tick space values in calcAutoScale() (not a final fix but to avoid overwriting user values til solution)
    • matching updates in AxisBuilder
    opened by ThomasDaheim 14
  • Updating Axis range in LineChart

    Updating Axis range in LineChart

    via setting minValue or/and maxValue at axis, axis stays at the same range. but if drag the application window - it will be updated and apply new values

    opened by permiakover 12
  • SelectionEvent support for SankeyPlot

    SelectionEvent support for SankeyPlot

    Hi Gerrit!

    Could you please implement a SelectionEvent for the SankeyPlot chart (like you've done for the ArcChart) so that when the user clicks a on the chart connections (or endpoints) then the event would contain the in/out connection ?

    Best regards and keep up the great work ! Carstein

    opened by cseeberg 12
  • Support for empty data points

    Support for empty data points

    Image a graph displaying some data from the last X days. Where some data is not available for whatever reason.

    It would be great, if we could display a "broken" line etc. indicating the data point is actually missing instead of missing either a day or set the data to a zero value, so the line just drops to the bottom - which is not the same as "there is no data".

    I propose to allow to set "empty" data items that specifically exist only to allow the graph to be incomplete.

    opened by bgmf 11
  • Charts 11.11 - further Customization

    Charts 11.11 - further Customization

    Hi there (again) :D Thanks again for the quick implementation of issue #74 . I am very happy with it :)

    I have one more wish, if that's not too much to ask for. I´d like to have another StringProperty on the chartitem (and another constructor). Heres why: i got some data that i want to show on the coxcombchart that has a very long name. i´d like to show a "succintly name" on the chart and on a label (where obviously would be enough space of showing it), the "long name".

    Basically all i´d need is a stringproperty on the chartitem, a constructor so i can fill it and a getter for the new StringProperty. The constructor should look something like this: public ChartItem(String NAME, double VALUE, String LONGNAME, Color FILL) "LONGNAME" might not be the best choice of name, but i think you get what i mean :D

    this seems more like an feature request (for which I did not find the possibility).

    enhancement 
    opened by todayifeeltired 10
  • NullpointerException - getConnection(PlotItem, PlotItem) returns null

    NullpointerException - getConnection(PlotItem, PlotItem) returns null

    Hello Gerrit,

    In the latest Release is a Bug.

    In CirularPlot.java line 674: Connection connection = getConnection(item, outgoingItem); Is trying to get a Connection that should be there but returns null.

    line 704: connection.setTooltipText(tooltipText); Is now trying to set the Tooltip for null.

    The Problem is reproducible in the CircularPlotTest class by enabling the currently commented out Outgoings.

    @Override public void init() {
        // Setup Data
        // Wahlberechtigte 61_500_000
        PlotItem australia = new PlotItem("AUSTRALIA", 1_250_000, Color.rgb(255, 51, 51));
        PlotItem india     = new PlotItem("INDIA", 750_000, Color.rgb(255, 153, 51));
        PlotItem china     = new PlotItem("CHINA", 920_000, Color.rgb(255, 255, 51));
        PlotItem japan     = new PlotItem("JAPAN", 1_060_000, Color.rgb(153, 255, 51));
        PlotItem thailand  = new PlotItem("THAILAND", 720_000, Color.rgb(51, 255, 51));
        PlotItem singapore = new PlotItem("SINGAPORE", 800_000, Color.rgb(51, 255, 153));
    
        // Travel flow
        australia.addToOutgoing(india, 150_000);
        australia.addToOutgoing(china, 90_000);
        australia.addToOutgoing(japan, 180_000);
        australia.addToOutgoing(thailand, 15_000);
        australia.addToOutgoing(singapore, 10_000);
    
        japan.addToOutgoing(australia, 70_000);
    
        List<PlotItem> items = List.of(australia, india, china, japan, thailand, singapore );
    
        // Register listeners to click on connections and items
        items.forEach(item -> {
            item.addItemEventListener(e -> {
                switch (e.getEventType()) {
                    case SELECTED: System.out.println("Selected: " + e.getItem().getName()); break;
                }
            });
        });
    
        
        india.addToOutgoing(australia, 35_000);
        india.addToOutgoing(china, 10_000);
        india.addToOutgoing(japan, 40_000);
        india.addToOutgoing(thailand, 25_000);
        india.addToOutgoing(singapore, 8_000);
    
        china.addToOutgoing(australia, 10_000);
        china.addToOutgoing(india, 7_000);
        china.addToOutgoing(japan, 40_000);
        china.addToOutgoing(thailand, 5_000);
        china.addToOutgoing(singapore, 4_000);
    
        japan.addToOutgoing(australia, 7_000);
        japan.addToOutgoing(india, 8_000);
        japan.addToOutgoing(china, 175_000);
        japan.addToOutgoing(thailand, 11_000);
        japan.addToOutgoing(singapore, 18_000);
    
        thailand.addToOutgoing(australia, 70_000);
        thailand.addToOutgoing(india, 30_000);
        thailand.addToOutgoing(china, 22_000);
        thailand.addToOutgoing(japan, 120_000);
        thailand.addToOutgoing(singapore, 40_000);
    
        singapore.addToOutgoing(australia, 60_000);
        singapore.addToOutgoing(india, 90_000);
        singapore.addToOutgoing(china, 110_000);
        singapore.addToOutgoing(japan, 14_000);
        singapore.addToOutgoing(thailand, 30_000);
        
    
        // Setup Chart
        circluarPlot = CircularPlotBuilder.create()
                                          .prefSize(500, 500)
                                          .items(items)
                                          .connectionOpacity(0.75)
                                          .decimals(0)
                                          .minorTickMarksVisible(false)
                                          .build();
    
        ConnectionEventListener connectionListener = e -> System.out.println("From: " + e.getConnection().getOutgoingItem().getName() + " -> to: " + e.getConnection().getIncomingItem().getName() + " -> Value: " + e.getConnection().getValue());
        circluarPlot.getConnections().forEach(connection -> connection.addConnectionEventListener(connectionListener));
    
        if (null != circluarPlot.getConnection(australia, japan)) {
            circluarPlot.getConnection(australia, japan).setFill(Color.BLUE);
            circluarPlot.getConnection(australia, india).setFill(Color.CHOCOLATE);
            circluarPlot.getConnection(japan, australia).setFill(Color.POWDERBLUE);
        }
        circluarPlot.getConnections().forEach(connection -> {
            System.out.println(connection.getOutgoingItem().getName() + " -> " + connection.getIncomingItem().getName() + " -> Value: " + connection.getValue() + " -> Color: " + connection.getFill());
        });
    }
    
    opened by Pureandy 10
  • CircularPlot and PlotItems

    CircularPlot and PlotItems

    Hello Gerrit,

    I have a Question to the CircularPlot and PlotItems.

    Example: I have 10 PlotItems and add those to the CircularPlot. The CircularPlot gets drawn with these 10 PlotItems. Now I want to click any PlotItem and trigger the ItemEvent of this specific PlotItem. This way I could Identify the specific PlotItem.

    Is this already possible or is it planned?

    opened by Pureandy 10
  • Add a Parallel Coordinates Plot

    Add a Parallel Coordinates Plot

    I've got a crippling need for a Parallel Coordinates plot on our JavaFX/TornadoFX desktop application.

    Parallel Coordinates Plots (PCPs) are a very simple abstraction on a standard many-column matrix. A PCP graphs each row in the table as a horizontal line across the chart. Each column is represented as a vertical axies, and where that axis intersects each horizontal line, the height of the intersection from the bottom fo the chart is proportional to that rows value at that column.

    A picture is worth a thousand words:

    Our applications Parallel Coordinates chart: image

    The corresponding Matrix: image

    a D3JS implementation: https://bl.ocks.org/jasondavies/1341281

    Parallel Coordintes represents a superbly general chart as it allows you to graphically represent data at arbitrarily high dimensionality.

    There is a long list of features such a chart might have, which I'll outline below.

    Our implementation is not worth sharing primarily because its use of bindings is ~~inefficient~~ abusive. We write an optimization algorithm which can redline the CPU for prolonged periods of time, but in many cases our profiling has indicated that the actual problematic hot loop is binding updates for our PCP implementation. Thus we would very much like another one, but we simply cant afford the time it would take to re-write it.


    shameless plug: find out more about this product at empowerops.com

    enhancement 
    opened by Groostav 10
  • Pareto Chart

    Pareto Chart

    Do you have any plans to create a Pareto Chart? This is a very common bar chart used in industry to plot the N largest items by count or percentage decreasing left to right. A line chart showing cumulative values is superimposed on the bar chart thus increasing left to right. Clicking on a bar provides an event for "drilling down" into more detail.

    opened by point85 7
  • Charts 11.7 - Customization

    Charts 11.7 - Customization

    Hello :) I rellay like the CoxCombChart, but i see no way of customizing it (or am i wrong?!).

    Basically i´d like to change the MouseEvent from MOUSE_PRESSED to MOUSE_ENTERED. I´d also like to add something to the "...%" text on the ChartItems and change the size and text on the canvas showing after the MOUSE_PRESSED-Event.

    enhancement 
    opened by todayifeeltired 6
  • Allow to configure the Gradle project without knowledge about credentials

    Allow to configure the Gradle project without knowledge about credentials

    Currently, just configuring (not executing) the Gradle build already requires credentials for publishing, as these are evaluated eagerly during configuration phase, see

    https://github.com/HanSolo/charts/blob/258f877b8462ff8d3bdd36ed9ba9648654212497/build.gradle#L149-L152

    and

    https://github.com/HanSolo/charts/blob/258f877b8462ff8d3bdd36ed9ba9648654212497/build.gradle#L157-L160

    To avoid that, it's probably better to follow the best practice of using the PasswordCredentials class with the built-in mySecureRepositoryUsername / mySecureRepositoryPassword properties.

    opened by sschuberth 0
  • README: Image for

    README: Image for "Area, line, dot and ring chart" is broken

    See https://github.com/HanSolo/charts#area-line-dot-and-ring-chart / https://camo.githubusercontent.com/32dfa09a8be3401c323a7fc55fe3c6817556cdce770ffe97f38b659a50db5036/68747470733a2f2f692e6962622e636f2f326366714b38342f4368617274732d323032302d30392d30342d30372d34382d32342e706e67.

    opened by sschuberth 0
  • HeatMap with solid color

    HeatMap with solid color

    Hello, using the heatmap when I set all dots equivalent with single color, I got some view artifact of horizontal waves. For example if all dots of heat map are red ("0xff0a00ff")

    изображение

    I fixed the color and rangeZ bounds to be sure, but no success. I'd like to get a solid color among all dots without artifacts

    opened by permiakover 2
  • Heatmap's ColorMapping  is not available

    Heatmap's ColorMapping is not available

    hi! using heatmap matrix (version 17.1.25) from the example IDE highlights error over import eu.hansolo.fx.heatmap.ColorMapping; - Cannot resolve symbol 'ColorMapping'

    but the jar 'heat,ap-17.0.12.jar' is in the gradle project dependencies.

    opened by permiakover 1
  • LineChart items xySeries couldn't be cleared in a simple way

    LineChart items xySeries couldn't be cleared in a simple way

    Hello, if i need to clear dots in chart for a while (in case of dynamic charts building via XYSeriesBuilder with empty items and calling clear()on items causes

    Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
    	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
    	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
    	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
    	at java.base/java.util.Objects.checkIndex(Objects.java:372)
    	at java.base/java.util.ArrayList.get(ArrayList.java:459)
    	at javafx.base/com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:89)
    	at eu.hansolo.fx.charts.XYPane.drawLine(XYPane.java:717)
    	at eu.hansolo.fx.charts.XYPane.drawChart(XYPane.java:675)
    	at eu.hansolo.fx.charts.XYPane.redraw(XYPane.java:636)
    	at eu.hansolo.fx.charts.XYPane.lambda$registerListeners$8(XYPane.java:229)
    	at eu.hansolo.fx.charts.series.Series.fireSeriesEvent(Series.java:467)
    	at eu.hansolo.fx.charts.series.Series.lambda$new$0(Series.java:134)
    	at javafx.base/com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:329)
    	at javafx.base/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
    	at javafx.base/javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
    	at javafx.base/javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
    	at javafx.base/javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
    	at javafx.base/javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
    	at javafx.base/com.sun.javafx.collections.ObservableListWrapper.clear(ObservableListWrapper.java:157)
    

    is that normal?

    opened by permiakover 2
Releases(17.1.27)
Owner
Gerrit Grunwald
❤️ coding in general, esp. Java(FX), Swift and if needed JavaScript. UI has my love...
Gerrit Grunwald
A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.

⚡ A powerful & easy to use chart library for Android ⚡ Charts is the iOS version of this library Table of Contents Quick Start Gradle Maven Documentat

Philipp Jahoda 36k Jan 9, 2023
SynchronizeFX - a library for JavaFX 2 and later that enables property bindings between different JVMs

SynchronizeFX - a library for JavaFX 2 and later that enables property bindings between different JVMs, both on a local computer and over the network.

Manuel Mauky 8 Jul 24, 2020
A project that shows the different ways on how to create custom controls in JavaFX

JavaFX Custom Controls This project will show different ways on how to create custom controls in JavaFX. It will cover the following approaches: Resty

Gerrit Grunwald 27 Sep 5, 2022
Tray Icon implementation for JavaFX applications. Say goodbye to using AWT's SystemTray icon, instead use a JavaFX Tray Icon.

FXTrayIcon Library intended for use in JavaFX applications that makes adding a System Tray icon easier. The FXTrayIcon class handles all the messy AWT

Dustin Redmond 248 Dec 30, 2022
Lib-Tile is a multi Maven project written in JavaFX and NetBeans IDE 8 and provides the functionalities to use and handle easily Tiles in your JavaFX application.

Lib-Tile Intention Lib-Tile is a multi Maven project written in JavaFX and NetBeans IDE and provides the functionalities to use and handle easily Tile

Peter Rogge 13 Apr 13, 2022
DataFX - is a JavaFX frameworks that provides additional features to create MVC based applications in JavaFX by providing routing and a context for CDI.

What you’ve stumbled upon here is a project that intends to make retrieving, massaging, populating, viewing, and editing data in JavaFX UI controls ea

Guigarage 110 Dec 29, 2022
This repository contains all java related sources of the Dolphin Platform.

Dolphin Platform This repository contains all Java related sources of the Dolphin Platform. Clients for other languages can be found in seperate repos

IMTF 74 Sep 5, 2022
HUAWEI 3D Modeling Kit project contains a sample app. Guided by this demo, you will be able to implement full 3D Modeling Kit capabilities, including 3D object reconstruction and material generation.

HUAWEI 3D Modeling Kit Sample English | 中文 Introduction This project includes apps developed based on HUAWEI 3D Modeling Kit. The project directory is

HMS 59 Jan 1, 2023
Contains the demo projects for S1 Application Modernization Breakout

Application Modernization Spring One 2021 This repository contains the projects that were demoed during the Application Modernization breakout discuss

Glenn Renfro 6 Jan 24, 2022
Tic-Tac-Toe-GUI - This repository contains Java based interactive Tic-Tac-Toe game.

Tic-Tac-Toe This repository contains Java based interactive Tic-Tac-Toe game. In this game you can play individual or with another player with your na

Ahmed Hossam 11 Sep 1, 2022
A library of +70 ready-to-use animations for JavaFX

AnimateFX A library of ready-to-use animations for JavaFX Features: Custom animations Custom interpolators Play/Stop animation Play an animation after

Loïc Sculier 366 Jan 5, 2023
A JavaFX library that allows Java2D code (Graphics2D) to be used to draw to a Canvas node.

FXGraphics2D Version 2.1, 3 October 2020. Overview FXGraphics2D is a free implementation of Java's Graphics2D API that targets the JavaFX Canvas. It m

David Gilbert 184 Dec 31, 2022
A library for JavaFX that gives you the ability to show progress on the Windows taskbar.

A clean and easy way to implement this amazing native Windows taskbar-progressbar functionality in javaFX Background Since Windows 7 there is a taskba

Daniel Gyoerffy 77 Nov 28, 2022
A JavaFX 3D Visualization and Component Library

FXyz3D FXyz3D Core: FXyz3D Client: FXyz3D Importers: A JavaFX 3D Visualization and Component Library How to build The project is managed by gradle. To

null 16 Aug 23, 2020
A library for creating and editing graph-like diagrams in JavaFX.

Graph Editor A library for creating and editing graph-like diagrams in JavaFX. This project is a fork of tesis-dynaware/graph-editor 1.3.1, which is n

Steffen 125 Jan 1, 2023
Provides a Java API to use the JavaScript library d3.js with the JavaFx WebView

javafx-d3 Provides a Java API for using the JavaScript library d3.js with JavaFx Applications. Many thanks to the authors of the projects gwt-d3 [1] a

null 98 Dec 19, 2022
Kubed - A port of the popular Javascript library D3.js to Kotlin/JavaFX.

Kubed: A Kotlin DSL for data visualization Kubed is a data visualization DSL embedded within the Kotlin programming language. Kubed facilitates the cr

Brian Hudson 71 Dec 28, 2022
A 3D chart library for Java applications (JavaFX, Swing or server-side).

Orson Charts (C)opyright 2013-2020, by Object Refinery Limited. All rights reserved. Version 2.0, 15 March 2020. Overview Orson Charts is a 3D chart l

David Gilbert 96 Sep 27, 2022
A JavaFX library containing tiles that can be used for dashboards.

TilesFX A JavaFX library containing tiles for Dashboards. Donations are welcome at Paypal Intro The Tile is a simple JavaFX Control that comes with di

Gerrit Grunwald 1.3k Dec 30, 2022