@@ -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,
@@ -203,9 +204,15 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
203204 "fill-tremor-content" ,
204205 // dark
205206 "dark:fill-dark-tremor-content" ,
207+ // common
208+ "stroke-1" ,
209+ // light
210+ "stroke-tremor-border" ,
211+ // dark
212+ "dark:stroke-dark-tremor-border" ,
206213 ) }
207214 tickLine = { false }
208- axisLine = { false }
215+ axisLine = { showAxisLine }
209216 angle = { rotateLabelX ?. angle }
210217 dy = { rotateLabelX ?. verticalShift }
211218 height = { rotateLabelX ?. xAxisHeight }
@@ -236,9 +243,15 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
236243 "fill-tremor-content" ,
237244 // dark
238245 "dark:fill-dark-tremor-content" ,
246+ // common
247+ "stroke-1" ,
248+ // light
249+ "stroke-tremor-border" ,
250+ // dark
251+ "dark:stroke-dark-tremor-border" ,
239252 ) }
240253 tickLine = { false }
241- axisLine = { false }
254+ axisLine = { showAxisLine }
242255 tickFormatter = { valueFormatter }
243256 minTickGap = { tickGap }
244257 allowDecimals = { allowDecimals }
@@ -261,7 +274,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
261274 < YAxis
262275 width = { yAxisWidth }
263276 hide = { ! showYAxis }
264- axisLine = { false }
277+ axisLine = { showAxisLine }
265278 tickLine = { false }
266279 type = "number"
267280 domain = { yAxisDomain as AxisDomain }
@@ -275,6 +288,12 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
275288 "fill-tremor-content" ,
276289 // dark
277290 "dark:fill-dark-tremor-content" ,
291+ // common
292+ "stroke-1" ,
293+ // light
294+ "stroke-tremor-border" ,
295+ // dark
296+ "dark:stroke-dark-tremor-border" ,
278297 ) }
279298 tickFormatter = {
280299 relative ? ( value : number ) => `${ ( value * 100 ) . toString ( ) } %` : valueFormatter
@@ -298,7 +317,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
298317 width = { yAxisWidth }
299318 hide = { ! showYAxis }
300319 dataKey = { index }
301- axisLine = { false }
320+ axisLine = { showAxisLine }
302321 tickLine = { false }
303322 ticks = { startEndOnly ? [ data [ 0 ] [ index ] , data [ data . length - 1 ] [ index ] ] : undefined }
304323 type = "category"
@@ -313,6 +332,12 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
313332 "fill-tremor-content" ,
314333 // dark
315334 "dark:fill-dark-tremor-content" ,
335+ // common
336+ "stroke-1" ,
337+ // light
338+ "stroke-tremor-border" ,
339+ // dark
340+ "dark:stroke-dark-tremor-border" ,
316341 ) }
317342 >
318343 { yAxisLabel && (
0 commit comments