[BugFix] openbb-charting: Get ChartStyle.plt_style Default Value From UserSettings (#7243)

* set ChartStyle.plt_style from UserSettings

* fix discrepencies between raw figure and pywry for light/dark
This commit is contained in:
Danglewood
2025-10-19 08:43:09 -07:00
committed by GitHub
parent e7e672f7d8
commit 023531fac7
14 changed files with 63 additions and 125 deletions

View File

@@ -530,6 +530,10 @@ function Chart({
...(originalData.layout.font || {}),
color: darkmode ? "#fff" : "#000",
};
originalData.layout.plot_bgcolor = {
...(originalData.layout.plot_bgcolor || {}),
color: darkmode ? "#000" : "#fff",
};
const changeIcon = darkmode ? ICONS.sunIcon : ICONS.moonIcon;