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
Salesforce WizardSalesforce Wizard 

Visualforce Charting: Steps attribute in <Apex:axis /> being ignored

So I'm using Visualforce Charting to display a Gauge on a dashboard. I have everything pulling and working, except I want to reduce the number of "ticks" on the gauge.

According to the documentation, the "Steps" attribute on the <apex:axis /> controls the steps on the chart when specified.Regardless of the integer I specify in the attribute I always see 10 steps + the Maximum value.

Am I doing something wrong, misunderstanding the purpose of steps, or there something else going on here?

<apex:chart height="250" width="350" animate="true" data="{!MyGaugeData}" name="ThisChart">
        <apex:axis type="Gauge" position="gauge" title="{!Percent}% {!title}"
            minimum="0" maximum="{!QuotaAmount}" steps="5"/>
        <apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
	</apex:chart>


Best Answer chosen by Salesforce Wizard
KevinPKevinP
per the documentation: https://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_axis.htm

steps only applies when the type = "numeric"

All Answers

KevinPKevinP
per the documentation: https://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_axis.htm

steps only applies when the type = "numeric"
This was selected as the best answer
Salesforce WizardSalesforce Wizard
Thanks Kevin. Interesting that level of detail wasn't on the component reference I found