Selection of Theme effect.
Either none (undefined) or a GlowEffect.
For performance reasons only 1 configuration of a glow effect is allowed within an application at the moment.
This property has been marked as to stay reactive to changes in user needs.
If users will need a better way to configure the drawing effects, then it can be refactored without a major release.
effectsDashboardSplitters
effectsDashboardSplitters:boolean
Convenience flag for controlling whether theme effect should be shown in dashboard splitters by default.
false -> Dashboard splitters will have disabled theme effect by default.
effectsText
effectsText:boolean
Convenience flag for controlling whether theme effect should be shown in different Text components by default.
false -> Text components will have disabled theme effect by default.
Properties of Theme that are optional, and officially only used in LightningChart JS Online Examples and projects.
These are guaranteed to be included in all official Library Themes provided by LightningChart, but not required in custom Themes defined by users.
If you want to use example theme properties in your application, then make sure to do these two things:
Use an official Theme supplied by LightningChart.
If your project requires type safety, then add a sanity check that throws an error if the Theme.examples property is undefined, like this:
// Example, ensure official LightningChart JS theme is in use. consttheme = chart.getTheme() if (!theme.examples) { thrownewError(`LightningChart JS Theme.examples is undefined. You are probably using an unofficial theme and attempting to access example theme properties!`) }
This property is marked as meaning that it can be changed in minor version releases for the time being.
isDark
isDark:boolean
Flag if Theme is dark or not.
For user defined themes, it doesn't have large consequences. However, incorrect use can have a slight negative effect on text sharpness.
For a Theme with dominantly dark backgrounds, should set the value to false.
Interface for all properties of a library color theme.
A collection of default implementations can be accessed by Themes.
Color theme of components must be specified when it is created, and can't be changed afterwards (without destroying and recreating the component).
All charts within a Dashboard must always have the same theme. Thus, it is configured only when the Dashboard is created.
For custom color themes, refer to Developer Documentation > Themes section.