Skip to content

Commit

Permalink
feat(highcharts): add cross symbol on highcharts graphs for markers
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Valero committed Mar 20, 2024
1 parent 1510707 commit 7c6f4f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import theme from '../styles/theme';
import { StyledResult } from '../styles/components/StyledResult';
import withDataId from '../components/DataId/withDataId';

Highcharts.SVGRenderer.prototype.symbols.cross = function(x, y, w, h) {
return ['M', x, y, 'L', x + w, y + h, 'M', x + w, y, 'L', x, y + h, 'z'];
};

boost(Highcharts);
addSankeyModule(Highcharts);
HCRounded(Highcharts);
Expand Down

0 comments on commit 7c6f4f4

Please sign in to comment.