File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ class AreaStack extends PureComponent {
119
119
width,
120
120
height,
121
121
ticks,
122
+ areas,
122
123
}
123
124
124
125
return (
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ class StackedBarGrouped extends PureComponent {
69
69
areas = series . map ( ( stack , stackIndex ) => {
70
70
return stack . map ( ( serie , keyIndex ) => {
71
71
return serie . map ( ( entry , entryIndex ) => {
72
+
72
73
const leftMargin = series . length > 1 ? innerBarSpace / 2 : 0
74
+
73
75
const path = shape
74
76
. area ( )
75
77
. x0 ( d => x ( d [ 0 ] ) )
@@ -111,6 +113,7 @@ class StackedBarGrouped extends PureComponent {
111
113
showTopBorder ,
112
114
showBottomBorder ,
113
115
)
116
+
114
117
return {
115
118
path : this . commandsToSvgPath ( commands ) ,
116
119
color : colors [ stackIndex ] [ keyIndex ] ,
@@ -174,6 +177,7 @@ class StackedBarGrouped extends PureComponent {
174
177
if ( showTopBorder ) {
175
178
const topRight1 = [ x1 , y0 + borderRadius ]
176
179
const topRight2 = [ x1 - borderRadius , y0 ]
180
+
177
181
commands . push ( { marker : 'L' , values : topRight1 } )
178
182
commands . push ( {
179
183
marker : 'C' ,
@@ -193,7 +197,7 @@ class StackedBarGrouped extends PureComponent {
193
197
commands
194
198
. map ( command => `${ command . marker } ${ command . values . join ( ',' ) } ` )
195
199
. join ( ' ' )
196
- . trim ( )
200
+ . trim ( ) ;
197
201
198
202
calcExtent ( values ) {
199
203
const {
You can’t perform that action at this time.
0 commit comments