HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
687 stars 129 forks source link

Change sections, areas colors for valuse below 0. #179

Closed milosic5 closed 4 years ago

milosic5 commented 4 years ago

Hi there, let's say that I have Vertical skin and minValue= -100 and maxValue= 100. When I want to add Section from 0 to -30 and add color for that, it does not make any changes. It is also for areas which is from 0 to -50 for this example. It is same for DASHBOARD and DIGITAL skins. Everything below zero does not work for sections and areas.

digital_skin_settings

vertical_skin_settings

HanSolo commented 4 years ago

Hmm...sounds like a bug, will take a look at that, thx for the hint

HanSolo commented 4 years ago

Just as an info, you should always set min/max value before you set the sections. Will try to fix it today.

HanSolo commented 4 years ago

Oh and you have to set the sections not from 0 to -30 but from -30 to 0. So the sectionStart must be smaller than the sectionStop.

milosic5 commented 4 years ago

Thanks, problem solved.