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
610 stars 28 forks source link

Use CSV for source instead of text #17

Open jorgb opened 3 years ago

jorgb commented 3 years ago

I would like to use a CSV to plot my chart. I think it could be very powerful to show the contents of any column plotted without cluttering the text with series that might run out of sync. Now that CSV seems to be supported by more and more plugins it is also a handy way to add data to Obsidian like book collections, or taking BP measurements, running stats etc for example.

For example;

chart
        type: line
        source: bp_stats.csv
        labels: Date 
        series:
          - title: Systolic
            data: Sys
          - title: Diastolic
            data: Dia

And the CSV looks like (generated with Libre Office):

Date,Sys,Dia
2021-08-15,135,80
2021-08-16,128,76
Oblique82 commented 2 years ago

I am also very interested in this since it is possible to export apple HealthKit data to csv. I would really like to chart this and embed in daily notes with your plug-in

phibr0 commented 2 years ago

Obsidian doesn't handle CSV Files at all, the Plugin now supports linking to markdown tables though. These can be easily converted with tools like this one: https://tableconvert.com/csv-to-markdown

jorgb commented 2 years ago

Thank you. I agree that Obsidian doesn't handle CSV natively, however there are plugins that do help with editing them, and obsidian can still show non supported files to open natively in the file explorer.

As far as I am concerned, the CSV is a text file that just happens to live in my vault and can be enriched by making a graph of it, but I can also use external tools to edit or generate the CSV. But I also understand that Obsidian sync makes it hard to get these files on all devices.

So, I am fine for now with table support, thank you for making that possible. I will check out how that works.

On Sun, 20 Mar 2022, 21:32 Phillip, @.***> wrote:

Obsidian doesn't handle CSV Files at all, the Plugin now supports linking to markdown tables though. These can be easily converted with tools like this one: https://tableconvert.com/csv-to-markdown

— Reply to this email directly, view it on GitHub https://github.com/phibr0/obsidian-charts/issues/17#issuecomment-1073343383, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA23JW7DUZQHFG7YA5OEKWDVA6DNBANCNFSM5CHAQNPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>