@@ -84,6 +84,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
8484 showTooltip = true ,
8585 showLegend = true ,
8686 showGridLines = true ,
87+ showAxisLine = false ,
8788 autoMinValue = false ,
8889 minValue,
8990 maxValue,
@@ -202,9 +203,15 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
202203 "fill-tremor-content" ,
203204 // dark
204205 "dark:fill-dark-tremor-content" ,
206+ // common
207+ "stroke-1" ,
208+ // light
209+ "stroke-tremor-border" ,
210+ // dark
211+ "dark:stroke-dark-tremor-border" ,
205212 ) }
206213 tickLine = { false }
207- axisLine = { false }
214+ axisLine = { showAxisLine }
208215 angle = { rotateLabelX ?. angle }
209216 dy = { rotateLabelX ?. verticalShift }
210217 height = { rotateLabelX ?. xAxisHeight }
@@ -235,9 +242,15 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
235242 "fill-tremor-content" ,
236243 // dark
237244 "dark:fill-dark-tremor-content" ,
245+ // common
246+ "stroke-1" ,
247+ // light
248+ "stroke-tremor-border" ,
249+ // dark
250+ "dark:stroke-dark-tremor-border" ,
238251 ) }
239252 tickLine = { false }
240- axisLine = { false }
253+ axisLine = { showAxisLine }
241254 tickFormatter = { valueFormatter }
242255 minTickGap = { tickGap }
243256 allowDecimals = { allowDecimals }
@@ -260,7 +273,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
260273 < YAxis
261274 width = { yAxisWidth }
262275 hide = { ! showYAxis }
263- axisLine = { false }
276+ axisLine = { showAxisLine }
264277 tickLine = { false }
265278 type = "number"
266279 domain = { yAxisDomain as AxisDomain }
@@ -274,6 +287,12 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
274287 "fill-tremor-content" ,
275288 // dark
276289 "dark:fill-dark-tremor-content" ,
290+ // common
291+ "stroke-1" ,
292+ // light
293+ "stroke-tremor-border" ,
294+ // dark
295+ "dark:stroke-dark-tremor-border" ,
277296 ) }
278297 tickFormatter = {
279298 relative ? ( value : number ) => `${ ( value * 100 ) . toString ( ) } %` : valueFormatter
@@ -297,7 +316,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
297316 width = { yAxisWidth }
298317 hide = { ! showYAxis }
299318 dataKey = { index }
300- axisLine = { false }
319+ axisLine = { showAxisLine }
301320 tickLine = { false }
302321 ticks = { startEndOnly ? [ data [ 0 ] [ index ] , data [ data . length - 1 ] [ index ] ] : undefined }
303322 type = "category"
@@ -312,6 +331,12 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
312331 "fill-tremor-content" ,
313332 // dark
314333 "dark:fill-dark-tremor-content" ,
334+ // common
335+ "stroke-1" ,
336+ // light
337+ "stroke-tremor-border" ,
338+ // dark
339+ "dark:stroke-dark-tremor-border" ,
315340 ) }
316341 >
317342 { yAxisLabel && (
0 commit comments