ChartColors constructor

ChartColors({
  1. Color bgColor = const Color(0xffffffff),
  2. Color kLineColor = const Color(0xff4C86CD),
  3. Color lineFillColor = const Color(0x554C86CD),
  4. Color lineFillInsideColor = const Color(0x00000000),
  5. Color ma5Color = const Color(0xffE5B767),
  6. Color ma10Color = const Color(0xff1FD1AC),
  7. Color ma30Color = const Color(0xffB48CE3),
  8. Color upColor = const Color(0xFF14AD8F),
  9. Color dnColor = const Color(0xFFD5405D),
  10. Color volColor = const Color(0xff2f8fd5),
  11. Color macdColor = const Color(0xff2f8fd5),
  12. Color difColor = const Color(0xffE5B767),
  13. Color deaColor = const Color(0xff1FD1AC),
  14. Color kColor = const Color(0xffE5B767),
  15. Color dColor = const Color(0xff1FD1AC),
  16. Color jColor = const Color(0xffB48CE3),
  17. Color rsiColor = const Color(0xffE5B767),
  18. Color defaultTextColor = const Color(0xFF909196),
  19. Color nowPriceUpColor = const Color(0xFF14AD8F),
  20. Color nowPriceDnColor = const Color(0xFFD5405D),
  21. Color nowPriceTextColor = const Color(0xffffffff),
  22. Color trendLineColor = const Color(0xFFF89215),
  23. Color depthBuyColor = const Color(0xFF14AD8F),
  24. Color depthBuyPathColor = const Color(0x3314AD8F),
  25. Color depthSellColor = const Color(0xFFD5405D),
  26. Color depthSellPathColor = const Color(0x33D5405D),
  27. Color selectBorderColor = const Color(0xFF222223),
  28. Color selectFillColor = const Color(0xffffffff),
  29. Color gridColor = const Color(0xFFD1D3DB),
  30. Color infoWindowNormalColor = const Color(0xFF222223),
  31. Color infoWindowTitleColor = const Color(0xFF4D4D4E),
  32. Color infoWindowUpColor = const Color(0xFF14AD8F),
  33. Color infoWindowDnColor = const Color(0xFFD5405D),
  34. Color hCrossColor = const Color(0xFF222223),
  35. Color vCrossColor = const Color(0x28424652),
  36. Color crossTextColor = const Color(0xFF222223),
  37. Color maxColor = const Color(0xFF222223),
  38. Color minColor = const Color(0xFF222223),
})

constructor chart color

Implementation

ChartColors({
  this.bgColor = const Color(0xffffffff),
  this.kLineColor = const Color(0xff4C86CD),

  ///
  this.lineFillColor = const Color(0x554C86CD),

  ///
  this.lineFillInsideColor = const Color(0x00000000),

  ///
  this.ma5Color = const Color(0xffE5B767),
  this.ma10Color = const Color(0xff1FD1AC),
  this.ma30Color = const Color(0xffB48CE3),
  this.upColor = const Color(0xFF14AD8F),
  this.dnColor = const Color(0xFFD5405D),
  this.volColor = const Color(0xff2f8fd5),
  this.macdColor = const Color(0xff2f8fd5),
  this.difColor = const Color(0xffE5B767),
  this.deaColor = const Color(0xff1FD1AC),
  this.kColor = const Color(0xffE5B767),
  this.dColor = const Color(0xff1FD1AC),
  this.jColor = const Color(0xffB48CE3),
  this.rsiColor = const Color(0xffE5B767),
  this.defaultTextColor = const Color(0xFF909196),
  this.nowPriceUpColor = const Color(0xFF14AD8F),
  this.nowPriceDnColor = const Color(0xFFD5405D),
  this.nowPriceTextColor = const Color(0xffffffff),

  /// trend color
  this.trendLineColor = const Color(0xFFF89215),

  ///depth color
  this.depthBuyColor = const Color(0xFF14AD8F),
  this.depthBuyPathColor = const Color(0x3314AD8F),
  this.depthSellColor = const Color(0xFFD5405D),
  this.depthSellPathColor = const Color(0x33D5405D),

  ///value border color after selection
  this.selectBorderColor = const Color(0xFF222223),

  ///background color when value selected
  this.selectFillColor = const Color(0xffffffff),

  ///color of grid
  this.gridColor = const Color(0xFFD1D3DB),

  ///color of annotation content
  this.infoWindowNormalColor = const Color(0xFF222223),
  this.infoWindowTitleColor = const Color(0xFF4D4D4E), //0xFF707070
  this.infoWindowUpColor = const Color(0xFF14AD8F),
  this.infoWindowDnColor = const Color(0xFFD5405D),
  this.hCrossColor = const Color(0xFF222223),
  this.vCrossColor = const Color(0x28424652),
  this.crossTextColor = const Color(0xFF222223),

  ///The color of the maximum and minimum values in the current display
  this.maxColor = const Color(0xFF222223),
  this.minColor = const Color(0xFF222223),
});