:gift_heart: Sponsor this project on Github or :coffee: Get me a coffee if you like this plugin!
Render tables with basic math functions using data from your blocks. Just use the slash command /Render table to get started!
In the examples below, the {{renderer ...}} is automatically generated when you type /Render table, so you just need to add the portion from rows onwards.
To add the mathematical formulas, add it to the same block as rows. Fr example, sum-2 sums up the values in column 2 of the table.
To draw a table above, you can use any one of the below approaches, with the flags data, rows or cols.
data- {{renderer :tables_656a0198-9b78-4d81-ae9a-09811cce3c8d}}
- data
- Category
- Fruits
- Vegetables
- Fruits and Vegetables
- Fresh Produce
- Apples
- Lettuce
- Tomatoes
- Price
- 1
- 3
- 5
rows- {{renderer :tables_656a0198-9b78-4d81-ae9a-09811cce3c8d}}
- rows
- Category
- Fresh Produce
- Price
- Fruits
- Apples
- 1
- Vegetables
- Lettuce
- 3
- Fruits and Vegetables
- Tomatoes
- 5
cols- {{renderer :tables_656a0198-9b78-4d81-ae9a-09811cce3c8d}}
- cols
- Category
- Fresh Produce
- Price
- Fruits
- Apples
- 1
- Vegetables
- Lettuce
- 3
- Fruits and Vegetables
- Tomatoes'
- 5
The following basic statistical calculations are available:
To use any of the above, use its shortcut (in brackets above) with the columns that you would like to compute (<shortcut>-<column>).
sum-3 average-3 median-3 mode-3 will render:

*Percentile requires an additional flag to indicate the perecntile that you would like to compute. percentile-3-50 will compute the 50th percentile of the 3rd column.

Look for logseq-tablerender-plugin in the marketplace and install from there.
stats-lite for providing the calculations.
$ claude mcp add logseq-tablerender-plugin \
-- python -m otcore.mcp_server <graph>