stufro / obsidian-hill-charts

Add Hill Charts to your Obsidian notes.
MIT License
10 stars 0 forks source link

Drag'n'Drop chart points #1

Open stufro opened 11 months ago

stufro commented 11 months ago

I want to be able to drag a point to a new position on a chart and have the code block updated with the new position.

nilarkian commented 10 months ago

any leads on how to even go about doing this? the hillchart.co implementation is 🤌🤌

stufro commented 10 months ago

I took a lot of inspiration for the current rendering implementation from this repo: https://github.com/nagi1/hill-chart

So using that I'd have an idea of where to start, it would just be a case of then updating the yml in the note after a dragend event.

shanegriffiths commented 1 month ago

I'd love to see this implemented.

stufro commented 3 weeks ago

I'd love to see this implemented.

Me too 😅 I did get fairly close on a branch but I got to the point where I think I need to rewrite it in React as I was trying to implement my own render loop which wasn't playing nice with obsidian.

If any actual JS Devs can give me some advice on this it would be hugely appreciated!