Comments (2)
It would have been helpful to get a little code snippet that shows the problem because it seems that the issue is dependent on the skin that you use. So it looks like for the Gauge skin it has problems. Will look into that. Thanks for the heads up.
from medusa.
The problem is related to the tickmarks and the major- and minor tickspace. You can imagine that if you create tickmarks and labels for every 10th number from 0 - 21055406 the library has to draw a lot of tickmarks and ticklabels which is the reason for the problem. There are different ways to face this problem, first thing I would do with such large numbers, I would ask myself if I need to have them in all detail or if it won't be enough to for example divide the values by 10000 before I pass them to the gauge. If the gauge has a size of 400x400px you won't be able to visual determine the difference between values in the range of 1000. The other approach would be to adjust the major- and minor tickspace according to your values. The following code works with the large number you mentioned:
gauge = GaugeBuilder.create()
.skinType(SkinType.GAUGE)
.prefSize(400, 400)
.decimals(0)
.maxValue(21055406)
.majorTickSpace(100000)
.minorTickSpace(10000)
.tickLabelsVisible(false)
.minorTickMarksVisible(false)
.mediumTickMarksVisible(false)
.autoScale(false)
.animated(true)
.build();
from medusa.
Related Issues (20)
- Remove Maven dependencies on javafx HOT 2
- Application is not running in Intellij IDE and JDK11. HOT 7
- GaugeBuilder for half skin ignores tick space HOT 1
- Exception in application start method HOT 1
- Change the fontsize of TickMarks HOT 9
- Level Gauge HOT 5
- How I use these gauges in my project? Can anyone give me some template.? HOT 2
- Smooth gradient precisely on gradient stop HOT 3
- [question] java: module not found: eu.hansolo.medusa HOT 3
- Issues when moving from version 11.7 to version 16.0.0 HOT 2
- Gauge.SkinType.DASHBOARD gets wobbly near max value HOT 2
- 16.0.1 version not in mvnrepository HOT 2
- Linear Bar functionality
- Setting a GaugeSkin removes Color Settings HOT 2
- Gauge Not Aligning in GridPane HOT 3
- counter-clockwise gauge HOT 7
- Can't find module HOT 2
- JFXCentral Badge
- Adding Gauge/Gauges to UI performance improvement and Marker valueProperty update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from medusa.