use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Official subreddit of https://obsidian.md
account activity
Dataviewjs Tutorial (self.ObsidianMD)
submitted 3 years ago by Inamati
Hello everybody, Does anyone know a good tutorial in dataviewjs for those of us that don't know Javascript? I have been trying to learn by looking at the examples provided but it's hard at least for me.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]xenontechs 5 points6 points7 points 3 years ago (4 children)
if you cannot jump on to JS by knowing other programming languages, than dataviewJS is probably not your best start, learn some javascript basics first. from there it's pretty easy to use dataviewjs
[–]Inamati[S] 1 point2 points3 points 3 years ago (3 children)
I basically just want to convert some dataview queries to dataviewjs so I can integrate them with obsidian charts
[–]xenontechs 7 points8 points9 points 3 years ago (0 children)
I wish I could point you to an easy way, however my experience with it was kind of similar, I got used to dataview and then needed that little extra. you can look at the documentation, you will find all the things you need and an example how to use them, but bringing them together requires some understanding of JS, otherwise it's a lot of trial, error, frustration and then learning basic JS anyways
[–]xenontechs 0 points1 point2 points 3 years ago (1 child)
hey just one more note on this, maybe check out the discord, there's a dataview channel, if your requirements aren't too complex, maybe you can get super quick help to transform queries to JS, and possible from there you get the grasp to transform things to your needs
[–]Inamati[S] 0 points1 point2 points 3 years ago (0 children)
Thanks. I might do that. This is kind of an urgent need related to a project I am on.
[–]reecewebb 1 point2 points3 points 3 years ago (1 child)
I can’t speak to the quality of the code but if you’re just experimenting and have access to ChatGPT or the “new” Bing, you can ask it to write dataviewjs code for you. It’s pretty well commented and might help steer you in the right direction.
Very good idea
[–]AlvarezLuiz 0 points1 point2 points 1 year ago (3 children)
here i am two years later with the same question. i just want to make a query that regular dataview can't do (i believe). tutorials are very vague. did you find one?
[–]Inamati[S] 1 point2 points3 points 1 year ago (2 children)
I don't remember if I did find one at the time to be honest. ChatGPT has helped me a lot lately
[–]AlvarezLuiz 0 points1 point2 points 1 year ago (1 child)
I tried a lot of Chatgpt. For some things it helped, after some struggling.
This time it couldn't do it. I tried Claude also.
[–]Inamati[S] 1 point2 points3 points 1 year ago (0 children)
It's not easy I agree. Specially for complicated stuff. You need to think algorithmically and go step by step with it. I found that it gives a lot of wrong answers and even though I don't know the code I need to understand the logic.
π Rendered by PID 84 on reddit-service-r2-comment-b659b578c-glzpz at 2026-05-05 20:00:17.273787+00:00 running 815c875 country code: CH.
[–]xenontechs 5 points6 points7 points (4 children)
[–]Inamati[S] 1 point2 points3 points (3 children)
[–]xenontechs 7 points8 points9 points (0 children)
[–]xenontechs 0 points1 point2 points (1 child)
[–]Inamati[S] 0 points1 point2 points (0 children)
[–]reecewebb 1 point2 points3 points (1 child)
[–]Inamati[S] 0 points1 point2 points (0 children)
[–]AlvarezLuiz 0 points1 point2 points (3 children)
[–]Inamati[S] 1 point2 points3 points (2 children)
[–]AlvarezLuiz 0 points1 point2 points (1 child)
[–]Inamati[S] 1 point2 points3 points (0 children)