Legends Config
data class LegendsConfig(val legendLabelList: List<LegendLabel>, val textSize: TextUnit = 14.sp, val gridColumnCount: Int = 1, val gridPaddingHorizontal: Dp = 8.dp, val gridPaddingVertical: Dp = 8.dp, val colorBoxSize: Dp = 25.dp, val textStyle: TextStyle = TextStyle(), val spaceBWLabelAndColorBox: Dp = 8.dp, val legendsArrangement: Arrangement.Horizontal = Arrangement.Center)
LegendsConfig data class params used in config label in graph.
Parameters
legend Label List
: stackLabelList is used to show labels with colors
grid Column Count
: Column Count for stackLabel grid
grid Padding Horizontal
: Horizontal padding for stackLabel grid
grid Padding Vertical
: Vertical padding for stackLabel grid
space BWLabel And Color Box
: Space between Label and ColorBox for stackLabel grid item
color Box Size
: Blend mode for the groupSeparator
text Style
: TextStyle for label
Constructors
Link copied to clipboard
constructor(legendLabelList: List<LegendLabel>, textSize: TextUnit = 14.sp, gridColumnCount: Int = 1, gridPaddingHorizontal: Dp = 8.dp, gridPaddingVertical: Dp = 8.dp, colorBoxSize: Dp = 25.dp, textStyle: TextStyle = TextStyle(), spaceBWLabelAndColorBox: Dp = 8.dp, legendsArrangement: Arrangement.Horizontal = Arrangement.Center)