Create dynamic mermaid diagrams and charts in bases.
- Go to a base
- Add one of the new View Types
- Configure the view options: e.g. the title, the mermaid config and any view specific settings
- (Configure the sorting, grouping, filtering and properties as usual if they are supported for this view)
Mermaid configs can be used to change the visual style or specific mermaid settings when they are not yet supported by this plugin.
The config can be set for all views globally in the plugin settings, or for specific view types. There is also a local override possible for each individual view in a base (see the last setting).
In the plugin settings the syntax used is frontmatter config:
config:
look: "handDrawn"
theme: "neutral"
In the base view settings the syntax used is directives:
%%{init: { "look": "handDrawn", "theme": "neutral" }}%%
Currently supported are:
Can be used to show the links between notes. Good for small amounts of results.
This will display all notes based on the filters of the base as labels. The labels will show either clickable links of the note names, or the selected properties (depending on the settings). It will also show any links between the notes as lines. If the links come from properties their names will be visible on the lines. Supports grouping, by adding boxes around each group.
Works similar to flowcharts. A bit better for bigger amounts of results, but without note link support.
Shows your notes in chronological order.
Select a time property in the view settings to order by this. If notes share the same date they will be shown vertically below eachother. You can also choose a cutoff to group by year, month, day, hour, etc.
Can be used to show the flow of data
Configuring this is a bit experimental, as there is no support for a list of properties. Instead write triplets of "Source Name", "Target Name" and "Value Property" into the multitext field. The first 2 can be any string, but the latter should be the name of a property or formula. If the value is numeric, it will be added up across the whole view. If the value is a boolean, it will add up all positive ones.
Can show a property as a pie chart.
This will show how often a property is used across all files specified by the filters. Optionally a second numeric property can be set to aggregate that property instead of counting 1 for each file.
Can show 1 dimensional data as bar or line chart.
Requires setting 1 numeric property, for example "file.size". Will use all files specified by the filters. Supports sorting.
Can show 2 dimensional data as points on a plane.
Requires setting 2 numeric properties, for example "x" and "y". By default the smallest and biggest valeus are used for the range, but you can specify minimum and maximum manually. The axes and quadrants can all be labeled. Supports grouping, by coloring nodes by their group.
- Add gantt view type
- Add radar chart view type (waiting for mermaid v11.6.0)
- Add labels on XY chart (waiting for mermaid v11.7.0)
- More styling options in the view settings instead of relying on the mermaid config
- Support multiple lines in the XY chart
- Support grouping in more view types
- Property dropdown options to only show appropriate types
