@@ -26,7 +26,7 @@ const RevenueChart = () => {
26
26
27
27
const isMobile = windowWidth < 768 ;
28
28
const labelFontSize = isMobile ? '9px' : '13px' ;
29
- const barThicknessSize = isMobile ? '25' : '40 ' ;
29
+ const barThicknessSize = isMobile ? '25' : '30 ' ;
30
30
31
31
32
32
const data = {
@@ -39,15 +39,35 @@ const RevenueChart = () => {
39
39
] ,
40
40
backgroundColor : '#84D187' ,
41
41
hoverBackgroundColor : '#00B207' ,
42
- barThickness : barThicknessSize
42
+ barThickness : barThicknessSize ,
43
+ borderRadius : { topLeft : 5 , topRight : 5 , bottomLeft : 5 , bottomRight : 5 } , // Rounded on all sides
44
+ borderSkipped : false , // Ensures full rounding effect
45
+ order : 1 ,
46
+ } ,
47
+ {
48
+ label : '' , // Invisible padding dataset
49
+ data : Array ( 12 ) . fill ( 15 ) , // Adds vertical spacing (adjust as needed)
50
+ backgroundColor : 'rgba(0,0,0,0)' , // Fully transparent
51
+ barThickness : barThicknessSize ,
52
+ order : 2 ,
43
53
} ,
44
54
{
45
55
label : 'Loss' ,
46
56
data : [
47
57
15 , 0 , 25 , 50 , 0 , 100 , 10 , 0 , 80 , 0 , 0 , 0
48
58
] ,
49
59
backgroundColor : '#EDF2EE' ,
50
- barThickness : barThicknessSize
60
+ barThickness : barThicknessSize ,
61
+ borderRadius : 5 ,
62
+ borderSkipped : false , // Keeps the bars visually clean
63
+ order : 3 ,
64
+ } ,
65
+ {
66
+ label : '' , // Invisible padding dataset
67
+ data : Array ( 12 ) . fill ( 20 ) , // Adds vertical spacing (adjust as needed)
68
+ backgroundColor : 'rgba(0,0,0,0)' , // Fully transparent
69
+ barThickness : barThicknessSize ,
70
+ order : 0 ,
51
71
} ,
52
72
] ,
53
73
} ;
0 commit comments