You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to achieve:
I have a file with a bunch of tables. I have a dataviewjs code block which parses the tables inside the given file. I want to format the data in consumable way and plot the formatted data using charts. I'm using obsidian-charts for this.
Problem
The formatting data can grow quite big. So using dv.view(). However not able to figure out how to return data from the actual js file.
Current Approach
Send the chart render function and container element to the JS file.
This is a problem as the code gets very bloated
Pass an object in the arg to the JS file. Put the results in a property of the object
I need to use setTimeout() in order to access the actual value. Otherwise the object does not seem to be picking the results
Both approaches does not seem like a proper code.
It would be great if I can just get the result as return value of await dv.view(filename, args)
Is this possible ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Trying to achieve:
I have a file with a bunch of tables. I have a
dataviewjs
code block which parses the tables inside the given file. I want to format the data in consumable way and plot the formatted data using charts. I'm using obsidian-charts for this.Problem
The formatting data can grow quite big. So using
dv.view()
. However not able to figure out how to return data from the actual js file.Current Approach
This is a problem as the code gets very bloated
I need to use setTimeout() in order to access the actual value. Otherwise the object does not seem to be picking the results
Both approaches does not seem like a proper code.
It would be great if I can just get the result as return value of
await dv.view(filename, args)
Is this possible ?
Beta Was this translation helpful? Give feedback.
All reactions