Page 1 of 1

ColorTheme.Dark

Posted: Tue Mar 28, 2023 2:18 pm
by Norrbotten68
What is the base color in Dark. I need to change the color over first chart so it will be as in the chart.
Grey part is not the chart

Re: ColorTheme.Dark

Posted: Wed Mar 29, 2023 10:07 am
by ArctionKestutis
1. LightningChart Fill objects have GradientFill property.
2. Chart itself has background and ViewXY (rectangle inside axes) has own background.
Therefore, if you want single, non-gradient fill, you should set something like this

Code: Select all

            // set overall ChartBackground
            _Chart.ChartBackground.Color = _colorBackground;
            _Chart.ChartBackground.GradientFill = GradientFill.Solid;
            // set ViewXY background
            _Chart.ViewXY.GraphBackground.Color = _colorBackground;
            _Chart.ViewXY.GraphBackground.GradientFill = GradientFill.Solid;
Hope this helps.

Re: ColorTheme.Dark

Posted: Fri Apr 21, 2023 1:15 pm
by ToneyWulff
Oh thank you more , I had the same question , everything worked!