Skip to content

Commit

Permalink
feat(Highcharts plugin)!: sort tooltip lines in desc order by default (
Browse files Browse the repository at this point in the history
…#199)

feat(Highcharts plugin): sort tooltip lines in desc order by default
  • Loading branch information
korvin89 committed Jul 17, 2023
1 parent 425d8ea commit d28afcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/highcharts/renderer/helpers/tooltip/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export const escapeHTML = (html = '') => {
};

export const getSortedLines = (lines: TooltipLine[], sort: TooltipData['sort'] = {}) => {
// set eneabled to true after https://github.com/gravity-ui/chartkit/issues/171
const {enabled = false, order = 'desc', iteratee = 'originalValue'} = sort;
const {enabled = true, order = 'desc', iteratee = 'originalValue'} = sort;

if (!enabled) {
return [...lines];
Expand Down

0 comments on commit d28afcd

Please sign in to comment.