get color range from linear gauge
#1
Posted 01 February 2010 - 06:19 PM
Other Replies To This Topic
#2
Posted 01 February 2010 - 11:17 PM
Could you please specify the issue a bit elaborately?
Also, please refer to the link below for the detailed information on the XML attributes of a Linear Gauge.
Ref.- http://www.fusioncharts.com/widgets/docs/Contents/Linear_XML.html
Awaiting your reply.
Other Replies To This Topic
#3
Posted 01 February 2010 - 11:22 PM
Other Replies To This Topic
#4
Posted 01 February 2010 - 11:37 PM
Quote
Please try customizing your code using JavaScript, so that the pointer returns the color-range and not the value.
Other Replies To This Topic
Other Replies To This Topic
#6
Posted 02 February 2010 - 12:17 AM
In case you know the value of the color-range, please try creating your own logic to get color-range as the output.
Other Replies To This Topic
#7
Posted 03 February 2010 - 05:29 PM
Other Replies To This Topic
#8
Posted 03 February 2010 - 11:10 PM
Could you please send us the sample of the codes that you are using?
Awaiting your reply. :hehe:
Other Replies To This Topic
#9
Posted 04 February 2010 - 05:46 PM
Other Replies To This Topic
#10
Posted 05 February 2010 - 01:30 AM
I am afraid, as of now, you can not retrieve the color range for the selected value of the pointer. There is no native support for this.
But, there is always a way with will. Hack!![]()
The linear gauge ( as well all charts and gauges in FusionWidgest/FusionCharts pack) being a client side component at the end of the day, allows only JavaScript to interact with it to retrieve values from it. You can not do this directly from PHP once the chart is rendered at the client side browser.
STEPS:
The chart allows you to retrieve the XML from it using getXML() in JavaScript as string.
Using String manipulation/RegularExpression you can retrieve the ranges from the XML.
Using JavaScript you can get the value. Now, you can check whether this value falls under which range and work accordingly.
Please let me know, if this can cater to your needs.


Back to top
MultiQuote