Skip to content

ChartColorSettings.BackgroundColor

property · ChartColorSettings · cAlgo.API

DesktopCLICloud

Gets or sets the color of the chart background.

Definition

Color BackgroundColor {get; set;}
chartColorSettings.BackgroundColor: Color

Returns Color

Examples

Chart.ColorSettings.BackgroundColor = Color.FromHex("#FF101820");
Print("Chart background color: {0}", Chart.ColorSettings.BackgroundColor);
api.Chart.ColorSettings.BackgroundColor = Color.FromHex("#FF101820")
api.Print(f"Chart background color: {api.Chart.ColorSettings.BackgroundColor}")