Follow up...

I just pulled up a bar chart in Firefox and tried to inspect the bars, and unfortunately, as it appeared when looking at the HTML file directly, those colors are hard coded in the chart data.

At this point, I'd say an RFE is in order which would use color variable names that could then be targeted via a stylesheet with the default/current values coded in the existing style section of the file.


Regards,
Adrien

On 6/5/23 10:23 AM, Adrien Monteleone wrote:
Maybe.

Options > General for the report allows you to set a Stylesheet. This list is populated from those found in Edit > Stylesheets where you can modify an existing one, use the CSS stylesheet, or create your own.

However, the charts are created with JavaScript and I'm not sure how to create CSS rules that target those elements. (I've just never had to do so before, though I'm sure it is possible.) But you can export a chart as an HTML file, then open it in a text editor to examine. Or better, open it in any modern browser and use the built in inspector to play with it and figure out how to craft CSS rules that work.

Then create a Saved Report Configuration using your stylesheet with the new rules.

If for any reason you can't directly target those bars with CSS, then you'd have to file an Enhancement Request to expose them to CSS for doing so.

_______________________________________________
gnucash-user mailing list
[email protected]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to