Skip to content

Commit

Permalink
Merge pull request #158 from sgratzl/release/v4.1.1
Browse files Browse the repository at this point in the history
Release v4.1.1
  • Loading branch information
sgratzl authored Dec 27, 2022
2 parents d72bf2b + ce27d3e commit d260233
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ A data point has to have a `.feature` property containing the feature to render

- US map: https://www.npmjs.com/package/us-atlas
- World map: https://www.npmjs.com/package/world-atlas
- individual countries: https://github.com/markmarkoh/datamaps/tree/main/src/js/data (untested)
- individual countries: https://github.com/markmarkoh/datamaps/tree/master/src/js/data (untested)
- topojson collection: https://github.com/deldersveld/topojson (untested)

```js
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chartjs-chart-geo",
"description": "Chart.js module for charting maps",
"version": "4.1.0",
"version": "4.1.1",
"author": {
"name": "Samuel Gratzl",
"email": "[email protected]",
Expand Down
5 changes: 3 additions & 2 deletions src/scales/SizeScale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ export class SizeScale extends LegendScale<ISizeScaleOptions & LinearScaleOption

const isHor = this.isHorizontal();
const values = this.ticks;
const positions = (this as any)._labelItems
? (this as any)._labelItems.map((el: any) => ({ [isHor ? 'x' : 'y']: el.translation[isHor ? 0 : 1] }))
const labelItems = this.getLabelItems();
const positions = labelItems
? labelItems.map((el: any) => ({ [isHor ? 'x' : 'y']: el.options.translation[isHor ? 0 : 1] }))
: values.map((_, i) => ({ [isHor ? 'x' : 'y']: this.getPixelForTick(i) }));

((this as any)._gridLineItems || []).forEach((item: any) => {
Expand Down

0 comments on commit d260233

Please sign in to comment.