Skip to main content
Question

Sorting with a custom order

  • November 14, 2025
  • 0 replies
  • 9 views

Hi! 

I’d like to have my graph sorted by fundraising stages. Is there a way to go around the automatic alphabetical sorting or by value as it won’t work? 

 

Here’s the code: 

 

 <ods-chart scientific-display="false" single-y-axis="false" display-legend="false" labels-x-length="35" align-month="true">
        
        <ods-chart-query context="ctx" field-x="derniere_serie" maxpoints="50" sort="serie1-1" reverse-stacks="true">
            
            <ods-chart-serie expression-y="headcount" chart-type="column" function-y="COUNT" color="#252cbe" scientific-display="true">
            </ods-chart-serie>
        </ods-chart-query>
    </ods-chart>

0 replies

Be the first to reply!