Skip to content

Commit

Permalink
update documentation for barchart styling
Browse files Browse the repository at this point in the history
  • Loading branch information
JL710 committed Jan 18, 2025
1 parent cacebb9 commit dd741dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chart/barchart.typ
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
/// they represent.
///
/// = Styling
/// Can be applied with `cetz.draw.set-style(barchart: (bar-width: 1))`.
///
/// *Root*: `barchart`.
/// #show-parameter-block("bar-width", "float", default: .8, [
/// Width of a single bar (basic) or a cluster of bars (clustered) in the plot.])
/// #show-parameter-block("y-inset", "float", default: 1, [
/// Distance of the plot data to the plot's edges on the y-axis of the plot.])
/// #show-parameter-block("cluster-gap", "float", default: 0, [
/// Spacing between bars insides a cluster.])
/// You can use any `plot` or `axes` related style keys, too.
///
/// The `barchart` function is a wrapper of the `plot` API. Arguments passed
Expand Down

0 comments on commit dd741dc

Please sign in to comment.