@dhiraj0720/report1chart 2.7.7 → 2.7.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhiraj0720/report1chart",
3
- "version": "2.7.7",
3
+ "version": "2.7.8",
4
4
  "main": "src/index.jsx",
5
5
  "scripts": {
6
6
  "test": "echo 'No tests'"
@@ -8,7 +8,7 @@ const SvgBarLineChartCompact3A = ({ data }) => {
8
8
  if (!data?.series || !data.labels?.length) return null;
9
9
 
10
10
  const height = 280;
11
- const paddingLeft = 80;
11
+ const paddingLeft = 20;
12
12
  const paddingRight = 30;
13
13
  const paddingTop = 30;
14
14
  const paddingBottom = 70;
@@ -72,7 +72,7 @@ const SvgBarLineChartCompact3A = ({ data }) => {
72
72
  y={textY}
73
73
  fontSize="10"
74
74
  textAnchor="middle"
75
- fill="black"
75
+ fill="white"
76
76
  transform={`rotate(-90 ${textX} ${textY})`}
77
77
  fontWeight="700"
78
78
  >
@@ -88,8 +88,8 @@ const SvgBarLineChartCompact3A = ({ data }) => {
88
88
  y={y(val2025) + h2025 / 2 + 5}
89
89
  fontSize="10"
90
90
  textAnchor="middle"
91
- fill="red"
92
- transform="rotate(-90 40 160)"
91
+ fill="white"
92
+ transform={`rotate(-90 ${centerX + barGap / 2 + barWidth / 2} ${y(val2025) + h2025 / 2 + 5})`}
93
93
  fontWeight="700"
94
94
  >
95
95
  {formatNumber(val2025)}