ChartTheme.dashboard constructor
ChartTheme.dashboard()
Analytics dashboard preset (navy cards, blue/green/orange series).
Implementation
factory ChartTheme.dashboard() {
return const ChartTheme(
backgroundColor: Color(0xFF0F1B3C),
gridColor: Color(0xFF1E3058),
axisColor: Color(0xFF5C6B8A),
axisTextStyle: TextStyle(color: Color(0xFF9E9E9E), fontSize: 11),
titleTextStyle: TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.w700,
letterSpacing: -0.2,
height: 1.2,
),
subtitleTextStyle: TextStyle(
color: Color(0xFF8A97B1),
fontSize: 12,
fontWeight: FontWeight.w400,
height: 1.3,
),
legendTextStyle: TextStyle(color: Color(0xFF8A97B1), fontSize: 12),
tooltipBackground: Color(0xFFEEEEEE),
tooltipTextStyle: TextStyle(color: Color(0xFF212121), fontSize: 12),
crosshairColor: Color(0xFF9E9E9E),
selectionColor: Color(0x3364B5F6),
ringMarkers: true,
seriesColors: [
Color(0xFF2196F3),
Color(0xFF4CAF50),
Color(0xFFFF9800),
Color(0xFFAB47BC),
Color(0xFF26C6DA),
],
shadow: [
BoxShadow(
color: Color(0x33000000),
blurRadius: 8,
offset: Offset(0, 2),
),
],
);
}