obsidian-tracker icon indicating copy to clipboard operation
obsidian-tracker copied to clipboard

Allow axis labels to be null

Open kepano opened this issue 2 years ago • 2 comments

For many charts I find that the axis label is redundant, since it is obvious from the data or the title what the chart is measuring.

I could not find a way to hide the axis label such that the chart properly resizes with the viewbox. For example, if I set the axis labels to transparent, there is a gap.

Proposed solution, could be one of the following:

  1. Allow xAxisLabel: null and yAxisLabel: null
  2. Add showXAxis: false and showYAxis: false

kepano avatar Feb 13 '22 23:02 kepano

I just found a hacky way around this. A little strange because it does require a space between the quotes

    xAxisLabel: ' '
    yAxisLabel: ' '

kepano avatar Feb 13 '22 23:02 kepano

The second way you proposed looks good. Will do.

pyrochlore avatar Feb 24 '22 12:02 pyrochlore