ChartTemplateDisplaySettings.Bars
property · ChartTemplateDisplaySettings · cAlgo.API Since 5.6
DesktopCLICloud
Defines if the Bars is displayed on the chart.
Environment behaviour
Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (ChartTemplate.DisplaySettings).
Definition
bool Bars {get; set;}
chartTemplateDisplaySettings.Bars: bool
Returns bool
Examples
var template = ChartTemplates.Get("My Template");
if (template != null)
{
template.DisplaySettings.Bars = true;
Print("Template shows bars: {0}", template.DisplaySettings.Bars);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
template.DisplaySettings.Bars = True
api.Print(f"Template shows bars: {template.DisplaySettings.Bars}")