Skip to main content

Text Styles

Changing text styles is done by passing new parameters to com.devexperts.dxcharts.lib.ui.theme.DxChartsTypography and then passing the object to DxChartsTheme:

val typography = DxChartsTypography(
aggregationSelectorNumKeyboard = TextStyle(/* ... */),
hintCardTitle = DxChartsTypography().hintCardTitle.copy(/* ... */)
)
DxChartsTheme(
typography = typography
) {
/* content */
}

Or

val typography = DxChartsTypography().copy(
aggregationSelectorNumKeyboard = TextStyle(/* ... */),
hintCardTitle = DxChartsTypography().hintCardTitle.copy(/* ... */)
)
DxChartsTheme(
typography = typography
) {
/* content */
}

All text styles used in the library can be found here