anki-enhance-main-window icon indicating copy to clipboard operation
anki-enhance-main-window copied to clipboard

Change bar colors?

Open Z1839 opened this issue 5 years ago • 2 comments

Hey, thank you for all your help so far. I was wondering if it was possible to change the colors on the bar?

Z1839 avatar Jul 03 '19 18:07 Z1839

Normally, it's the same color as the column. So if you change the color of the number in the column, it should also change it in the color bar. I can't garantee that it'll work perfectly, it's hard to make the add-on as configurable as that

Arthur-Milchior avatar Jul 04 '19 03:07 Arthur-Milchior

I might come a bit late but I will try to answer to you @Z1839, the colour of the bars are configurable as Arthur said, however, you have to check the exact name of the column referenced by the bar chart, it might be different than the one that you have decided to display.

For example :

I displayed this item (reviewed today/repeated today) with the colour mediumslateblue:

           "absolute": true,
            "color": "mediumslateblue",
            "description": "Number of reviewed cards seen today and number of reviews",
            "header": null,
            "name": "reviewed today/repeated today",
            "overlay": null,
            "percent": false,
            "present": true,
            "subdeck": true

But in the bar graph, the displayed value is corresponding to the field reviewed today

            "description": "Percent bar to do today",
            "header": "Today",
            "name": "bar",
            "names": [
                "review today",
                "learning card",
                "new today",
                "reviewed today"
            ],
            "overlay": null,
            "present": true,
            "subdeck": true

So I need to change the purple in the section reviewed today to the colour mediumslateblue in order to match both the column and the bar graph.

            "absolute": true,
            "color": "purple",
            "description": "Number of reviewed cards seen today",
            "header": null,
            "name": "reviewed today",
            "overlay": null,
            "percent": false,
            "present": false,
            "subdeck": true

It took me a bit of time to understand but once you get it, it works quite well!

nasmi3 avatar Feb 11 '20 14:02 nasmi3