Skip to content

Commit ce52cb4

Browse files
Fixes and updates in the documentation (#282)
1 parent 8641198 commit ce52cb4

File tree

13 files changed

+64
-21
lines changed

13 files changed

+64
-21
lines changed

Writerside/cfg/buildprofiles.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<buildprofiles xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/build-profiles.xsd"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3-
<variables>
4-
<custom-css>custom.css</custom-css>
5-
</variables>
63
<variables>
74
<web-root>https://lets-plot.org</web-root>
85
<header-logo>logo-dark.svg</header-logo>
@@ -12,6 +9,7 @@
129
<algolia-id>7961PKYRXV</algolia-id>
1310
<algolia-index>lets-plot-kotlin</algolia-index>
1411
<algolia-api-key>c281e6fa402631930df5a4d5baf863c5</algolia-api-key>
12+
<custom-css>custom.css</custom-css>
1513
</variables>
1614
<footer>
1715
<copyright>2019-%current_year% JetBrains s.r.o.</copyright>
50.9 KB
Loading
54.5 KB
Loading
33.2 KB
Loading

Writerside/topics/charts.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ Examples:
6464
- [Inset map of Kotlin island](%nb-spatialdataset_kotlin_isl%)
6565
- [Drawing graph edges](%nb-graph_edges%)
6666
- [Formatting labels on plots](%nb-formatting_axes_etc%)
67+
- [Text geoms](%nb-text_geoms%)
68+
- [Repelled labels](%nb-ggrepel%)
6769
- [Variadic lines in `geomPath()` and `geomLine()`](%nb-aes_size_color_variadic_lines%)
6870
- [Spoke geometry](%nb-geom_spoke%)
6971
- [Curve geometry](%nb-geom_curve%)
@@ -90,6 +92,7 @@ Examples:
9092

9193
- [Barchart](%nb-bar%)
9294
- [Pie-chart](%nb-geom_pie%)
95+
- [Combining discrete and continuous layers](%nb-numeric_data_on_discrete_scale%)
9396
- [Annotation labels on pie-chart](%nb-annotations_for_pie%)
9497
- [Annotated barchart](%nb-bar_annotations%)
9598
- ['boxplot_outlier' statistics](%nb-stat_boxplot_outlier%)
@@ -127,6 +130,7 @@ Examples:
127130
- [Dotplot geometry](%nb-geom_dotplot%)
128131
- [Y-Dotplot geometry](%nb-geom_ydotplot%)
129132
- [Violin plot](%nb-geom_violin%)
133+
- [Sina plot](%nb-geom_sina%)
130134
- [Ridgeline plot](%nb-ridgeline_plot%)
131135
- [The `orientation` parameter](%nb-y_orientation%)
132136
- [Parameter `threshold` in `geomHistogram()`](%nb-geom_histogram_threshold%)
@@ -164,7 +168,6 @@ Examples:
164168
Examples:
165169

166170
- [Plotting means and error ranges](%nb-error_bars%)
167-
- [Horizontal error bars and vertical "dodge"](%nb-horizontal_error_bars%)
168171
- [Geometries with dual orientation](%nb-horizontal_geoms%)
169172

170173

Writerside/topics/formats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ See more examples <a href="https://observablehq.com/@d3/d3-format">here</a>.
130130
The number format can be used in a template to create a string with variable substitution.
131131
The string template contains “replacement fields” surrounded by curly braces `{}`.
132132
Anything that is not contained in braces is considered literal text, which is copied unchanged to the result string.
133-
If you need to include a brace character in the literal text, it can be escaped by doubling: {{ and }}.
133+
If you need to include a brace character in the literal text, it can be escaped by doubling: `{{` and `}}`.
134134
This approach is used in functions [`layerTooltips()`](%api_tooltips%/layer-tooltips/index.html) and [`layerLabels()`](%api_annotations%/layer-labels/index.html)
135135
to customize the content of tooltips and annotations.
136136

Writerside/topics/gallery.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Gallery
22

33
<list columns="3">
4+
<li>
5+
<a href="%nb-trading_chart%">
6+
<img alt="Bitcoin daily trend visualization (2024)" src="square-trading_chart.png"/>
7+
</a>
8+
</li>
49
<li>
510
<a href="%nb-magnifier_inset%">
611
<img alt="Creating magnifier inset effect with ggbunch()" src="square-magnifier_inset.png"/>

Writerside/topics/presentation_options.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,26 @@
7373
- [Theme flavors](%nb-theme_flavors%)
7474
- [Themes overview](%nb-themes%)
7575
- [Theme colors for geometries](%nb-geom_theme_colors%)
76-
- [Annotation labels on pie-chart](%nb-annotations_for_pie%)
76+
- [Annotation labels on pie-chart](%nb-annotations_for_pie%)
77+
78+
## Plot Layout Diagrams
79+
80+
These diagrams illustrate layout options and their spatial relationships within plot components.
81+
82+
Option names on the diagrams (e.g., `axisTextSpacingX`) correspond to [`theme()`](%api_theme%/theme/index.html) function arguments.
83+
84+
**Simple options** accept numeric values directly, e.g. `theme(axisTextSpacingX = 10)`.
85+
86+
**Composite options** shown as `axisTitleX: Any?` accept [`elementText()`](%api_theme%/element-text.html) or [`elementRect()`](%api_theme%/element-rect.html) function results, e.g. `theme(axisTitleX = elementText(margin = listOf(5, 5)))`.
87+
88+
### Plot Panel Layout
89+
90+
<img src="plot_layout_scheme.png" alt="Plot layout scheme and theme parameters" style="block"/>
91+
92+
The main plot area consists of nested elements such as the panel, axes, titles, and captions, each with configurable margins and spacing parameters.
93+
94+
### Legend Box Layout
95+
96+
<img src="theme_legend_scheme.png" alt="Theme legend scheme" style="block"/>
97+
98+
The legend area consists of key-label pairs grouped into blocks, with configurable spacing between keys, labels, and blocks.

Writerside/v.list

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<var name="nb-spatialdataset_kotlin_isl" value="%nbviewer_demo%/spatialdataset_kotlin_isl.ipynb"/>
4242
<var name="nb-sunshine_hours" value="%nbviewer_demo%/sunshine_hours.ipynb"/>
4343
<var name="nb-theme_legend_scheme" value="%nbviewer_demo%/theme_legend_scheme.ipynb"/>
44+
<var name="nb-trading_chart" value="%nbviewer_demo%/trading_chart.ipynb"/>
4445
<var name="nb-us_unemployment" value="%nbviewer_demo%/us_unemployment.ipynb"/>
4546
<var name="nb-wind_rose" value="%nbviewer_demo%/wind_rose.ipynb"/>
4647
<!-- Cookbooks -->
@@ -78,16 +79,17 @@
7879
<var name="nb-geom_histogram_threshold" value="%nbviewer_cookbook%/geom_histogram_threshold.ipynb"/>
7980
<var name="nb-geom_lollipop" value="%nbviewer_cookbook%/geom_lollipop.ipynb"/>
8081
<var name="nb-geom_pie" value="%nbviewer_cookbook%/geom_pie.ipynb"/>
82+
<var name="nb-geom_sina" value="%nbviewer_cookbook%/geom_sina.ipynb"/>
8183
<var name="nb-geom_smooth" value="%nbviewer_cookbook%/geom_smooth.ipynb"/>
8284
<var name="nb-geom_spoke" value="%nbviewer_cookbook%/geom_spoke.ipynb"/>
8385
<var name="nb-geom_theme_colors" value="%nbviewer_cookbook%/geom_theme_colors.ipynb"/>
8486
<var name="nb-geom_violin" value="%nbviewer_cookbook%/geom_violin.ipynb"/>
8587
<var name="nb-geom_ydotplot" value="%nbviewer_cookbook%/geom_ydotplot.ipynb"/>
8688
<var name="nb-ggbunch" value="%nbviewer_cookbook%/ggbunch.ipynb"/>
89+
<var name="nb-ggrepel" value="%nbviewer_cookbook%/ggrepel.ipynb"/>
8790
<var name="nb-gggrid_scale_share" value="%nbviewer_cookbook%/gggrid_scale_share.ipynb"/>
8891
<var name="nb-graph_edges" value="%nbviewer_cookbook%/graph_edges.ipynb"/>
8992
<var name="nb-hjust_vjust" value="%nbviewer_cookbook%/hjust_vjust.ipynb"/>
90-
<var name="nb-horizontal_error_bars" value="%nbviewer_cookbook%/horizontal_error_bars.ipynb"/>
9193
<var name="nb-horizontal_geoms" value="%nbviewer_cookbook%/horizontal_geoms.ipynb"/>
9294
<var name="nb-image_101" value="%nbviewer_cookbook%/image_101.ipynb"/>
9395
<var name="nb-image_extent" value="%nbviewer_cookbook%/image_extent.ipynb"/>
@@ -104,6 +106,7 @@
104106
<var name="nb-margins" value="%nbviewer_cookbook%/margins.ipynb"/>
105107
<var name="nb-markdown" value="%nbviewer_cookbook%/markdown.ipynb"/>
106108
<var name="nb-multiple_color_scales" value="%nbviewer_cookbook%/multiple_color_scales.ipynb"/>
109+
<var name="nb-numeric_data_on_discrete_scale" value="%nbviewer_cookbook%/numeric_data_on_discrete_scale.ipynb"/>
107110
<var name="nb-ordering_examples" value="%nbviewer_cookbook%/ordering_examples.ipynb"/>
108111
<var name="nb-panel_border" value="%nbviewer_cookbook%/panel_border.ipynb"/>
109112
<var name="nb-param_width_unit" value="%nbviewer_cookbook%/param_width_unit.ipynb"/>

docs/build_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ then
1010
exit 1
1111
fi
1212

13-
docker_image="registry.jetbrains.team/p/writerside/builder/writerside-builder:241.16003"
13+
docker_image="registry.jetbrains.team/p/writerside/builder/writerside-builder:2025.04.8412"
1414
instance_id="lpk"
1515

1616
root_path=$PWD

0 commit comments

Comments
 (0)