1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 10:38:54 +08:00

Add headers; fix images and links

This commit is contained in:
lana-k
2022-01-06 22:34:07 +01:00
parent 0698522fa5
commit 27bb23ac3d
10 changed files with 51 additions and 86 deletions

View File

@@ -1,9 +1,10 @@
# Pivot table UI
# Pivot table
## Pivot table UI
Sqliteviz allows building pivot tables and visualizing them. To build a pivot
run a query to get data. Then open visualisation panel by clicking <img
src="./img/visualisation.svg"/> in any of the two side toolbars and choose a
pivot mode by clicking <img src="./img/pivot.svg"/>.
run a query to get data. Then open visualisation panel by clicking ![](./img/visualisation.svg)
in any of the two side toolbars and choose a pivot mode by clicking ![](./img/pivot.svg).
A pivot visualisation has the following settings:
@@ -18,54 +19,24 @@ A pivot visualisation has the following settings:
- View pivot table visualisation. It can be a table, a heatmap, a chart,
etc. See some examples of different views of the same pivot table below.
<p align="center">
<img class="figure" src="./img/Screenshot_pivot_table.png" width="900"/>
</p>
<p align="center">
<sub>
Fig. 1: Table
</sub>
</p>
![Fig. 1: Table](./img/Screenshot_pivot_table.png)
<p align="center">
<img class="figure" src="./img/Screenshot_pivot_heatmap.png" width="900"/>
</p>
<p align="center">
<sub>
Fig. 2: Heatmap
</sub>
</p>
![Fig. 2: Heatmap](./img/Screenshot_pivot_heatmap.png)
<p align="center">
<img class="figure" src="./img/Screenshot_pivot_barchart.png" width="900"/>
</p>
<p align="center">
<sub>
Fig. 3: Horizontal Stacked Bar Chart
</sub>
</p>
![Fig. 3: Horizontal Stacked Bar Chart](./img/Screenshot_pivot_barchart.png)
There are several built-in chart views for a pivot. But you can build your own
with `Custom chart` view (fig. 4).
<p align="center">
<img class="figure" src="./img/Screenshot_pivot_custom chart.png"
width="900"/>
</p>
<p align="center">
<sub>
Fig. 4: Custom Chart
</sub>
</p>
![Fig. 4: Custom Chart](./img/Screenshot_pivot_custom chart.png)
> **Note:** You can switch to other pivot views and back to `Custom chart`
> all your custom chart settings will be remembered. But if you switch the
> visualisation mode from pivot to any other mode, unsaved changes will be lost.
You can save any visualisation as an image by clicking <img
src="./img/camera.svg"/>.
You can save any visualisation as an image by clicking ![](./img/camera.svg).
# Pivot table SQL
## Pivot table SQL
Pivot table (in the form of a result set) can be built on the SQL-level and,
technically speaking, can be visualised as any other result set. Practically