0

solidgauge

asked 2018-09-20 20:25:33 +0800

Sergeds gravatar image Sergeds
1

updated 2018-09-20 20:26:03 +0800

I'm trying to create a SolidGauge (half a circle) that fills the right part of the gauge when the value is positive, and the left if the value is negative.

So, basically I'd like the gauge to start filling from the middle.

I have tried a lot of settings, but did not manage to do this.

Can anyone help?

delete flag offensive retag edit

Comments

which component are you using? ZK Charts?

cor3000 ( 2018-09-21 10:31:43 +0800 )edit

I'm using ZK_Charts 3.0.2. I've been playing around with Start- and EndAngle, but it always comes down to the same thing: I can either have a gauge that fills to the left, or to the right, but not one that chooses the direction based on the value being positive or negative.

Sergeds ( 2018-09-21 13:52:56 +0800 )edit

This is exactly what I needed! Thanks a lot. It took a bit of fiddling to get it into ZK's java API, but it works. Thanks a lot cor3000!

Sergeds ( 2018-09-21 18:46:57 +0800 )edit

you're welcome!

cor3000 ( 2018-09-25 09:50:57 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-21 17:53:17 +0800

cor3000 gravatar image cor3000
4293 1 7
ZK Team

something like this? https://jsfiddle.net/zt8vmL24/29/ it seems like highcharts doesn't offer this out of the box, and I only achieved this using hacky background gradients... however this should also be possible to configure from ZK's java api

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2018-09-20 20:25:33 +0800

Seen: 3 times

Last updated: Sep 20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More