@@ -84,6 +84,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
84
84
showTooltip = true ,
85
85
showLegend = true ,
86
86
showGridLines = true ,
87
+ showAxisLine = false ,
87
88
autoMinValue = false ,
88
89
minValue,
89
90
maxValue,
@@ -202,9 +203,15 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
202
203
"fill-tremor-content" ,
203
204
// dark
204
205
"dark:fill-dark-tremor-content" ,
206
+ // common
207
+ "stroke-1" ,
208
+ // light
209
+ "stroke-tremor-border" ,
210
+ // dark
211
+ "dark:stroke-dark-tremor-border" ,
205
212
) }
206
213
tickLine = { false }
207
- axisLine = { false }
214
+ axisLine = { showAxisLine }
208
215
angle = { rotateLabelX ?. angle }
209
216
dy = { rotateLabelX ?. verticalShift }
210
217
height = { rotateLabelX ?. xAxisHeight }
@@ -235,9 +242,15 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
235
242
"fill-tremor-content" ,
236
243
// dark
237
244
"dark:fill-dark-tremor-content" ,
245
+ // common
246
+ "stroke-1" ,
247
+ // light
248
+ "stroke-tremor-border" ,
249
+ // dark
250
+ "dark:stroke-dark-tremor-border" ,
238
251
) }
239
252
tickLine = { false }
240
- axisLine = { false }
253
+ axisLine = { showAxisLine }
241
254
tickFormatter = { valueFormatter }
242
255
minTickGap = { tickGap }
243
256
allowDecimals = { allowDecimals }
@@ -260,7 +273,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
260
273
< YAxis
261
274
width = { yAxisWidth }
262
275
hide = { ! showYAxis }
263
- axisLine = { false }
276
+ axisLine = { showAxisLine }
264
277
tickLine = { false }
265
278
type = "number"
266
279
domain = { yAxisDomain as AxisDomain }
@@ -274,6 +287,12 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
274
287
"fill-tremor-content" ,
275
288
// dark
276
289
"dark:fill-dark-tremor-content" ,
290
+ // common
291
+ "stroke-1" ,
292
+ // light
293
+ "stroke-tremor-border" ,
294
+ // dark
295
+ "dark:stroke-dark-tremor-border" ,
277
296
) }
278
297
tickFormatter = {
279
298
relative ? ( value : number ) => `${ ( value * 100 ) . toString ( ) } %` : valueFormatter
@@ -297,7 +316,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
297
316
width = { yAxisWidth }
298
317
hide = { ! showYAxis }
299
318
dataKey = { index }
300
- axisLine = { false }
319
+ axisLine = { showAxisLine }
301
320
tickLine = { false }
302
321
ticks = { startEndOnly ? [ data [ 0 ] [ index ] , data [ data . length - 1 ] [ index ] ] : undefined }
303
322
type = "category"
@@ -312,6 +331,12 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
312
331
"fill-tremor-content" ,
313
332
// dark
314
333
"dark:fill-dark-tremor-content" ,
334
+ // common
335
+ "stroke-1" ,
336
+ // light
337
+ "stroke-tremor-border" ,
338
+ // dark
339
+ "dark:stroke-dark-tremor-border" ,
315
340
) }
316
341
>
317
342
{ yAxisLabel && (
0 commit comments