function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
John Upton 8John Upton 8 

How to dynamically set Minimum and Maximum on Gauge Charts

I have created a visualforce chart along the line of this one: However I also wish to be able to set the values for Minimun and Maximum based on other fields in the Member__c object. I tried simply setting

but get the error "Visualforce Error. Unable to convert value 'data' to type 'Integer' for attribute 'minimum' "
Can anyone suggest a different approach?
Best Answer chosen by John Upton 8
John Upton 8John Upton 8
I worked out how to do this myself in the end by creating a method within the controller which I could then use to retrieve values from the database.