ChartTheme.light constructor
ChartTheme.light()
Implementation
factory ChartTheme.light() {
return const ChartTheme(
backgroundColor: Colors.white,
gridColor: Color(0xFFE0E0E0),
axisColor: Color(0xFF9E9E9E),
axisTextStyle: TextStyle(color: Color(0xFF616161), fontSize: 11),
titleTextStyle: TextStyle(
color: Color(0xFF212121),
fontSize: 14,
fontWeight: FontWeight.w600,
),
subtitleTextStyle: TextStyle(color: Color(0xFF757575), fontSize: 12),
legendTextStyle: TextStyle(color: Color(0xFF757575), fontSize: 12),
tooltipBackground: Color(0xFF212121),
tooltipTextStyle: TextStyle(color: Colors.white, fontSize: 12),
crosshairColor: Color(0xFF757575),
selectionColor: Color(0x331976D2),
borderColor: Color(0xFFE0E0E0),
seriesColors: [
Color(0xFF1976D2),
Color(0xFFE53935),
Color(0xFF43A047),
Color(0xFFFB8C00),
Color(0xFF8E24AA),
Color(0xFF00ACC1),
],
shadow: [
BoxShadow(
color: Color(0x1A000000),
blurRadius: 8,
offset: Offset(0, 2),
),
],
);
}