timvink / mkdocs-charts-plugin

Mkdocs plugin to add vegalite charts to your pages
https://timvink.github.io/mkdocs-charts-plugin/
MIT License
80 stars 6 forks source link

Issue with Axis Titles #20

Open danybonfil opened 1 year ago

danybonfil commented 1 year ago

Deat Timvink,

I found an issue when trying to place the same Vega Lite graph in two separate Github Pages The repository is https://github.com/infovote-io

When I create the plot margingrowtheval_hcon.json I can see it in the index page, however when I copy the same graph in the v2 page it does not display: Index:

image

V2:

image

I included 2 examples more of this issue, the margingrowtheval_rep.json tries to achieve the same result but the repeat function does not allow me to display only one of the axis titles, it is either both together or only one for both. Finally, the margingrowtheval_sep.json includes the variable name instead of a title for the x-axis

To contrast this same behavior, the carterclinton.json graph is on both pages (index and v2) and it does not have this issue. It only appears when I want to copy margingrowtheval_hcon.json which uses more than one x-axis title.

Any help is greatly appreciated. Thank you :)

timvink commented 11 months ago

That indeed looks like a bug. Let's check first: are you on the latest version of this plugin? Use pip list | grep mkdocs-charts-plugin to see the version, pip install -U mkdocs-charts-plugin to upgrade.

If so; I cannot see your github repo. Would help to see the example. It probably has to do with how we resolve the paths to the home directory. There might be inference with other plugins also.