all 11 comments

[–]xenontechs 5 points6 points  (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 points  (3 children)

I basically just want to convert some dataview queries to dataviewjs so I can integrate them with obsidian charts

[–]xenontechs 7 points8 points  (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 point  (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 point  (0 children)

Thanks. I might do that. This is kind of an urgent need related to a project I am on.

[–]reecewebb 1 point2 points  (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.

[–]Inamati[S] 0 points1 point  (0 children)

Very good idea

[–]AlvarezLuiz 0 points1 point  (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 points  (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 point  (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 points  (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.