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 authored Jul 7, 2023
1 parent 93e877a commit a783772
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 a783772

Please sign in to comment.