ColorTheme.Dark

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Norrbotten68
Posts: 4
Joined: Mon Sep 12, 2022 5:25 pm

ColorTheme.Dark

Post by Norrbotten68 » Tue Mar 28, 2023 2:18 pm

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
Attachments
2023-03-28 16_15_20.png
2023-03-28 16_15_20.png (9.46 KiB) Viewed 8431 times

ArctionKestutis
Posts: 555
Joined: Mon Mar 14, 2016 9:22 am

Re: ColorTheme.Dark

Post by ArctionKestutis » Wed Mar 29, 2023 10:07 am

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.

ToneyWulff
Posts: 1
Joined: Fri Apr 21, 2023 12:59 pm

Re: ColorTheme.Dark

Post by ToneyWulff » Fri Apr 21, 2023 1:15 pm

Oh thank you more , I had the same question , everything worked!

Post Reply