sea-chart 2.0.23 → 2.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -672,9 +672,9 @@ class ChartComponent extends _react.Component {
672
672
  } = _ref;
673
673
  if (!this.chart) return;
674
674
  this.legendConfig = {
675
- legendRectWidth: 20,
676
- legendRectHeight: 6,
677
- r: 3,
675
+ legendRectWidth: chart.config.type === _constants.CHART_TYPE.SCATTER ? 8 : 20,
676
+ legendRectHeight: chart.config.type === _constants.CHART_TYPE.SCATTER ? 8 : 6,
677
+ r: chart.config.type === _constants.CHART_TYPE.SCATTER ? 4 : 3,
678
678
  legendItemPaddingTop: 5,
679
679
  legendItemTextPaddingTop: 13,
680
680
  legendItemMargin: 20,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sea-chart",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "main": "./dist/index.js",
5
5
  "dependencies": {
6
6
  "@dnd-kit/core": "^6.1.0",