react-native-wagmi-charts 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/.DS_Store +0 -0
  2. package/.editorconfig +15 -0
  3. package/.gitattributes +3 -0
  4. package/.gitignore +60 -0
  5. package/.husky/pre-commit +4 -0
  6. package/.prettierrc.js +5 -0
  7. package/.yarnrc +3 -0
  8. package/README.md +25 -24
  9. package/babel.config.js +3 -0
  10. package/example/.expo/README.md +8 -0
  11. package/example/.expo/devices.json +3 -0
  12. package/example/README.md +32 -0
  13. package/example/app.json +22 -0
  14. package/example/babel.config.js +23 -0
  15. package/example/index.js +8 -0
  16. package/example/metro.config.js +40 -0
  17. package/example/package.json +42 -0
  18. package/example/src/App.tsx +64 -0
  19. package/example/src/CandlestickChart.tsx +155 -0
  20. package/example/src/LineChart.tsx +267 -0
  21. package/example/src/data/candlestick-data.json +142 -0
  22. package/example/src/data/candlestick-data2.json +142 -0
  23. package/example/src/data/line-data-non-linear-domain.json +34 -0
  24. package/example/src/data/line-data.json +82 -0
  25. package/example/src/data/line-data2.json +82 -0
  26. package/example/src/line-data-gh.json +18 -0
  27. package/example/tsconfig.json +6 -0
  28. package/example/webpack.config.js +25 -0
  29. package/example/yarn.lock +9306 -0
  30. package/lib/commonjs/charts/candle/Candle.js +6 -19
  31. package/lib/commonjs/charts/candle/Candle.js.map +1 -1
  32. package/lib/commonjs/charts/candle/Candles.js +6 -13
  33. package/lib/commonjs/charts/candle/Candles.js.map +1 -1
  34. package/lib/commonjs/charts/candle/Chart.js +3 -12
  35. package/lib/commonjs/charts/candle/Chart.js.map +1 -1
  36. package/lib/commonjs/charts/candle/Context.js +4 -12
  37. package/lib/commonjs/charts/candle/Context.js.map +1 -1
  38. package/lib/commonjs/charts/candle/Crosshair.js +3 -18
  39. package/lib/commonjs/charts/candle/Crosshair.js.map +1 -1
  40. package/lib/commonjs/charts/candle/CrosshairTooltip.js +6 -21
  41. package/lib/commonjs/charts/candle/CrosshairTooltip.js.map +1 -1
  42. package/lib/commonjs/charts/candle/DatetimeText.js +2 -8
  43. package/lib/commonjs/charts/candle/DatetimeText.js.map +1 -1
  44. package/lib/commonjs/charts/candle/HoverTrap/index.web.js +11 -25
  45. package/lib/commonjs/charts/candle/HoverTrap/index.web.js.map +1 -1
  46. package/lib/commonjs/charts/candle/Line.js +3 -12
  47. package/lib/commonjs/charts/candle/Line.js.map +1 -1
  48. package/lib/commonjs/charts/candle/PriceText.js +2 -8
  49. package/lib/commonjs/charts/candle/PriceText.js.map +1 -1
  50. package/lib/commonjs/charts/candle/index.js +1 -32
  51. package/lib/commonjs/charts/candle/index.js.map +1 -1
  52. package/lib/commonjs/charts/candle/types.js.map +1 -1
  53. package/lib/commonjs/charts/candle/useCandleData.js +0 -4
  54. package/lib/commonjs/charts/candle/useCandleData.js.map +1 -1
  55. package/lib/commonjs/charts/candle/useCandlestickChart.js +2 -7
  56. package/lib/commonjs/charts/candle/useCandlestickChart.js.map +1 -1
  57. package/lib/commonjs/charts/candle/useDatetime.js +0 -4
  58. package/lib/commonjs/charts/candle/useDatetime.js.map +1 -1
  59. package/lib/commonjs/charts/candle/usePrice.js +0 -8
  60. package/lib/commonjs/charts/candle/usePrice.js.map +1 -1
  61. package/lib/commonjs/charts/candle/utils/getDomain.js +0 -1
  62. package/lib/commonjs/charts/candle/utils/getDomain.js.map +1 -1
  63. package/lib/commonjs/charts/candle/utils/getHeight.js +0 -2
  64. package/lib/commonjs/charts/candle/utils/getHeight.js.map +1 -1
  65. package/lib/commonjs/charts/candle/utils/getPrice.js +0 -2
  66. package/lib/commonjs/charts/candle/utils/getPrice.js.map +1 -1
  67. package/lib/commonjs/charts/candle/utils/getY.js +0 -2
  68. package/lib/commonjs/charts/candle/utils/getY.js.map +1 -1
  69. package/lib/commonjs/charts/candle/utils/index.js +0 -8
  70. package/lib/commonjs/charts/candle/utils/index.js.map +1 -1
  71. package/lib/commonjs/charts/candle/utils.js +1 -6
  72. package/lib/commonjs/charts/candle/utils.js.map +1 -1
  73. package/lib/commonjs/charts/line/Chart.js +9 -28
  74. package/lib/commonjs/charts/line/Chart.js.map +1 -1
  75. package/lib/commonjs/charts/line/ChartPath.js +23 -46
  76. package/lib/commonjs/charts/line/ChartPath.js.map +1 -1
  77. package/lib/commonjs/charts/line/Context.js +8 -19
  78. package/lib/commonjs/charts/line/Context.js.map +1 -1
  79. package/lib/commonjs/charts/line/Cursor.js +41 -66
  80. package/lib/commonjs/charts/line/Cursor.js.map +1 -1
  81. package/lib/commonjs/charts/line/CursorCrosshair.js +5 -14
  82. package/lib/commonjs/charts/line/CursorCrosshair.js.map +1 -1
  83. package/lib/commonjs/charts/line/CursorLine.js +5 -19
  84. package/lib/commonjs/charts/line/CursorLine.js.map +1 -1
  85. package/lib/commonjs/charts/line/Data.js +5 -17
  86. package/lib/commonjs/charts/line/Data.js.map +1 -1
  87. package/lib/commonjs/charts/line/DatetimeText.js +2 -9
  88. package/lib/commonjs/charts/line/DatetimeText.js.map +1 -1
  89. package/lib/commonjs/charts/line/Dot.js +27 -33
  90. package/lib/commonjs/charts/line/Dot.js.map +1 -1
  91. package/lib/commonjs/charts/line/Gradient.js +12 -19
  92. package/lib/commonjs/charts/line/Gradient.js.map +1 -1
  93. package/lib/commonjs/charts/line/Group.js +2 -14
  94. package/lib/commonjs/charts/line/Group.js.map +1 -1
  95. package/lib/commonjs/charts/line/Highlight.js +9 -21
  96. package/lib/commonjs/charts/line/Highlight.js.map +1 -1
  97. package/lib/commonjs/charts/line/HorizontalLine.js +8 -23
  98. package/lib/commonjs/charts/line/HorizontalLine.js.map +1 -1
  99. package/lib/commonjs/charts/line/HoverTrap/index.js +0 -4
  100. package/lib/commonjs/charts/line/HoverTrap/index.js.map +1 -1
  101. package/lib/commonjs/charts/line/HoverTrap/index.web.js +11 -24
  102. package/lib/commonjs/charts/line/HoverTrap/index.web.js.map +1 -1
  103. package/lib/commonjs/charts/line/LineChartPathContext.js +1 -6
  104. package/lib/commonjs/charts/line/LineChartPathContext.js.map +1 -1
  105. package/lib/commonjs/charts/line/Path.js +9 -18
  106. package/lib/commonjs/charts/line/Path.js.map +1 -1
  107. package/lib/commonjs/charts/line/PriceText.js +2 -9
  108. package/lib/commonjs/charts/line/PriceText.js.map +1 -1
  109. package/lib/commonjs/charts/line/Tooltip.js +25 -47
  110. package/lib/commonjs/charts/line/Tooltip.js.map +1 -1
  111. package/lib/commonjs/charts/line/index.js +1 -39
  112. package/lib/commonjs/charts/line/index.js.map +1 -1
  113. package/lib/commonjs/charts/line/types.js.map +1 -1
  114. package/lib/commonjs/charts/line/useAnimatedPath.js +6 -12
  115. package/lib/commonjs/charts/line/useAnimatedPath.js.map +1 -1
  116. package/lib/commonjs/charts/line/useCurrentY.js +0 -7
  117. package/lib/commonjs/charts/line/useCurrentY.js.map +1 -1
  118. package/lib/commonjs/charts/line/useDatetime.js +0 -4
  119. package/lib/commonjs/charts/line/useDatetime.js.map +1 -1
  120. package/lib/commonjs/charts/line/useLineChart.js +4 -10
  121. package/lib/commonjs/charts/line/useLineChart.js.map +1 -1
  122. package/lib/commonjs/charts/line/usePrice.js +1 -5
  123. package/lib/commonjs/charts/line/usePrice.js.map +1 -1
  124. package/lib/commonjs/charts/line/utils/getArea.js +11 -11
  125. package/lib/commonjs/charts/line/utils/getArea.js.map +1 -1
  126. package/lib/commonjs/charts/line/utils/getDomain.js +0 -1
  127. package/lib/commonjs/charts/line/utils/getDomain.js.map +1 -1
  128. package/lib/commonjs/charts/line/utils/getPath.js +5 -8
  129. package/lib/commonjs/charts/line/utils/getPath.js.map +1 -1
  130. package/lib/commonjs/charts/line/utils/getXPositionForCurve.js +15 -0
  131. package/lib/commonjs/charts/line/utils/getXPositionForCurve.js.map +1 -0
  132. package/lib/commonjs/charts/line/utils/index.js +0 -10
  133. package/lib/commonjs/charts/line/utils/index.js.map +1 -1
  134. package/lib/commonjs/charts/line/utils/interpolatePath.js +119 -124
  135. package/lib/commonjs/charts/line/utils/interpolatePath.js.map +1 -1
  136. package/lib/commonjs/charts/line/utils/lineChartDataPropToArray.js +0 -3
  137. package/lib/commonjs/charts/line/utils/lineChartDataPropToArray.js.map +1 -1
  138. package/lib/commonjs/components/AnimatedText.js +6 -17
  139. package/lib/commonjs/components/AnimatedText.js.map +1 -1
  140. package/lib/commonjs/index.js +0 -8
  141. package/lib/commonjs/index.js.map +1 -1
  142. package/lib/commonjs/utils/formatDatetime.js +0 -1
  143. package/lib/commonjs/utils/formatDatetime.js.map +1 -1
  144. package/lib/commonjs/utils/formatPrice.js +2 -12
  145. package/lib/commonjs/utils/formatPrice.js.map +1 -1
  146. package/lib/commonjs/utils/index.js +0 -6
  147. package/lib/commonjs/utils/index.js.map +1 -1
  148. package/lib/commonjs/utils/usePrevious.js +4 -9
  149. package/lib/commonjs/utils/usePrevious.js.map +1 -1
  150. package/lib/module/charts/candle/Candle.js +4 -2
  151. package/lib/module/charts/candle/Candle.js.map +1 -1
  152. package/lib/module/charts/candle/Candles.js +4 -3
  153. package/lib/module/charts/candle/Candles.js.map +1 -1
  154. package/lib/module/charts/candle/Chart.js.map +1 -1
  155. package/lib/module/charts/candle/Context.js.map +1 -1
  156. package/lib/module/charts/candle/Crosshair.js +1 -4
  157. package/lib/module/charts/candle/Crosshair.js.map +1 -1
  158. package/lib/module/charts/candle/CrosshairTooltip.js +3 -6
  159. package/lib/module/charts/candle/CrosshairTooltip.js.map +1 -1
  160. package/lib/module/charts/candle/DatetimeText.js.map +1 -1
  161. package/lib/module/charts/candle/HoverTrap/index.web.js +11 -15
  162. package/lib/module/charts/candle/HoverTrap/index.web.js.map +1 -1
  163. package/lib/module/charts/candle/Line.js +1 -2
  164. package/lib/module/charts/candle/Line.js.map +1 -1
  165. package/lib/module/charts/candle/PriceText.js.map +1 -1
  166. package/lib/module/charts/candle/index.js.map +1 -1
  167. package/lib/module/charts/candle/types.js.map +1 -1
  168. package/lib/module/charts/candle/useCandleData.js +0 -1
  169. package/lib/module/charts/candle/useCandleData.js.map +1 -1
  170. package/lib/module/charts/candle/useCandlestickChart.js.map +1 -1
  171. package/lib/module/charts/candle/useDatetime.js.map +1 -1
  172. package/lib/module/charts/candle/usePrice.js +0 -2
  173. package/lib/module/charts/candle/usePrice.js.map +1 -1
  174. package/lib/module/charts/candle/utils/getDomain.js.map +1 -1
  175. package/lib/module/charts/candle/utils/getHeight.js.map +1 -1
  176. package/lib/module/charts/candle/utils/getPrice.js.map +1 -1
  177. package/lib/module/charts/candle/utils/getY.js.map +1 -1
  178. package/lib/module/charts/candle/utils/index.js.map +1 -1
  179. package/lib/module/charts/candle/utils.js.map +1 -1
  180. package/lib/module/charts/line/Chart.js +8 -12
  181. package/lib/module/charts/line/Chart.js.map +1 -1
  182. package/lib/module/charts/line/ChartPath.js +21 -28
  183. package/lib/module/charts/line/ChartPath.js.map +1 -1
  184. package/lib/module/charts/line/Context.js +4 -6
  185. package/lib/module/charts/line/Context.js.map +1 -1
  186. package/lib/module/charts/line/Cursor.js +37 -50
  187. package/lib/module/charts/line/Cursor.js.map +1 -1
  188. package/lib/module/charts/line/CursorCrosshair.js +3 -3
  189. package/lib/module/charts/line/CursorCrosshair.js.map +1 -1
  190. package/lib/module/charts/line/CursorLine.js +3 -3
  191. package/lib/module/charts/line/CursorLine.js.map +1 -1
  192. package/lib/module/charts/line/Data.js +0 -2
  193. package/lib/module/charts/line/Data.js.map +1 -1
  194. package/lib/module/charts/line/DatetimeText.js.map +1 -1
  195. package/lib/module/charts/line/Dot.js +25 -18
  196. package/lib/module/charts/line/Dot.js.map +1 -1
  197. package/lib/module/charts/line/Gradient.js +10 -5
  198. package/lib/module/charts/line/Gradient.js.map +1 -1
  199. package/lib/module/charts/line/Group.js +0 -2
  200. package/lib/module/charts/line/Group.js.map +1 -1
  201. package/lib/module/charts/line/Highlight.js +7 -5
  202. package/lib/module/charts/line/Highlight.js.map +1 -1
  203. package/lib/module/charts/line/HorizontalLine.js +6 -8
  204. package/lib/module/charts/line/HorizontalLine.js.map +1 -1
  205. package/lib/module/charts/line/HoverTrap/index.js.map +1 -1
  206. package/lib/module/charts/line/HoverTrap/index.web.js +11 -15
  207. package/lib/module/charts/line/HoverTrap/index.web.js.map +1 -1
  208. package/lib/module/charts/line/LineChartPathContext.js.map +1 -1
  209. package/lib/module/charts/line/Path.js +7 -4
  210. package/lib/module/charts/line/Path.js.map +1 -1
  211. package/lib/module/charts/line/PriceText.js.map +1 -1
  212. package/lib/module/charts/line/Tooltip.js +21 -33
  213. package/lib/module/charts/line/Tooltip.js.map +1 -1
  214. package/lib/module/charts/line/index.js.map +1 -1
  215. package/lib/module/charts/line/types.js.map +1 -1
  216. package/lib/module/charts/line/useAnimatedPath.js +3 -5
  217. package/lib/module/charts/line/useAnimatedPath.js.map +1 -1
  218. package/lib/module/charts/line/useCurrentY.js +0 -1
  219. package/lib/module/charts/line/useCurrentY.js.map +1 -1
  220. package/lib/module/charts/line/useDatetime.js.map +1 -1
  221. package/lib/module/charts/line/useLineChart.js +2 -1
  222. package/lib/module/charts/line/useLineChart.js.map +1 -1
  223. package/lib/module/charts/line/usePrice.js +1 -1
  224. package/lib/module/charts/line/usePrice.js.map +1 -1
  225. package/lib/module/charts/line/utils/getArea.js +9 -6
  226. package/lib/module/charts/line/utils/getArea.js.map +1 -1
  227. package/lib/module/charts/line/utils/getDomain.js.map +1 -1
  228. package/lib/module/charts/line/utils/getPath.js +3 -3
  229. package/lib/module/charts/line/utils/getPath.js.map +1 -1
  230. package/lib/module/charts/line/utils/getXPositionForCurve.js +9 -0
  231. package/lib/module/charts/line/utils/getXPositionForCurve.js.map +1 -0
  232. package/lib/module/charts/line/utils/index.js.map +1 -1
  233. package/lib/module/charts/line/utils/interpolatePath.js +116 -117
  234. package/lib/module/charts/line/utils/interpolatePath.js.map +1 -1
  235. package/lib/module/charts/line/utils/lineChartDataPropToArray.js +0 -2
  236. package/lib/module/charts/line/utils/lineChartDataPropToArray.js.map +1 -1
  237. package/lib/module/components/AnimatedText.js +4 -3
  238. package/lib/module/components/AnimatedText.js.map +1 -1
  239. package/lib/module/index.js.map +1 -1
  240. package/lib/module/utils/formatDatetime.js.map +1 -1
  241. package/lib/module/utils/formatPrice.js +2 -11
  242. package/lib/module/utils/formatPrice.js.map +1 -1
  243. package/lib/module/utils/index.js.map +1 -1
  244. package/lib/module/utils/usePrevious.js +2 -3
  245. package/lib/module/utils/usePrevious.js.map +1 -1
  246. package/lib/typescript/example/src/App.d.ts +4 -0
  247. package/lib/typescript/example/src/App.d.ts.map +1 -0
  248. package/lib/typescript/example/src/CandlestickChart.d.ts +3 -0
  249. package/lib/typescript/example/src/CandlestickChart.d.ts.map +1 -0
  250. package/lib/typescript/example/src/LineChart.d.ts +3 -0
  251. package/lib/typescript/example/src/LineChart.d.ts.map +1 -0
  252. package/lib/typescript/src/charts/candle/Candle.d.ts +7 -5
  253. package/lib/typescript/src/charts/candle/Candle.d.ts.map +1 -0
  254. package/lib/typescript/src/charts/candle/Candles.d.ts +4 -3
  255. package/lib/typescript/src/charts/candle/Candles.d.ts.map +1 -0
  256. package/lib/typescript/src/charts/candle/Chart.d.ts +3 -2
  257. package/lib/typescript/src/charts/candle/Chart.d.ts.map +1 -0
  258. package/lib/typescript/src/charts/candle/Context.d.ts +3 -2
  259. package/lib/typescript/src/charts/candle/Context.d.ts.map +1 -0
  260. package/lib/typescript/src/charts/candle/Crosshair.d.ts +3 -2
  261. package/lib/typescript/src/charts/candle/Crosshair.d.ts.map +1 -0
  262. package/lib/typescript/src/charts/candle/CrosshairTooltip.d.ts +4 -3
  263. package/lib/typescript/src/charts/candle/CrosshairTooltip.d.ts.map +1 -0
  264. package/lib/typescript/src/charts/candle/DatetimeText.d.ts +4 -3
  265. package/lib/typescript/src/charts/candle/DatetimeText.d.ts.map +1 -0
  266. package/lib/typescript/src/charts/candle/HoverTrap/index.web.d.ts +3 -2
  267. package/lib/typescript/src/charts/candle/HoverTrap/index.web.d.ts.map +1 -0
  268. package/lib/typescript/src/charts/candle/Line.d.ts +4 -3
  269. package/lib/typescript/src/charts/candle/Line.d.ts.map +1 -0
  270. package/lib/typescript/src/charts/candle/PriceText.d.ts +4 -3
  271. package/lib/typescript/src/charts/candle/PriceText.d.ts.map +1 -0
  272. package/lib/typescript/src/charts/candle/index.d.ts +3 -2
  273. package/lib/typescript/src/charts/candle/index.d.ts.map +1 -0
  274. package/lib/typescript/src/charts/candle/types.d.ts +7 -6
  275. package/lib/typescript/src/charts/candle/types.d.ts.map +1 -0
  276. package/lib/typescript/src/charts/candle/useCandleData.d.ts +1 -0
  277. package/lib/typescript/src/charts/candle/useCandleData.d.ts.map +1 -0
  278. package/lib/typescript/src/charts/candle/useCandlestickChart.d.ts +1 -0
  279. package/lib/typescript/src/charts/candle/useCandlestickChart.d.ts.map +1 -0
  280. package/lib/typescript/src/charts/candle/useDatetime.d.ts +1 -0
  281. package/lib/typescript/src/charts/candle/useDatetime.d.ts.map +1 -0
  282. package/lib/typescript/src/charts/candle/usePrice.d.ts +1 -0
  283. package/lib/typescript/src/charts/candle/usePrice.d.ts.map +1 -0
  284. package/lib/typescript/src/charts/candle/utils/getDomain.d.ts +1 -0
  285. package/lib/typescript/src/charts/candle/utils/getDomain.d.ts.map +1 -0
  286. package/lib/typescript/src/charts/candle/utils/getHeight.d.ts +1 -0
  287. package/lib/typescript/src/charts/candle/utils/getHeight.d.ts.map +1 -0
  288. package/lib/typescript/src/charts/candle/utils/getPrice.d.ts +1 -0
  289. package/lib/typescript/src/charts/candle/utils/getPrice.d.ts.map +1 -0
  290. package/lib/typescript/src/charts/candle/utils/getY.d.ts +1 -0
  291. package/lib/typescript/src/charts/candle/utils/getY.d.ts.map +1 -0
  292. package/lib/typescript/src/charts/candle/utils/index.d.ts +1 -0
  293. package/lib/typescript/src/charts/candle/utils/index.d.ts.map +1 -0
  294. package/lib/typescript/src/charts/candle/utils.d.ts +1 -0
  295. package/lib/typescript/src/charts/candle/utils.d.ts.map +1 -0
  296. package/lib/typescript/src/charts/line/Chart.d.ts +3 -2
  297. package/lib/typescript/src/charts/line/Chart.d.ts.map +1 -0
  298. package/lib/typescript/src/charts/line/ChartPath.d.ts +3 -2
  299. package/lib/typescript/src/charts/line/ChartPath.d.ts.map +1 -0
  300. package/lib/typescript/src/charts/line/Context.d.ts +3 -2
  301. package/lib/typescript/src/charts/line/Context.d.ts.map +1 -0
  302. package/lib/typescript/src/charts/line/Cursor.d.ts +3 -2
  303. package/lib/typescript/src/charts/line/Cursor.d.ts.map +1 -0
  304. package/lib/typescript/src/charts/line/CursorCrosshair.d.ts +3 -2
  305. package/lib/typescript/src/charts/line/CursorCrosshair.d.ts.map +1 -0
  306. package/lib/typescript/src/charts/line/CursorLine.d.ts +3 -2
  307. package/lib/typescript/src/charts/line/CursorLine.d.ts.map +1 -0
  308. package/lib/typescript/src/charts/line/Data.d.ts +6 -4
  309. package/lib/typescript/src/charts/line/Data.d.ts.map +1 -0
  310. package/lib/typescript/src/charts/line/DatetimeText.d.ts +4 -3
  311. package/lib/typescript/src/charts/line/DatetimeText.d.ts.map +1 -0
  312. package/lib/typescript/src/charts/line/Dot.d.ts +4 -3
  313. package/lib/typescript/src/charts/line/Dot.d.ts.map +1 -0
  314. package/lib/typescript/src/charts/line/Gradient.d.ts +3 -2
  315. package/lib/typescript/src/charts/line/Gradient.d.ts.map +1 -0
  316. package/lib/typescript/src/charts/line/Group.d.ts +4 -2
  317. package/lib/typescript/src/charts/line/Group.d.ts.map +1 -0
  318. package/lib/typescript/src/charts/line/Highlight.d.ts +4 -3
  319. package/lib/typescript/src/charts/line/Highlight.d.ts.map +1 -0
  320. package/lib/typescript/src/charts/line/HorizontalLine.d.ts +4 -3
  321. package/lib/typescript/src/charts/line/HorizontalLine.d.ts.map +1 -0
  322. package/lib/typescript/src/charts/line/HoverTrap/index.d.ts +3 -2
  323. package/lib/typescript/src/charts/line/HoverTrap/index.d.ts.map +1 -0
  324. package/lib/typescript/src/charts/line/HoverTrap/index.web.d.ts +3 -2
  325. package/lib/typescript/src/charts/line/HoverTrap/index.web.d.ts.map +1 -0
  326. package/lib/typescript/src/charts/line/LineChartPathContext.d.ts +1 -0
  327. package/lib/typescript/src/charts/line/LineChartPathContext.d.ts.map +1 -0
  328. package/lib/typescript/src/charts/line/Path.d.ts +4 -3
  329. package/lib/typescript/src/charts/line/Path.d.ts.map +1 -0
  330. package/lib/typescript/src/charts/line/PriceText.d.ts +4 -3
  331. package/lib/typescript/src/charts/line/PriceText.d.ts.map +1 -0
  332. package/lib/typescript/src/charts/line/Tooltip.d.ts +4 -3
  333. package/lib/typescript/src/charts/line/Tooltip.d.ts.map +1 -0
  334. package/lib/typescript/src/charts/line/index.d.ts +2 -1
  335. package/lib/typescript/src/charts/line/index.d.ts.map +1 -0
  336. package/lib/typescript/src/charts/line/types.d.ts +8 -7
  337. package/lib/typescript/src/charts/line/types.d.ts.map +1 -0
  338. package/lib/typescript/src/charts/line/useAnimatedPath.d.ts +1 -0
  339. package/lib/typescript/src/charts/line/useAnimatedPath.d.ts.map +1 -0
  340. package/lib/typescript/src/charts/line/useCurrentY.d.ts +1 -0
  341. package/lib/typescript/src/charts/line/useCurrentY.d.ts.map +1 -0
  342. package/lib/typescript/src/charts/line/useDatetime.d.ts +1 -0
  343. package/lib/typescript/src/charts/line/useDatetime.d.ts.map +1 -0
  344. package/lib/typescript/src/charts/line/useLineChart.d.ts +1 -0
  345. package/lib/typescript/src/charts/line/useLineChart.d.ts.map +1 -0
  346. package/lib/typescript/src/charts/line/usePrice.d.ts +1 -0
  347. package/lib/typescript/src/charts/line/usePrice.d.ts.map +1 -0
  348. package/lib/typescript/src/charts/line/utils/getArea.d.ts +3 -1
  349. package/lib/typescript/src/charts/line/utils/getArea.d.ts.map +1 -0
  350. package/lib/typescript/src/charts/line/utils/getDomain.d.ts +1 -0
  351. package/lib/typescript/src/charts/line/utils/getDomain.d.ts.map +1 -0
  352. package/lib/typescript/src/charts/line/utils/getPath.d.ts +1 -0
  353. package/lib/typescript/src/charts/line/utils/getPath.d.ts.map +1 -0
  354. package/lib/typescript/src/charts/line/utils/getXPositionForCurve.d.ts +3 -0
  355. package/lib/typescript/src/charts/line/utils/getXPositionForCurve.d.ts.map +1 -0
  356. package/lib/typescript/src/charts/line/utils/index.d.ts +1 -0
  357. package/lib/typescript/src/charts/line/utils/index.d.ts.map +1 -0
  358. package/lib/typescript/src/charts/line/utils/interpolatePath.d.ts +1 -0
  359. package/lib/typescript/src/charts/line/utils/interpolatePath.d.ts.map +1 -0
  360. package/lib/typescript/src/charts/line/utils/lineChartDataPropToArray.d.ts +1 -0
  361. package/lib/typescript/src/charts/line/utils/lineChartDataPropToArray.d.ts.map +1 -0
  362. package/lib/typescript/src/components/AnimatedText.d.ts +3 -2
  363. package/lib/typescript/src/components/AnimatedText.d.ts.map +1 -0
  364. package/lib/typescript/src/index.d.ts +1 -0
  365. package/lib/typescript/src/index.d.ts.map +1 -0
  366. package/lib/typescript/src/utils/formatDatetime.d.ts +1 -0
  367. package/lib/typescript/src/utils/formatDatetime.d.ts.map +1 -0
  368. package/lib/typescript/src/utils/formatPrice.d.ts +1 -0
  369. package/lib/typescript/src/utils/formatPrice.d.ts.map +1 -0
  370. package/lib/typescript/src/utils/index.d.ts +1 -0
  371. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  372. package/lib/typescript/src/utils/usePrevious.d.ts +1 -0
  373. package/lib/typescript/src/utils/usePrevious.d.ts.map +1 -0
  374. package/package.json +12 -9
  375. package/scripts/bootstrap.js +24 -0
  376. package/src/charts/candle/Candle.tsx +3 -3
  377. package/src/charts/candle/CrosshairTooltip.tsx +2 -2
  378. package/src/charts/candle/HoverTrap/index.web.tsx +0 -1
  379. package/src/charts/line/Chart.tsx +6 -4
  380. package/src/charts/line/Cursor.tsx +52 -67
  381. package/src/charts/line/Dot.tsx +8 -8
  382. package/src/charts/line/Gradient.tsx +1 -0
  383. package/src/charts/line/HorizontalLine.tsx +8 -15
  384. package/src/charts/line/HoverTrap/index.web.tsx +0 -1
  385. package/src/charts/line/Tooltip.tsx +21 -13
  386. package/src/charts/line/useAnimatedPath.ts +3 -3
  387. package/src/charts/line/utils/getArea.ts +8 -5
  388. package/src/charts/line/utils/getXPositionForCurve.ts +9 -0
  389. package/tsconfig.build.json +5 -0
  390. package/tsconfig.json +28 -0
  391. package/yarn.lock +8529 -0
@@ -0,0 +1,267 @@
1
+ import * as React from 'react';
2
+ import * as haptics from 'expo-haptics';
3
+
4
+ import { Box, Button, Flex, Heading, Stack, Text } from 'bumbag-native';
5
+ import {
6
+ LineChart,
7
+ TLineChartDataProp,
8
+ TLineChartPoint,
9
+ } from 'react-native-wagmi-charts';
10
+
11
+ import { Platform } from 'react-native';
12
+ import mockData from './data/line-data.json';
13
+ import mockData2 from './data/line-data2.json';
14
+ import mockDataNonLinear from './data/line-data-non-linear-domain.json';
15
+ import { useMemo } from 'react';
16
+
17
+ function invokeHaptic() {
18
+ if (['ios', 'android'].includes(Platform.OS)) {
19
+ haptics.impactAsync(haptics.ImpactFeedbackStyle.Light);
20
+ }
21
+ }
22
+
23
+ export default function App() {
24
+ const [data, setData] = React.useState<TLineChartPoint[]>(mockData);
25
+ const [multiData, toggleMultiData] = React.useReducer(
26
+ (state) => !state,
27
+ false
28
+ );
29
+ const [partialDay, togglePartialDay] = React.useReducer(
30
+ (state) => !state,
31
+ false
32
+ );
33
+
34
+ const [scaleRelativeToTime, setScaleRelativeToTime] = React.useState(false);
35
+
36
+ const [yRange, setYRange] = React.useState<undefined | 'low' | 'high'>(
37
+ undefined
38
+ );
39
+
40
+ const toggleYRange = () => {
41
+ setYRange((domain) => {
42
+ if (!domain) {
43
+ return 'low';
44
+ }
45
+ if (domain === 'low') {
46
+ return 'high';
47
+ }
48
+ return undefined;
49
+ });
50
+ };
51
+
52
+ const [toggleMinMaxLabels, setToggleMinMaxLabels] = React.useState(false);
53
+ const [toggleSnapToPoint, setToggleSnapToPoint] = React.useState(false);
54
+
55
+ let dataProp: TLineChartDataProp = data;
56
+ const [min, max] = useMemo(() => {
57
+ if (Array.isArray(dataProp)) {
58
+ const values = dataProp.map((d) => d.value);
59
+ const _min = Math.min(...values);
60
+ const _max = Math.max(...values);
61
+ return [
62
+ values.findIndex((v) => v === _min),
63
+ values.findIndex((v) => v === _max),
64
+ ];
65
+ }
66
+ return [0, 0];
67
+ }, [dataProp]);
68
+
69
+ let chart = (
70
+ <LineChart>
71
+ {!toggleMinMaxLabels && <LineChart.Path color="black" />}
72
+ {toggleMinMaxLabels && (
73
+ <LineChart.Path color="black">
74
+ <LineChart.Gradient color="black" />
75
+ <LineChart.Tooltip position="top" at={max} />
76
+ <LineChart.Tooltip position="bottom" at={min} yGutter={-10} />
77
+ </LineChart.Path>
78
+ )}
79
+ {/* <LineChart.Path color="black">
80
+ <LineChart.Gradient color="black" />
81
+ <LineChart.HorizontalLine at={{ index: 0 }} />
82
+ <LineChart.Highlight color="red" from={10} to={15} />
83
+ <LineChart.Dot color="red" at={10} />
84
+ <LineChart.Dot color="red" at={15} />
85
+ {partialDay && (
86
+ <LineChart.Dot at={data.length - 1} color="red" hasPulse />
87
+ )}
88
+ </LineChart.Path>
89
+ */}
90
+ <LineChart.CursorCrosshair
91
+ snapToPoint={toggleSnapToPoint}
92
+ onActivated={invokeHaptic}
93
+ onEnded={invokeHaptic}
94
+ >
95
+ <LineChart.Tooltip position="top" />
96
+ <LineChart.HoverTrap />
97
+ </LineChart.CursorCrosshair>
98
+ </LineChart>
99
+ );
100
+
101
+ if (multiData) {
102
+ dataProp = {
103
+ one: mockData,
104
+ two: mockData2,
105
+ };
106
+ chart = (
107
+ <LineChart.Group>
108
+ <LineChart id="one">
109
+ <LineChart.Path animateOnMount="foreground" color="blue" />
110
+ <LineChart.CursorCrosshair
111
+ snapToPoint={toggleSnapToPoint}
112
+ onActivated={invokeHaptic}
113
+ onEnded={invokeHaptic}
114
+ >
115
+ <LineChart.Tooltip />
116
+ </LineChart.CursorCrosshair>
117
+ </LineChart>
118
+ <LineChart id="two">
119
+ <LineChart.Path color="red">
120
+ <LineChart.Gradient color="black" />
121
+ <LineChart.HorizontalLine at={{ index: 4 }} />
122
+ </LineChart.Path>
123
+ <LineChart.CursorCrosshair
124
+ snapToPoint={toggleSnapToPoint}
125
+ color="hotpink"
126
+ onActivated={invokeHaptic}
127
+ onEnded={invokeHaptic}
128
+ >
129
+ <LineChart.Tooltip />
130
+ </LineChart.CursorCrosshair>
131
+ </LineChart>
132
+ </LineChart.Group>
133
+ );
134
+ }
135
+
136
+ return (
137
+ <>
138
+ <Heading.H5 paddingX="major-2" marginBottom="major-2">
139
+ Line Chart 📈
140
+ </Heading.H5>
141
+ <LineChart.Provider
142
+ xDomain={
143
+ scaleRelativeToTime
144
+ ? [data[0].timestamp, data[data.length - 1].timestamp]
145
+ : undefined
146
+ }
147
+ xLength={partialDay ? data.length * 2 : undefined}
148
+ yRange={{
149
+ min:
150
+ yRange === 'low'
151
+ ? Math.min(...data.map((d) => d.value)) / 1.1
152
+ : undefined,
153
+ max:
154
+ yRange === 'high'
155
+ ? Math.max(...data.map((d) => d.value)) * 1.1
156
+ : undefined,
157
+ }}
158
+ data={dataProp}
159
+ >
160
+ {chart}
161
+ <Box marginX="major-2" marginTop="major-2">
162
+ <Heading.H6 marginBottom={'major-2'}>Load Data</Heading.H6>
163
+ <Flex flexWrap={'wrap'}>
164
+ <Button onPress={() => setData(mockData)}>Data 1</Button>
165
+ <Button onPress={() => setData(mockData2)}>Data 2</Button>
166
+ <Button onPress={() => setData(mockDataNonLinear)}>Data 3</Button>
167
+ <Button onPress={() => setData([...mockData, ...mockData2])}>
168
+ Data 1 + Data 2
169
+ </Button>
170
+ <Button onPress={() => setData([...mockData2, ...mockData])}>
171
+ Data 2 + Data 1
172
+ </Button>
173
+ <Button
174
+ onPress={() => setData([...mockData2, ...mockData, ...mockData2])}
175
+ >
176
+ Data 2 + Data 1 + Data 2
177
+ </Button>
178
+ <Button
179
+ onPress={() =>
180
+ setData([
181
+ ...mockData2,
182
+ ...mockData,
183
+ ...mockData2,
184
+ ...mockData,
185
+ ...mockData,
186
+ ...mockData2,
187
+ ...mockData2,
188
+ ...mockData,
189
+ ...mockData2,
190
+ ...mockData,
191
+ ...mockData,
192
+ ...mockData2,
193
+ ])
194
+ }
195
+ >
196
+ V large data
197
+ </Button>
198
+ <Button onPress={toggleYRange}>
199
+ {`${yRange || 'Set'} Y Domain`}
200
+ </Button>
201
+ <Button onPress={toggleMultiData}>{`Multi Data`}</Button>
202
+ <Button onPress={togglePartialDay}>{`Partial Day`}</Button>
203
+ <Button
204
+ onPress={() => setToggleMinMaxLabels((p) => !p)}
205
+ >{`Toggle min/max labels`}</Button>
206
+ <Button
207
+ onPress={() => {
208
+ // Use with data 3 for best demonstration
209
+ setScaleRelativeToTime((val) => !val);
210
+ }}
211
+ >
212
+ {`Toggle ${scaleRelativeToTime ? 'off' : 'on'} XDomain`}
213
+ </Button>
214
+ <Button
215
+ onPress={() => setToggleSnapToPoint((val) => !val)}
216
+ >{`Toggle Snap ${toggleSnapToPoint ? 'Off' : 'On'}`}</Button>
217
+ </Flex>
218
+ </Box>
219
+ {!multiData && (
220
+ <Stack padding="major-2" spacing="major-1">
221
+ <Heading.H6>PriceText</Heading.H6>
222
+ <Flex>
223
+ <Text fontWeight="500">Formatted: </Text>
224
+ <LineChart.PriceText />
225
+ </Flex>
226
+ <Flex>
227
+ <Text fontWeight="500">Value: </Text>
228
+ <LineChart.PriceText variant="value" />
229
+ </Flex>
230
+ <Flex>
231
+ <Text fontWeight="500">Custom format: </Text>
232
+ <LineChart.PriceText
233
+ format={(d) => {
234
+ 'worklet';
235
+ return d.formatted ? `$${d.formatted} AUD` : '';
236
+ }}
237
+ />
238
+ </Flex>
239
+ <Heading.H6>DatetimeText</Heading.H6>
240
+ <Flex>
241
+ <Text fontWeight="500">Formatted: </Text>
242
+ <LineChart.DatetimeText />
243
+ </Flex>
244
+ <Flex>
245
+ <Text fontWeight="500">Value: </Text>
246
+ <LineChart.DatetimeText variant="value" />
247
+ </Flex>
248
+ <Flex>
249
+ <Text fontWeight="500">Custom format: </Text>
250
+ <LineChart.DatetimeText
251
+ locale="en-AU"
252
+ options={{
253
+ year: 'numeric',
254
+ month: 'numeric',
255
+ day: 'numeric',
256
+ hour: 'numeric',
257
+ minute: 'numeric',
258
+ second: 'numeric',
259
+ }}
260
+ />
261
+ </Flex>
262
+ </Stack>
263
+ )}
264
+ </LineChart.Provider>
265
+ </>
266
+ );
267
+ }
@@ -0,0 +1,142 @@
1
+ [
2
+ {
3
+ "timestamp": 1625945400000,
4
+ "open": 33575.25,
5
+ "high": 33600.52,
6
+ "low": 33475.12,
7
+ "close": 33520.11
8
+ },
9
+ {
10
+ "timestamp": 1625946300000,
11
+ "open": 33545.25,
12
+ "high": 33560.52,
13
+ "low": 33510.12,
14
+ "close": 33520.11
15
+ },
16
+ {
17
+ "timestamp": 1625947200000,
18
+ "open": 33510.25,
19
+ "high": 33515.52,
20
+ "low": 33250.12,
21
+ "close": 33250.11
22
+ },
23
+ {
24
+ "timestamp": 1625948100000,
25
+ "open": 33215.25,
26
+ "high": 33430.52,
27
+ "low": 33215.12,
28
+ "close": 33420.11
29
+ },
30
+ {
31
+ "timestamp": 1625949000000,
32
+ "open": 33445.25,
33
+ "high": 33520.52,
34
+ "low": 33415.12,
35
+ "close": 33440.11
36
+ },
37
+ {
38
+ "timestamp": 1625949900000,
39
+ "open": 33435.25,
40
+ "high": 33465.52,
41
+ "low": 33435.12,
42
+ "close": 33455.11
43
+ },
44
+ {
45
+ "timestamp": 1625950800000,
46
+ "open": 33480.25,
47
+ "high": 33480.52,
48
+ "low": 33430.12,
49
+ "close": 33445.11
50
+ },
51
+ {
52
+ "timestamp": 1625951700000,
53
+ "open": 33440.25,
54
+ "high": 33545.52,
55
+ "low": 33440.12,
56
+ "close": 33510.11
57
+ },
58
+ {
59
+ "timestamp": 1625952600000,
60
+ "open": 33485.25,
61
+ "high": 33520.52,
62
+ "low": 33460.12,
63
+ "close": 33515.11
64
+ },
65
+ {
66
+ "timestamp": 1625953500000,
67
+ "open": 33515.25,
68
+ "high": 33550.52,
69
+ "low": 33515.12,
70
+ "close": 33540.11
71
+ },
72
+ {
73
+ "timestamp": 1625954400000,
74
+ "open": 33570.25,
75
+ "high": 33645.52,
76
+ "low": 33545.12,
77
+ "close": 33645.11
78
+ },
79
+ {
80
+ "timestamp": 1625955300000,
81
+ "open": 33640.25,
82
+ "high": 33665.52,
83
+ "low": 33600.12,
84
+ "close": 33630.11
85
+ },
86
+ {
87
+ "timestamp": 1625956200000,
88
+ "open": 33645.25,
89
+ "high": 33670.52,
90
+ "low": 33645.12,
91
+ "close": 33660.11
92
+ },
93
+ {
94
+ "timestamp": 1625957100000,
95
+ "open": 33670.25,
96
+ "high": 33785.52,
97
+ "low": 33660.12,
98
+ "close": 33745.11
99
+ },
100
+ {
101
+ "timestamp": 1625958000000,
102
+ "open": 33740.25,
103
+ "high": 33780.52,
104
+ "low": 33710.12,
105
+ "close": 33780.11
106
+ },
107
+ {
108
+ "timestamp": 1625958900000,
109
+ "open": 33770.25,
110
+ "high": 33770.52,
111
+ "low": 33710.12,
112
+ "close": 33710.11
113
+ },
114
+ {
115
+ "timestamp": 1625959800000,
116
+ "open": 33705.25,
117
+ "high": 33760.52,
118
+ "low": 33705.12,
119
+ "close": 33750.11
120
+ },
121
+ {
122
+ "timestamp": 1625960700000,
123
+ "open": 33760.25,
124
+ "high": 33785.52,
125
+ "low": 33645.12,
126
+ "close": 33650.11
127
+ },
128
+ {
129
+ "timestamp": 1625961600000,
130
+ "open": 33670.25,
131
+ "high": 33835.52,
132
+ "low": 33635.12,
133
+ "close": 33825.11
134
+ },
135
+ {
136
+ "timestamp": 1625962500000,
137
+ "open": 33870.25,
138
+ "high": 33930.52,
139
+ "low": 33715.12,
140
+ "close": 33770.11
141
+ }
142
+ ]
@@ -0,0 +1,142 @@
1
+ [
2
+ {
3
+ "timestamp": 1625962500000,
4
+ "open": 33870.25,
5
+ "high": 33930.52,
6
+ "low": 33715.12,
7
+ "close": 33770.11
8
+ },
9
+ {
10
+ "timestamp": 1625961600000,
11
+ "open": 33670.25,
12
+ "high": 33835.52,
13
+ "low": 33635.12,
14
+ "close": 33825.11
15
+ },
16
+ {
17
+ "timestamp": 1625960700000,
18
+ "open": 33760.25,
19
+ "high": 33785.52,
20
+ "low": 33645.12,
21
+ "close": 33650.11
22
+ },
23
+ {
24
+ "timestamp": 1625959800000,
25
+ "open": 33705.25,
26
+ "high": 33760.52,
27
+ "low": 33705.12,
28
+ "close": 33750.11
29
+ },
30
+ {
31
+ "timestamp": 1625958900000,
32
+ "open": 33770.25,
33
+ "high": 33770.52,
34
+ "low": 33710.12,
35
+ "close": 33710.11
36
+ },
37
+ {
38
+ "timestamp": 1625958000000,
39
+ "open": 33740.25,
40
+ "high": 33780.52,
41
+ "low": 33710.12,
42
+ "close": 33780.11
43
+ },
44
+ {
45
+ "timestamp": 1625957100000,
46
+ "open": 33670.25,
47
+ "high": 33785.52,
48
+ "low": 33660.12,
49
+ "close": 33745.11
50
+ },
51
+ {
52
+ "timestamp": 1625956200000,
53
+ "open": 33645.25,
54
+ "high": 33670.52,
55
+ "low": 33645.12,
56
+ "close": 33660.11
57
+ },
58
+ {
59
+ "timestamp": 1625955300000,
60
+ "open": 33640.25,
61
+ "high": 33665.52,
62
+ "low": 33600.12,
63
+ "close": 33630.11
64
+ },
65
+ {
66
+ "timestamp": 1625954400000,
67
+ "open": 33570.25,
68
+ "high": 33645.52,
69
+ "low": 33545.12,
70
+ "close": 33645.11
71
+ },
72
+ {
73
+ "timestamp": 1625953500000,
74
+ "open": 33515.25,
75
+ "high": 33550.52,
76
+ "low": 33515.12,
77
+ "close": 33540.11
78
+ },
79
+ {
80
+ "timestamp": 1625952600000,
81
+ "open": 33485.25,
82
+ "high": 33520.52,
83
+ "low": 33460.12,
84
+ "close": 33515.11
85
+ },
86
+ {
87
+ "timestamp": 1625951700000,
88
+ "open": 33440.25,
89
+ "high": 33545.52,
90
+ "low": 33440.12,
91
+ "close": 33510.11
92
+ },
93
+ {
94
+ "timestamp": 1625950800000,
95
+ "open": 33480.25,
96
+ "high": 33480.52,
97
+ "low": 33430.12,
98
+ "close": 33445.11
99
+ },
100
+ {
101
+ "timestamp": 1625949900000,
102
+ "open": 33435.25,
103
+ "high": 33465.52,
104
+ "low": 33435.12,
105
+ "close": 33455.11
106
+ },
107
+ {
108
+ "timestamp": 1625949000000,
109
+ "open": 33445.25,
110
+ "high": 33520.52,
111
+ "low": 33415.12,
112
+ "close": 33440.11
113
+ },
114
+ {
115
+ "timestamp": 1625948100000,
116
+ "open": 33215.25,
117
+ "high": 33430.52,
118
+ "low": 33215.12,
119
+ "close": 33420.11
120
+ },
121
+ {
122
+ "timestamp": 1625947200000,
123
+ "open": 33510.25,
124
+ "high": 33515.52,
125
+ "low": 33250.12,
126
+ "close": 33250.11
127
+ },
128
+ {
129
+ "timestamp": 1625946300000,
130
+ "open": 33545.25,
131
+ "high": 33560.52,
132
+ "low": 33510.12,
133
+ "close": 33520.11
134
+ },
135
+ {
136
+ "timestamp": 1625945400000,
137
+ "open": 33575.25,
138
+ "high": 33600.52,
139
+ "low": 33475.12,
140
+ "close": 33520.11
141
+ }
142
+ ]
@@ -0,0 +1,34 @@
1
+ [
2
+ {
3
+ "timestamp": 1626945400000,
4
+ "value": 33575.25
5
+ },
6
+ {
7
+ "timestamp": 1626947300000,
8
+ "value": 33545.25
9
+ },
10
+ {
11
+ "timestamp": 1626947500000,
12
+ "value": 33510.15
13
+ },
14
+ {
15
+ "timestamp": 1626948800000,
16
+ "value": 33215.61
17
+ },
18
+ {
19
+ "timestamp": 1626949000000,
20
+ "value": 33445.23
21
+ },
22
+ {
23
+ "timestamp": 1626950000000,
24
+ "value": 33445.23
25
+ },
26
+ {
27
+ "timestamp": 1626951000000,
28
+ "value": 33445.23
29
+ },
30
+ {
31
+ "timestamp": 1626953000000,
32
+ "value": 33700.23
33
+ }
34
+ ]
@@ -0,0 +1,82 @@
1
+ [
2
+ {
3
+ "timestamp": 1626945400000,
4
+ "value": 33575.25
5
+ },
6
+ {
7
+ "timestamp": 1626946300000,
8
+ "value": 33545.25
9
+ },
10
+ {
11
+ "timestamp": 1626947200000,
12
+ "value": 33510.15
13
+ },
14
+ {
15
+ "timestamp": 1626948100000,
16
+ "value": 33215.61
17
+ },
18
+ {
19
+ "timestamp": 1626949000000,
20
+ "value": 33445.23
21
+ },
22
+ {
23
+ "timestamp": 1626949900000,
24
+ "value": 33435.51
25
+ },
26
+ {
27
+ "timestamp": 1626950800000,
28
+ "value": 33480.66
29
+ },
30
+ {
31
+ "timestamp": 1626951700000,
32
+ "value": 33440.25
33
+ },
34
+ {
35
+ "timestamp": 1626952600000,
36
+ "value": 33485.23
37
+ },
38
+ {
39
+ "timestamp": 1626953500000,
40
+ "value": 33515.21
41
+ },
42
+ {
43
+ "timestamp": 1626954400000,
44
+ "value": 33570.77
45
+ },
46
+ {
47
+ "timestamp": 1626955300000,
48
+ "value": 33640.45
49
+ },
50
+ {
51
+ "timestamp": 1626956200000,
52
+ "value": 33645.34
53
+ },
54
+ {
55
+ "timestamp": 1626957100000,
56
+ "value": 33670.33
57
+ },
58
+ {
59
+ "timestamp": 1626958000000,
60
+ "value": 33740.25
61
+ },
62
+ {
63
+ "timestamp": 1626958900000,
64
+ "value": 33770.25
65
+ },
66
+ {
67
+ "timestamp": 1626959800000,
68
+ "value": 33705.25
69
+ },
70
+ {
71
+ "timestamp": 1626960700000,
72
+ "value": 33760.25
73
+ },
74
+ {
75
+ "timestamp": 1626961600000,
76
+ "value": 33670.25
77
+ },
78
+ {
79
+ "timestamp": 1626962500000,
80
+ "value": 33870.25
81
+ }
82
+ ]