Skip to content

Commit

Permalink
Add new CategoryFilter sort modes
Browse files Browse the repository at this point in the history
  • Loading branch information
mortendevold committed Feb 21, 2024
1 parent 1785297 commit 3a9b84b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,10 @@ export type CategoryFilter = {
*/
zoomOnSelect?: boolean
/**
* Sort categories by price, or use the order that's defined on the chart
* Sort categories by property, or use `none` for the order they are defined on the chart
* @default price
*/
sortBy?: 'price' | 'none'
sortBy?: 'none' | 'name' | 'price' | 'priceDescending'
}

// Deprecated config values
Expand Down

0 comments on commit 3a9b84b

Please sign in to comment.