phibr0 / obsidian-charts

Charts - Obsidian Plugin | Create editable, interactive and animated Charts in Obsidian via Chart.js
https://charts.phib.ro/
GNU Affero General Public License v3.0
568 stars 26 forks source link

Create chart without replacing the table, and live update #46

Closed oktayacikalin closed 2 years ago

oktayacikalin commented 2 years ago

Describe the feature

As of now, the "create chart from table" function replaces the existing table in the markdown file. It would be better to somehow reference the table and just update the chart's code block if the table changes.

Does this fix a problem? If so, specify.

I've a table with monthly data about our warm / cold water and electricity meters and all our radiators. This table is growing each month. I want to keep it, as it's much easier to add new data to it.

Did you consider other alternatives?

No response

Screenshots and recordings

No response

phibr0 commented 2 years ago

That's actually a really good Idea, will look into it.

oktayacikalin commented 2 years ago

Thank you!

phibr0 commented 2 years ago

Done! https://charts.phibr0.de/chart%20from%20table/

oktayacikalin commented 2 years ago

Awesome, sir! :grin: :+1:

oktayacikalin commented 2 years ago

I found a little bug here. The modifier spanGaps seems to convert empty cells to the value 0.