-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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?
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
Asked: 2018-09-20 20:25:33 +0800
Seen: 4 times
Last updated: Sep 20 '18
[ZK8.6 Preview] New media components coming soon!
Bug in Datebox with lenient=false and value 01.04.1981?
javascript cannot catch id of zul component. Please help.
failed to utilize getTop(), getLeft() on div(component). Please help.
Serving zul files from a directory outside web application
zkoss issues with home page opening
which component are you using? ZK Charts?
cor3000 ( 2018-09-21 10:31:43 +0800 )editI'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 )editThis 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 )edityou're welcome!
cor3000 ( 2018-09-25 09:50:57 +0800 )edit