Skip to content

Commit 594ad5d

Browse files
committed
Add example for styling colorbars to heatmap docs
1 parent 0ff75a6 commit 594ad5d

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docsrc/content/heatmaps.fsx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,24 @@ let heat1 =
3737
(***do-not-eval***)
3838
heat1 |> Chart.Show
3939

40-
(***include-value:heat1**)
40+
(***include-value:heat1***)
41+
42+
(**
43+
## Styling Colorbars
44+
45+
All charts that contain colorbars can be styled by the `Chart.withColorBarStyle` function.
46+
Here is an example that adds a title to the colorbar:
47+
*)
48+
49+
let heat2 =
50+
heat1
51+
|> Chart.withColorBarStyle(
52+
"Im the Colorbar",
53+
TitleSide = StyleParam.Side.Right,
54+
TitleFont = Font.init(Size=20)
55+
)
56+
57+
(***do-not-eval***)
58+
heat2 |> Chart.Show
59+
60+
(***include-value:heat2***)

0 commit comments

Comments
 (0)