Skip to content

Embedding a chart inside a JavaFX container #1006

Description

@GSQuarch

I was looking for a Discussion/Forum board but couldn't find and so apologies if this is not the right place to ask questions.

I've worked my way through the following JavaFX example:

https://knowm.org/how-to-embed-xchart-into-a-javafx-application/

and the chart hugs to the parent anchor-pane.

However, in practice we typically want to embed a chart inside, say, a VBox or other container so that we can provide additional controls to the user.

Does anyone have an example of doing this since I haven't been able to get it to work as yet.

So - imagine extending the above example by adding a VBox containing the chart and ButtonBar with a Close button, and as we resize the overall window, all components resize as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions