1
0

chart.ets 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. @Entry
  2. @Component
  3. struct chart{
  4. @State number1:number=200
  5. build() {
  6. Column(){
  7. Stack(){
  8. Column(){
  9. Text('存钱频率')
  10. .fontSize($r('app.float.fontSize_24'))
  11. .fontColor($r('app.color.black_90'))
  12. .fontWeight(FontWeight.Medium)
  13. .width('100%')
  14. .padding({left:px2vp(30)})
  15. Row(){
  16. Column(){
  17. Text('500')
  18. .fontSize($r('app.float.fontSize_14'))
  19. .fontColor($r('app.color.black_90'))
  20. .fontWeight(FontWeight.Regular)
  21. .height(px2vp(100))
  22. Text('400')
  23. .fontSize($r('app.float.fontSize_14'))
  24. .fontColor($r('app.color.black_90'))
  25. .fontWeight(FontWeight.Regular)
  26. .height(px2vp(100))
  27. Text('300')
  28. .fontSize($r('app.float.fontSize_14'))
  29. .fontColor($r('app.color.black_90'))
  30. .fontWeight(FontWeight.Regular)
  31. .height(px2vp(100))
  32. Text('200')
  33. .fontSize($r('app.float.fontSize_14'))
  34. .fontColor($r('app.color.black_90'))
  35. .fontWeight(FontWeight.Regular)
  36. .height(px2vp(100))
  37. Text('100')
  38. .fontSize($r('app.float.fontSize_14'))
  39. .fontColor($r('app.color.black_90'))
  40. .fontWeight(FontWeight.Regular)
  41. .height(px2vp(100))
  42. }
  43. .width(px2vp(60))
  44. .height(px2vp(500))
  45. Column(){
  46. Column(){
  47. Divider()
  48. .width(px2vp(548))
  49. .color($r('app.color.black_100'))
  50. } .height(px2vp(100))
  51. .justifyContent(FlexAlign.Center)
  52. Column(){
  53. Divider()
  54. .width(px2vp(548))
  55. .color($r('app.color.black_100'))
  56. } .height(px2vp(100))
  57. .justifyContent(FlexAlign.Center)
  58. Column(){
  59. Divider()
  60. .width(px2vp(548))
  61. .color($r('app.color.black_100'))
  62. } .height(px2vp(100))
  63. .justifyContent(FlexAlign.Center)
  64. Column(){
  65. Divider()
  66. .width(px2vp(548))
  67. .color($r('app.color.black_100'))
  68. } .height(px2vp(100))
  69. .justifyContent(FlexAlign.Center)
  70. Column(){
  71. Divider()
  72. .width(px2vp(548))
  73. .color($r('app.color.black_100'))
  74. } .height(px2vp(100))
  75. .justifyContent(FlexAlign.Center)
  76. }
  77. .width(px2vp(548))
  78. .height(px2vp(500))
  79. }.width(px2vp(608))
  80. .height(px2vp(500))
  81. }.width(px2vp(608))
  82. .height(px2vp(608))
  83. }
  84. .width(px2vp(608))
  85. .height(px2vp(608))
  86. Polyline({ width: 608, height: 608 })
  87. .points([[0, 0], [100, 260], [300, 100]])
  88. .fillOpacity(0)
  89. .stroke(Color.Blue)
  90. .strokeWidth(3)
  91. }
  92. .width(px2vp(608))
  93. .height(px2vp(608))
  94. .border({width:1})
  95. }
  96. }