Skip to content

Commit 72953ac

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # build.gradle.kts
2 parents 97e1da4 + 0d61f21 commit 72953ac

File tree

16 files changed

+80
-41
lines changed

16 files changed

+80
-41
lines changed

Writerside/images/Python4DS.png

-36.3 KB
Binary file not shown.
-472 KB
Binary file not shown.
Binary file not shown.
Loading

Writerside/topics/annotations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Annotating Charts
22

33
You can customize the content of annotations for pie and bar charts by using the parameter `labels` of the corresponding functions.
4+
The parameter takes as value the result of the [`layerLabels()`](%api_annotations%/layer-labels/index.html) function call.
45

56
[Learn more (datalore link)](%nbp-annotations%).
67

Writerside/topics/charts.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,18 @@ Examples:
218218
Examples:
219219

220220
- [Flipped coordinates](%nb-coord_flip%)
221-
- [Polar coordinate system](%nb-coord_polar%)
221+
- [Polar coordinate system](%nb-coord_polar%)
222+
223+
224+
## Legends and Guides
225+
226+
[`guideLegend()`](%api_scale%/guide-legend.html),
227+
[`guideColorbar()`](%api_scale%/guide-colorbar.html),
228+
[`guides()`](%api_scale%/guides.html),
229+
[`layerKey()`](%api_scale%/layer-key.html)
230+
231+
Examples:
232+
233+
- [Legend customization](%nb-legend%)
234+
- [Manual legend](%nb-manual_legend%)
235+
- [Customize legend appearance](%nb-legend_theme%)

Writerside/topics/formats.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ The numeric format strings are used to format common numeric types. The general
7878
- `Z` - zetta, 10²¹
7979
- `Y` - yotta, 10²⁴
8080

81+
<note>
82+
These formatting rules are compatible with formatting from the d3 library, so you can find out more about the options listed above by visiting <a href="https://d3js.org/d3-format">this page</a>.
83+
</note>
84+
8185
### Number Format Examples
8286

8387
Let's format the number `1024`:
@@ -107,12 +111,20 @@ Some other examples:
107111
```
108112
format number result
109113
.1f 0.42 "0.4"
110-
.3g 0.4449 "0.445"
111-
,.12g -4200000 "-4,200,000"
112-
0,.2f 1234567.449 "1,234,567.45"
114+
0,.1f 1234567.89 "1,234,567.9"
113115
+$,.2f 1e4 "+$10,000.00"
116+
+$,.2~f 1e4 "+$10,000"
117+
~g 0.0000042 "0.0000042"
118+
~g 0.00000042 "4.2e-7"
119+
~g 420000 "420000"
120+
~g 4200000 "4.2e+6"
121+
,.2g -4231 "-4,2e+3"
122+
,.6g -4231 "-4,231.00"
123+
,.6~g -4231 "-4,231"
114124
```
115125

126+
See more examples <a href="https://observablehq.com/@d3/d3-format">here</a>.
127+
116128
## String Template
117129

118130
The number format can be used in a template to create a string with variable substitution.
@@ -220,5 +232,5 @@ You can format text in annotations, see: [Annotating Charts](annotations.md).
220232
## Demo Notebooks
221233

222234
- [Formatting labels on plots](%nb-formatting_axes_etc%)
223-
- [The `label_format` parameter in `geom_text()`](%nb-label_format%)
235+
- [Text geoms](%nb-text_geoms%)
224236
- [Exponent format in Lets-Plot](%nb-superscript_exponent%)

Writerside/topics/gallery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<list columns="3">
44
<li>
5-
<a href="%nb-legend_theme%">
6-
<img alt="Customize legend appearance" src="square-legend_theme.png"/>
5+
<a href="%nb-theme_legend_scheme%">
6+
<img alt="Theme legend scheme" src="square-theme_legend_scheme.png"/>
77
</a>
88
</li>
99
<li>

Writerside/topics/geospatial_charts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,6 @@ When declaring additional GeoTools dependencies, check the compatible version in
106106
<img src="projection_provided.png" alt="Using exotic map projections" height="339"/>
107107

108108
- Label geometry:
109-
[geom_label.ipynb](%nb-geom_label%)
109+
[text_geoms.ipynb](%nb-text_geoms%)
110110

111-
<img src="geom_label.png" alt="Label geometry" width="480"/>
111+
<img src="text_geoms.png" alt="Text geoms" width="480"/>

0 commit comments

Comments
 (0)