From my understanding, you are going to count the number of occurrences of the two tags (‘Office’ and ‘Home’), sum the numbers of each tag over specified dates, and draw a pie chart based on it. You can try the following settings
searchType: tag
searchTarget: Office, Home
folder: '3.RESOURCES/Logs/Planner/2021'
dateFormat: 'dddd, MMMM Do YYYY'
pie:
data: '{{sum(dataset(0))}}, {{sum(dataset(1))}}'
dataColor: '#4daf4a,#377eb8'
label: Office, Home
ratioInnerRadius: 0.3
Thank you … it did work. I would love to know how you end up with this code … I can’t really understand this plugin yet It is amazing on what you can do…
there is only one YT video abt this plugin but its not very elaborate I am afraid
searchType: tag --> The type of the targets we are searching for
searchTarget: Office, Home --> Tag names
folder: '3.RESOURCES/Logs/Planner/2021' --> The folder containing files to search
dateFormat: 'dddd, MMMM Do YYYY' --> The date format in the file name
pie:
data: '{{sum(dataset(0))}}, {{sum(dataset(1))}}' --> The data (number or expression) for each circular sector, separated by comma
dataColor: '#4daf4a,#377eb8' --> The color of each circular sector
label: Office, Home --> The label of each circular sector
ratioInnerRadius: 0.3 --> Make a donut
More information could be found in documents.
You can also DM me on the official Discord channel (id: pyrochlore).
Currently I don’t have much time to make videos, but
I’ll try to make a flowchart to explain the creation process first.