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

Logarithmic axis option #57

Open justemu opened 2 years ago

justemu commented 2 years ago

Describe the feature

I propose to add an option to enable logarithmic axis in the bar charts.

It happens that we need to show a group of data spaning from very small to really big.

Does this fix a problem? If so, specify.

No

Did you consider other alternatives?

Currently we have to calculate it with a function log before charting with this plugin. However, these log-function processed data are not quite readable, or even appear confusing to the readers.

It would be nice if there is a option in the bar chart's axis to turn the axis to logarithmic

Screenshots and recordings

image

EliasMheart commented 2 months ago

+1 I'd love this functionality as well.

I'm guessing that a flag which triggers a run through the data-values parsed from the YAML once, and applies the natural logarithm to each entry, would have the same effect without having to touch the axes, though.