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

Problem with SPARK_LINE when adding same value many times sequentially #141

Open
denkovi1 opened this issue May 4, 2023 · 2 comments
Open

Comments

@denkovi1
Copy link

denkovi1 commented May 4, 2023

Hello,
I've noticed a strange behavior in case we add the same value to SPARK_LINE tile. Here is how this can be reproduced:

Tile sparkLineTile = TileBuilder.create()
.skinType(SkinType.SPARK_LINE)
.title("SparkLine Tile")
.unit("mb")
.strokeWithGradient(true)
.build();

Then if we add same value lets say 5, once it will be displayed correctly, the next time the line will disappear, then it will be displayed ok...

sparkLineTile.setValue(5); //OK
sparkLineTile.setValue(5); //problem - line is hidden
sparkLineTile.setValue(5); //OK
sparkLineTile.setValue(5); //problem - line is hidden
sparkLineTile.setValue(5); //OK
sparkLineTile.setValue(5);//problem - line is hidden
sparkLineTile.setValue(5); //OK
...

I've tested tilesfx ver17.1.17 and ver16.0.0 and they have the same problem.
Ver11.1 seems to be OK.
I am working with JDK 17 with integrated FX from Zulu
What could be the problem?
Thanks

@HanSolo
Copy link
Owner

HanSolo commented May 4, 2023

Thx for the heads-up, will take a look at it 👍🏻

@denkovi1
Copy link
Author

denkovi1 commented May 5, 2023

I figured out that after setting fixedYScale on the problem disappear but the spark line is displaying in different way. Is there any way to achieve this without fixedYScale turned on ?
Thanks

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