ChartTheme constructor

const ChartTheme({
  1. ChartPalette palette = ChartPalette.material,
  2. ChartTypography typography = const ChartTypography(),
  3. ChartSpacing spacing = const ChartSpacing(),
  4. Color backgroundColor = Colors.transparent,
  5. Color gridColor = const Color(0x1A000000),
  6. Color axisColor = const Color(0x33000000),
  7. Color axisLabelColor = const Color(0xFF666666),
  8. Color titleColor = const Color(0xFF1A1A1A),
  9. Color legendTextColor = const Color(0xFF444444),
  10. Color tooltipBackgroundColor = const Color(0xFF1A1A2E),
  11. Color tooltipTextColor = Colors.white,
  12. Color tooltipBorderColor = Colors.transparent,
  13. Color crosshairColor = const Color(0x44000000),
  14. Color highlightOverlayColor = Colors.white,
  15. double highlightOverlayOpacity = 0.15,
})

Implementation

const ChartTheme({
  this.palette = ChartPalette.material,
  this.typography = const ChartTypography(),
  this.spacing = const ChartSpacing(),
  this.backgroundColor = Colors.transparent,
  this.gridColor = const Color(0x1A000000), // 10% black
  this.axisColor = const Color(0x33000000), // 20% black
  this.axisLabelColor = const Color(0xFF666666),
  this.titleColor = const Color(0xFF1A1A1A),
  this.legendTextColor = const Color(0xFF444444),
  this.tooltipBackgroundColor = const Color(0xFF1A1A2E),
  this.tooltipTextColor = Colors.white,
  this.tooltipBorderColor = Colors.transparent,
  this.crosshairColor = const Color(0x44000000),
  this.highlightOverlayColor = Colors.white,
  this.highlightOverlayOpacity = 0.15,
});