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(0xFF1A1A1A),
fontSize: 16,
fontWeight: FontWeight.w700,
letterSpacing: -0.2,
height: 1.2,
),
subtitleTextStyle: TextStyle(
color: Color(0xFF6B7280),
fontSize: 12,
fontWeight: FontWeight.w400,
height: 1.3,
),
legendTextStyle: TextStyle(color: Color(0xFF6B7280), 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),
),
],
);
}