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
592 stars 27 forks source link

Allow selecting columns / rows to skip when generating from a table #66

Open pauby opened 1 year ago

pauby commented 1 year ago

Describe the feature

I have a table that is like this:

| Name          | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | Totals |
| ------------- | ----- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | --- | --- | --- | ------ |
| Blah           | 127  | 230 | 151 | 133 | 242 | 278 | 220 | 497 | 152 | 63 |  87 | 42  |  309  |

(These are random numbers so total doesn't add here but you get the idea).

And my chart is like this:

type: line
id: table
layout: rows
width: 80%
beginAtZero: true

I want to generate a chart but ignore the last column (Totals). The select statement on the page suggests you can do it but I think I'm misinterpreting it.

Is there a way to skip this column with the layout: rows format?

Does this fix a problem? If so, specify.

No.

Did you consider other alternatives?

I did. But I can't find much documentation on select. It might be I'm holding it wrong.

Screenshots and recordings

No response