Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalDate and LocalDateTime Axis types #6

Open
thomasnield opened this issue Dec 1, 2017 · 5 comments
Open

LocalDate and LocalDateTime Axis types #6

thomasnield opened this issue Dec 1, 2017 · 5 comments

Comments

@thomasnield
Copy link
Contributor

Hey Gerrit,

There doesn't seem to be any good LocalDate and LocalDateTime axis types. Would this be something that's in scope for this library?

I'm coming across this need a lot as I play with your charts and JavaFX charts in general.

Thomas Nield

@HanSolo
Copy link
Owner

HanSolo commented Dec 4, 2017

Added first support for time based data to Axis. The main idea is to have a new TYDataObject which extends the XYDataObject and has an additional field for LocalDateTime. The Axis now also supports this kind of DataObject and has a dynamic format. Meaning to say if you increase the window width for example the horizontal scale should adjust according to the available space and range. You can find a demo in the TimeAxisTest.java file. Not sure if this approach will be the final solution but at least it works kind of :)
Feel free to play around with it and let me know what you think...

Repository owner deleted a comment from thomasnield Dec 4, 2017
@thomasnield
Copy link
Contributor Author

That makes perfect sense, I'll play with it.

By the way, Edvin created a tornadofx-charts repository, which will have the TornadoFX DSLS's around this library. I'll put the initial commit in later.

@thomasnield
Copy link
Contributor Author

I haven't forgotten this. I will follow up and re engage

@HanSolo
Copy link
Owner

HanSolo commented Feb 3, 2018

no worries 😉

@thomasnield
Copy link
Contributor Author

I have a project I need this for now. Lemme see if I can streamline this a little with a nice wrapper....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants