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
solidgauge : circle donut increases if value exceeds max range #2997
Comments
On second note, is there any way to avoid using gradient to fill colour? Can I use plain green yellow and red once set threshold is crossed? |
A value of 400 looks okay to me... http://jsfiddle.net/s5h9T/ The color arc goes all the way round to a full circle, which I would expect when I have set the What is missing is perhaps some options to disallow overflowing of the min-max range? |
try 450 in your example. |
Here is a minimal example: http://jsfiddle.net/prPmC/ If in solidgauge.drawPoints we start drawing at the minimum angle it works. Example code:
The problem with points that go more than 360° (either direction) is still present. |
I think this should be reopened: http://jsfiddle.net/EkE2K/1/ - gauge isn't clipped at 0-200values. |
I thought we considered this as expected behaviour? |
Ah, right, I missread discussion. So to prevent that color outside the pane, we need to adjust value to 200, then in dataLabel display some true value? |
I agree it doesn't look as intended. I think this can be compared to how a column chart behaves: if the column exceeds the plot area, it is clipped. And the plot area is defined by the min-max of the Y axis. So here's what I propose:
|
The bug is still present (although you should load from github.highcharts.com instead of code.highcharts.com to fix the twisting issue). I'll work on adding the clipping/overshoot functionality proposed by Torstein. |
Same issue when I loaded it from (http://github.highcharts.com/highcharts.src.js) with the "twisting". |
Do you have a jsfiddle example? Note that you must load the solid-gauge module from github, not just the main file. |
Okay thanks, that fixed the twisting. I will wait until the additional fix can be added. For now I just threw a function in the data so if it exceeds my max, I just return the max as my data and then change the label it self to the true value. |
There is similar issue when say max value is not multiple of hundred. in my example if max value is 235 instead of 250 the max label is not printed instead arbitrary value of 125 is printed halfway through |
I found a solution to this problem. Add these lines to your series' options: find 'Handle the wrap option' comment in solid-gauge.src.js and modify it with the following: |
I'm not able to reproduce any issues using the latest version (loaded from bugfix branch: http://github.highcharts.com/bugfix/modules/solid-gauge.src.js). |
I always forget how Highcharts modularity / versioning / release works every time I come to it. Is the bugfix branch merged into core and released in line with a feature-based release schedule? |
More or less. But most bug fixes are actually done on the master branch. |
This issue has been closed, but commit 85e3f47 has not been merged to a release. Is this an oversight? I'm evaluating your product in a new commercial project, and I would like to be able to set overshoot on solidgauge chart types. Thanks! |
You're right, it was left in the bugfix branch. Now it's merged into the master, so it will be part of the next maintenance. |
if in official example you change data value to say 250 you will see the effect
http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/gauge-solid/
It behaves weird if you change value to 400 and comes back to right shape (semi circle) if value is 3800.
Edit:
Fail case: http://jsfiddle.net/highcharts/EkE2K/
The text was updated successfully, but these errors were encountered: