@nativescript-community/ui-chart 2.0.7 → 2.0.11

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 (404) hide show
  1. package/animation/ChartAnimator.d.ts +61 -0
  2. package/animation/ChartAnimator.js +95 -0
  3. package/animation/ChartAnimator.js.map +1 -0
  4. package/animation/Tween.d.ts +4 -0
  5. package/animation/Tween.js +25 -0
  6. package/animation/Tween.js.map +1 -0
  7. package/buffer/AbstractBuffer.d.ts +40 -0
  8. package/buffer/AbstractBuffer.js +49 -0
  9. package/buffer/AbstractBuffer.js.map +1 -0
  10. package/buffer/BarBuffer.d.ts +15 -0
  11. package/buffer/BarBuffer.js +109 -0
  12. package/buffer/BarBuffer.js.map +1 -0
  13. package/buffer/HorizontalBarBuffer.d.ts +6 -0
  14. package/buffer/HorizontalBarBuffer.js +81 -0
  15. package/buffer/HorizontalBarBuffer.js.map +1 -0
  16. package/charts/BarChart.d.ts +96 -0
  17. package/charts/BarChart.js +143 -0
  18. package/charts/BarChart.js.map +1 -0
  19. package/charts/BarLineChartBase.d.ts +583 -0
  20. package/charts/BarLineChartBase.js +1231 -0
  21. package/charts/BarLineChartBase.js.map +1 -0
  22. package/charts/BubbleChart.d.ts +27 -0
  23. package/charts/BubbleChart.js +20 -0
  24. package/charts/BubbleChart.js.map +1 -0
  25. package/charts/CandleStickChart.d.ts +29 -0
  26. package/charts/CandleStickChart.js +19 -0
  27. package/charts/CandleStickChart.js.map +1 -0
  28. package/charts/Chart.d.ts +498 -0
  29. package/charts/Chart.js +799 -0
  30. package/charts/Chart.js.map +1 -0
  31. package/charts/CombinedChart.d.ts +78 -0
  32. package/charts/CombinedChart.js +119 -0
  33. package/charts/CombinedChart.js.map +1 -0
  34. package/charts/HorizontalBarChart.d.ts +54 -0
  35. package/charts/HorizontalBarChart.js +180 -0
  36. package/charts/HorizontalBarChart.js.map +1 -0
  37. package/charts/LineChart.d.ts +20 -0
  38. package/charts/LineChart.js +19 -0
  39. package/charts/LineChart.js.map +1 -0
  40. package/charts/PieChart.d.ts +247 -0
  41. package/charts/PieChart.js +453 -0
  42. package/charts/PieChart.js.map +1 -0
  43. package/charts/PieRadarChartBase.d.ts +130 -0
  44. package/charts/PieRadarChartBase.js +360 -0
  45. package/charts/PieRadarChartBase.js.map +1 -0
  46. package/charts/RadarChart.d.ts +101 -0
  47. package/charts/RadarChart.js +172 -0
  48. package/charts/RadarChart.js.map +1 -0
  49. package/charts/ScatterChart.d.ts +36 -0
  50. package/charts/ScatterChart.js +31 -0
  51. package/charts/ScatterChart.js.map +1 -0
  52. package/charts/index.d.ts +9 -0
  53. package/charts/index.js +10 -0
  54. package/charts/index.js.map +1 -0
  55. package/components/AxisBase.d.ts +299 -0
  56. package/components/AxisBase.js +352 -0
  57. package/components/AxisBase.js.map +1 -0
  58. package/components/ComponentBase.d.ts +60 -0
  59. package/components/ComponentBase.js +77 -0
  60. package/components/ComponentBase.js.map +1 -0
  61. package/components/Description.d.ts +22 -0
  62. package/components/Description.js +21 -0
  63. package/components/Description.js.map +1 -0
  64. package/components/IMarker.d.ts +39 -0
  65. package/components/IMarker.js +2 -0
  66. package/components/IMarker.js.map +1 -0
  67. package/components/Legend.d.ts +198 -0
  68. package/components/Legend.js +386 -0
  69. package/components/Legend.js.map +1 -0
  70. package/components/LegendEntry.d.ts +50 -0
  71. package/components/LegendEntry.js +51 -0
  72. package/components/LegendEntry.js.map +1 -0
  73. package/components/LimitLine.d.ts +55 -0
  74. package/components/LimitLine.js +62 -0
  75. package/components/LimitLine.js.map +1 -0
  76. package/components/MarkerImage.d.ts +1 -0
  77. package/components/MarkerImage.js +97 -0
  78. package/components/MarkerImage.js.map +1 -0
  79. package/components/XAxis.d.ts +55 -0
  80. package/components/XAxis.js +59 -0
  81. package/components/XAxis.js.map +1 -0
  82. package/components/YAxis.d.ts +135 -0
  83. package/components/YAxis.js +205 -0
  84. package/components/YAxis.js.map +1 -0
  85. package/data/BarData.d.ts +39 -0
  86. package/data/BarData.js +126 -0
  87. package/data/BarData.js.map +1 -0
  88. package/data/BarDataSet.d.ts +47 -0
  89. package/data/BarDataSet.js +109 -0
  90. package/data/BarDataSet.js.map +1 -0
  91. package/data/BarEntry.d.ts +11 -0
  92. package/data/BarEntry.js +2 -0
  93. package/data/BarEntry.js.map +1 -0
  94. package/data/BarLineScatterCandleBubbleData.d.ts +10 -0
  95. package/data/BarLineScatterCandleBubbleData.js +9 -0
  96. package/data/BarLineScatterCandleBubbleData.js.map +1 -0
  97. package/data/BarLineScatterCandleBubbleDataSet.d.ts +17 -0
  98. package/data/BarLineScatterCandleBubbleDataSet.js +18 -0
  99. package/data/BarLineScatterCandleBubbleDataSet.js.map +1 -0
  100. package/data/BaseDataSet.d.ts +180 -0
  101. package/data/BaseDataSet.js +220 -0
  102. package/data/BaseDataSet.js.map +1 -0
  103. package/data/BaseEntry.d.ts +10 -0
  104. package/data/BaseEntry.js +2 -0
  105. package/data/BaseEntry.js.map +1 -0
  106. package/data/BubbleData.d.ts +12 -0
  107. package/data/BubbleData.js +15 -0
  108. package/data/BubbleData.js.map +1 -0
  109. package/data/BubbleDataSet.d.ts +18 -0
  110. package/data/BubbleDataSet.js +36 -0
  111. package/data/BubbleDataSet.js.map +1 -0
  112. package/data/BubbleEntry.d.ts +5 -0
  113. package/data/BubbleEntry.js +2 -0
  114. package/data/BubbleEntry.js.map +1 -0
  115. package/data/CandleData.d.ts +5 -0
  116. package/data/CandleData.js +4 -0
  117. package/data/CandleData.js.map +1 -0
  118. package/data/CandleDataSet.d.ts +76 -0
  119. package/data/CandleDataSet.js +116 -0
  120. package/data/CandleDataSet.js.map +1 -0
  121. package/data/CandleEntry.d.ts +11 -0
  122. package/data/CandleEntry.js +2 -0
  123. package/data/CandleEntry.js.map +1 -0
  124. package/data/ChartData.d.ts +320 -0
  125. package/data/ChartData.js +702 -0
  126. package/data/ChartData.js.map +1 -0
  127. package/data/CombinedData.d.ts +61 -0
  128. package/data/CombinedData.js +153 -0
  129. package/data/CombinedData.js.map +1 -0
  130. package/data/DataSet.d.ts +98 -0
  131. package/data/DataSet.js +424 -0
  132. package/data/DataSet.js.map +1 -0
  133. package/data/Entry.d.ts +3 -0
  134. package/data/Entry.js +2 -0
  135. package/data/Entry.js.map +1 -0
  136. package/data/LineData.d.ts +10 -0
  137. package/data/LineData.js +9 -0
  138. package/data/LineData.js.map +1 -0
  139. package/data/LineDataSet.d.ts +106 -0
  140. package/data/LineDataSet.js +148 -0
  141. package/data/LineDataSet.js.map +1 -0
  142. package/data/LineRadarDataSet.d.ts +32 -0
  143. package/data/LineRadarDataSet.js +29 -0
  144. package/data/LineRadarDataSet.js.map +1 -0
  145. package/data/LineScatterCandleRadarDataSet.d.ts +36 -0
  146. package/data/LineScatterCandleRadarDataSet.js +44 -0
  147. package/data/LineScatterCandleRadarDataSet.js.map +1 -0
  148. package/data/PieData.d.ts +39 -0
  149. package/data/PieData.js +55 -0
  150. package/data/PieData.js.map +1 -0
  151. package/data/PieDataSet.d.ts +52 -0
  152. package/data/PieDataSet.js +54 -0
  153. package/data/PieDataSet.js.map +1 -0
  154. package/data/PieEntry.d.ts +7 -0
  155. package/data/PieEntry.js +2 -0
  156. package/data/PieEntry.js.map +1 -0
  157. package/data/RadarData.d.ts +17 -0
  158. package/data/RadarData.js +15 -0
  159. package/data/RadarData.js.map +1 -0
  160. package/data/RadarDataSet.d.ts +14 -0
  161. package/data/RadarDataSet.js +20 -0
  162. package/data/RadarDataSet.js.map +1 -0
  163. package/data/RadarEntry.d.ts +3 -0
  164. package/data/RadarEntry.js +2 -0
  165. package/data/RadarEntry.js.map +1 -0
  166. package/data/ScatterData.d.ts +9 -0
  167. package/data/ScatterData.js +17 -0
  168. package/data/ScatterData.js.map +1 -0
  169. package/data/ScatterDataSet.d.ts +40 -0
  170. package/data/ScatterDataSet.js +61 -0
  171. package/data/ScatterDataSet.js.map +1 -0
  172. package/formatter/DefaultAxisValueFormatter.d.ts +23 -0
  173. package/formatter/DefaultAxisValueFormatter.js +30 -0
  174. package/formatter/DefaultAxisValueFormatter.js.map +1 -0
  175. package/formatter/DefaultFillFormatter.d.ts +6 -0
  176. package/formatter/DefaultFillFormatter.js +29 -0
  177. package/formatter/DefaultFillFormatter.js.map +1 -0
  178. package/formatter/DefaultValueFormatter.d.ts +3 -0
  179. package/formatter/DefaultValueFormatter.js +4 -0
  180. package/formatter/DefaultValueFormatter.js.map +1 -0
  181. package/formatter/IAxisValueFormatter.d.ts +23 -0
  182. package/formatter/IAxisValueFormatter.js +2 -0
  183. package/formatter/IAxisValueFormatter.js.map +1 -0
  184. package/formatter/IFillFormatter.d.ts +30 -0
  185. package/formatter/IFillFormatter.js +2 -0
  186. package/formatter/IFillFormatter.js.map +1 -0
  187. package/formatter/IValueFormatter.d.ts +25 -0
  188. package/formatter/IValueFormatter.js +2 -0
  189. package/formatter/IValueFormatter.js.map +1 -0
  190. package/formatter/ValueFormatter.d.ts +81 -0
  191. package/formatter/ValueFormatter.js +90 -0
  192. package/formatter/ValueFormatter.js.map +1 -0
  193. package/highlight/BarHighlighter.d.ts +33 -0
  194. package/highlight/BarHighlighter.js +89 -0
  195. package/highlight/BarHighlighter.js.map +1 -0
  196. package/highlight/ChartHighlighter.d.ts +102 -0
  197. package/highlight/ChartHighlighter.js +220 -0
  198. package/highlight/ChartHighlighter.js.map +1 -0
  199. package/highlight/CombinedHighlighter.d.ts +17 -0
  200. package/highlight/CombinedHighlighter.js +59 -0
  201. package/highlight/CombinedHighlighter.js.map +1 -0
  202. package/highlight/Highlight.d.ts +69 -0
  203. package/highlight/Highlight.js +8 -0
  204. package/highlight/Highlight.js.map +1 -0
  205. package/highlight/HorizontalBarHighlighter.d.ts +10 -0
  206. package/highlight/HorizontalBarHighlighter.js +54 -0
  207. package/highlight/HorizontalBarHighlighter.js.map +1 -0
  208. package/highlight/IHighlighter.d.ts +15 -0
  209. package/highlight/IHighlighter.js +2 -0
  210. package/highlight/IHighlighter.js.map +1 -0
  211. package/highlight/PieHighlighter.d.ts +9 -0
  212. package/highlight/PieHighlighter.js +21 -0
  213. package/highlight/PieHighlighter.js.map +1 -0
  214. package/highlight/PieRadarHighlighter.d.ts +25 -0
  215. package/highlight/PieRadarHighlighter.js +33 -0
  216. package/highlight/PieRadarHighlighter.js.map +1 -0
  217. package/highlight/RadarHighlighter.d.ts +20 -0
  218. package/highlight/RadarHighlighter.js +59 -0
  219. package/highlight/RadarHighlighter.js.map +1 -0
  220. package/index.d.ts +11 -0
  221. package/index.js +15 -0
  222. package/index.js.map +1 -0
  223. package/interfaces/dataprovider/BarDataProvider.d.ts +9 -0
  224. package/interfaces/dataprovider/BarLineScatterCandleBubbleDataProvider.d.ts +19 -0
  225. package/interfaces/dataprovider/BubbleDataProvider.d.ts +6 -0
  226. package/interfaces/dataprovider/CandleDataProvider.d.ts +6 -0
  227. package/interfaces/dataprovider/ChartInterface.d.ts +60 -0
  228. package/interfaces/dataprovider/CombinedDataProvider.d.ts +13 -0
  229. package/interfaces/dataprovider/LineDataProvider.d.ts +9 -0
  230. package/interfaces/dataprovider/ScatterDataProvider.d.ts +6 -0
  231. package/interfaces/datasets/IBarDataSet.d.ts +47 -0
  232. package/interfaces/datasets/IBarLineScatterCandleBubbleDataSet.d.ts +12 -0
  233. package/interfaces/datasets/IBubbleDataSet.d.ts +19 -0
  234. package/interfaces/datasets/ICandleDataSet.d.ts +81 -0
  235. package/interfaces/datasets/IDataSet.d.ts +385 -0
  236. package/interfaces/datasets/ILineDataSet.d.ts +67 -0
  237. package/interfaces/datasets/ILineRadarDataSet.d.ts +35 -0
  238. package/interfaces/datasets/ILineScatterCandleRadarDataSet.d.ts +32 -0
  239. package/interfaces/datasets/IPieDataSet.d.ts +49 -0
  240. package/interfaces/datasets/IRadarDataSet.d.ts +21 -0
  241. package/interfaces/datasets/IScatterDataSet.d.ts +37 -0
  242. package/jobs/AnimatedMoveViewJob.d.ts +15 -0
  243. package/jobs/AnimatedMoveViewJob.js +42 -0
  244. package/jobs/AnimatedMoveViewJob.js.map +1 -0
  245. package/jobs/AnimatedViewPortJob.d.ts +31 -0
  246. package/jobs/AnimatedViewPortJob.js +52 -0
  247. package/jobs/AnimatedViewPortJob.js.map +1 -0
  248. package/jobs/AnimatedZoomJob.d.ts +23 -0
  249. package/jobs/AnimatedZoomJob.js +63 -0
  250. package/jobs/AnimatedZoomJob.js.map +1 -0
  251. package/jobs/MoveViewJob.d.ts +14 -0
  252. package/jobs/MoveViewJob.js +36 -0
  253. package/jobs/MoveViewJob.js.map +1 -0
  254. package/jobs/ViewPortJob.d.ts +13 -0
  255. package/jobs/ViewPortJob.js +14 -0
  256. package/jobs/ViewPortJob.js.map +1 -0
  257. package/jobs/ZoomJob.d.ts +15 -0
  258. package/jobs/ZoomJob.js +48 -0
  259. package/jobs/ZoomJob.js.map +1 -0
  260. package/listener/BarLineChartTouchListener.d.ts +187 -0
  261. package/listener/BarLineChartTouchListener.js +544 -0
  262. package/listener/BarLineChartTouchListener.js.map +1 -0
  263. package/listener/ChartTouchListener.d.ts +69 -0
  264. package/listener/ChartTouchListener.js +81 -0
  265. package/listener/ChartTouchListener.js.map +1 -0
  266. package/listener/PieRadarChartTouchListener.d.ts +100 -0
  267. package/listener/PieRadarChartTouchListener.js +282 -0
  268. package/listener/PieRadarChartTouchListener.js.map +1 -0
  269. package/model/GradientColor.d.ts +9 -0
  270. package/model/GradientColor.js +19 -0
  271. package/model/GradientColor.js.map +1 -0
  272. package/package.json +9 -2
  273. package/renderer/AxisRenderer.d.ts +103 -0
  274. package/renderer/AxisRenderer.js +215 -0
  275. package/renderer/AxisRenderer.js.map +1 -0
  276. package/renderer/BarChartRenderer.d.ts +40 -0
  277. package/renderer/BarChartRenderer.js +362 -0
  278. package/renderer/BarChartRenderer.js.map +1 -0
  279. package/renderer/BarLineScatterCandleBubbleRenderer.d.ts +57 -0
  280. package/renderer/BarLineScatterCandleBubbleRenderer.js +63 -0
  281. package/renderer/BarLineScatterCandleBubbleRenderer.js.map +1 -0
  282. package/renderer/BubbleChartRenderer.d.ts +22 -0
  283. package/renderer/BubbleChartRenderer.js +204 -0
  284. package/renderer/BubbleChartRenderer.js.map +1 -0
  285. package/renderer/CandleStickChartRenderer.d.ts +18 -0
  286. package/renderer/CandleStickChartRenderer.js +268 -0
  287. package/renderer/CandleStickChartRenderer.js.map +1 -0
  288. package/renderer/CombinedChartRenderer.d.ts +40 -0
  289. package/renderer/CombinedChartRenderer.js +133 -0
  290. package/renderer/CombinedChartRenderer.js.map +1 -0
  291. package/renderer/DataRenderer.d.ts +103 -0
  292. package/renderer/DataRenderer.js +110 -0
  293. package/renderer/DataRenderer.js.map +1 -0
  294. package/renderer/HorizontalBarChartRenderer.d.ts +20 -0
  295. package/renderer/HorizontalBarChartRenderer.js +303 -0
  296. package/renderer/HorizontalBarChartRenderer.js.map +1 -0
  297. package/renderer/LegendRenderer.d.ts +54 -0
  298. package/renderer/LegendRenderer.js +336 -0
  299. package/renderer/LegendRenderer.js.map +1 -0
  300. package/renderer/LineChartRenderer.d.ts +100 -0
  301. package/renderer/LineChartRenderer.js +745 -0
  302. package/renderer/LineChartRenderer.js.map +1 -0
  303. package/renderer/LineRadarRenderer.d.ts +30 -0
  304. package/renderer/LineRadarRenderer.js +76 -0
  305. package/renderer/LineRadarRenderer.js.map +1 -0
  306. package/renderer/LineScatterCandleRadarRenderer.d.ts +20 -0
  307. package/renderer/LineScatterCandleRadarRenderer.js +45 -0
  308. package/renderer/LineScatterCandleRadarRenderer.js.map +1 -0
  309. package/renderer/PieChartRenderer.d.ts +86 -0
  310. package/renderer/PieChartRenderer.js +714 -0
  311. package/renderer/PieChartRenderer.js.map +1 -0
  312. package/renderer/RadarChartRenderer.d.ts +33 -0
  313. package/renderer/RadarChartRenderer.js +290 -0
  314. package/renderer/RadarChartRenderer.js.map +1 -0
  315. package/renderer/Renderer.d.ts +13 -0
  316. package/renderer/Renderer.js +11 -0
  317. package/renderer/Renderer.js.map +1 -0
  318. package/renderer/ScatterChartRenderer.d.ts +16 -0
  319. package/renderer/ScatterChartRenderer.js +147 -0
  320. package/renderer/ScatterChartRenderer.js.map +1 -0
  321. package/renderer/XAxisRenderer.d.ts +58 -0
  322. package/renderer/XAxisRenderer.js +458 -0
  323. package/renderer/XAxisRenderer.js.map +1 -0
  324. package/renderer/XAxisRendererHorizontalBarChart.d.ts +31 -0
  325. package/renderer/XAxisRendererHorizontalBarChart.js +264 -0
  326. package/renderer/XAxisRendererHorizontalBarChart.js.map +1 -0
  327. package/renderer/XAxisRendererRadarChart.d.ts +17 -0
  328. package/renderer/XAxisRendererRadarChart.js +51 -0
  329. package/renderer/XAxisRendererRadarChart.js.map +1 -0
  330. package/renderer/YAxisRenderer.d.ts +60 -0
  331. package/renderer/YAxisRenderer.js +379 -0
  332. package/renderer/YAxisRenderer.js.map +1 -0
  333. package/renderer/YAxisRendererHorizontalBarChart.d.ts +33 -0
  334. package/renderer/YAxisRendererHorizontalBarChart.js +258 -0
  335. package/renderer/YAxisRendererHorizontalBarChart.js.map +1 -0
  336. package/renderer/YAxisRendererRadarChart.d.ts +14 -0
  337. package/renderer/YAxisRendererRadarChart.js +180 -0
  338. package/renderer/YAxisRendererRadarChart.js.map +1 -0
  339. package/renderer/scatter/ChevronDownShapeRenderer.d.ts +11 -0
  340. package/renderer/scatter/ChevronDownShapeRenderer.js +15 -0
  341. package/renderer/scatter/ChevronDownShapeRenderer.js.map +1 -0
  342. package/renderer/scatter/ChevronUpShapeRenderer.d.ts +11 -0
  343. package/renderer/scatter/ChevronUpShapeRenderer.js +15 -0
  344. package/renderer/scatter/ChevronUpShapeRenderer.js.map +1 -0
  345. package/renderer/scatter/CircleShapeRenderer.d.ts +11 -0
  346. package/renderer/scatter/CircleShapeRenderer.js +31 -0
  347. package/renderer/scatter/CircleShapeRenderer.js.map +1 -0
  348. package/renderer/scatter/CrossShapeRenderer.d.ts +11 -0
  349. package/renderer/scatter/CrossShapeRenderer.js +15 -0
  350. package/renderer/scatter/CrossShapeRenderer.js.map +1 -0
  351. package/renderer/scatter/IShapeRenderer.d.ts +20 -0
  352. package/renderer/scatter/IShapeRenderer.js +2 -0
  353. package/renderer/scatter/IShapeRenderer.js.map +1 -0
  354. package/renderer/scatter/SquareShapeRenderer.d.ts +11 -0
  355. package/renderer/scatter/SquareShapeRenderer.js +31 -0
  356. package/renderer/scatter/SquareShapeRenderer.js.map +1 -0
  357. package/renderer/scatter/TriangleShapeRenderer.d.ts +12 -0
  358. package/renderer/scatter/TriangleShapeRenderer.js +43 -0
  359. package/renderer/scatter/TriangleShapeRenderer.js.map +1 -0
  360. package/renderer/scatter/XShapeRenderer.d.ts +11 -0
  361. package/renderer/scatter/XShapeRenderer.js +15 -0
  362. package/renderer/scatter/XShapeRenderer.js.map +1 -0
  363. package/utils/ColorTemplate.d.ts +34 -0
  364. package/utils/ColorTemplate.js +51 -0
  365. package/utils/ColorTemplate.js.map +1 -0
  366. package/utils/HorizontalViewPortHandler.d.ts +6 -0
  367. package/utils/HorizontalViewPortHandler.js +7 -0
  368. package/utils/HorizontalViewPortHandler.js.map +1 -0
  369. package/utils/MPPointD.d.ts +5 -0
  370. package/utils/MPPointF.d.ts +7 -0
  371. package/utils/MPSize.d.ts +7 -0
  372. package/utils/ObjectPool.d.ts +81 -0
  373. package/utils/ObjectPool.js +183 -0
  374. package/utils/ObjectPool.js.map +1 -0
  375. package/utils/Transformer.d.ts +175 -0
  376. package/utils/Transformer.js +356 -0
  377. package/utils/Transformer.js.map +1 -0
  378. package/utils/TransformerHorizontalBarChart.d.ts +14 -0
  379. package/utils/TransformerHorizontalBarChart.js +30 -0
  380. package/utils/TransformerHorizontalBarChart.js.map +1 -0
  381. package/utils/Utils.d.ts +203 -0
  382. package/utils/Utils.js +653 -0
  383. package/utils/Utils.js.map +1 -0
  384. package/utils/ViewPortHandler.d.ts +299 -0
  385. package/utils/ViewPortHandler.js +585 -0
  386. package/utils/ViewPortHandler.js.map +1 -0
  387. package/utils/colors/colorful.d.ts +1 -0
  388. package/utils/colors/colorful.js +2 -0
  389. package/utils/colors/colorful.js.map +1 -0
  390. package/utils/colors/joyful.d.ts +1 -0
  391. package/utils/colors/joyful.js +2 -0
  392. package/utils/colors/joyful.js.map +1 -0
  393. package/utils/colors/liberty.d.ts +1 -0
  394. package/utils/colors/liberty.js +2 -0
  395. package/utils/colors/liberty.js.map +1 -0
  396. package/utils/colors/material.d.ts +1 -0
  397. package/utils/colors/material.js +2 -0
  398. package/utils/colors/material.js.map +1 -0
  399. package/utils/colors/pastel.d.ts +1 -0
  400. package/utils/colors/pastel.js +2 -0
  401. package/utils/colors/pastel.js.map +1 -0
  402. package/utils/colors/vordiplom.d.ts +1 -0
  403. package/utils/colors/vordiplom.js +2 -0
  404. package/utils/colors/vordiplom.js.map +1 -0
@@ -0,0 +1,51 @@
1
+ import { LegendForm } from './Legend';
2
+ export class LegendEntry {
3
+ /**
4
+ *
5
+ * @param label The legend entry text. A `null` label will start a group.
6
+ * @param form The form to draw for this entry.
7
+ * @param formSize Set to NaN to use the legend's default.
8
+ * @param formLineWidth Set to NaN to use the legend's default.
9
+ * @param formLineDashEffect Set to nil to use the legend's default.
10
+ * @param formColor The color for drawing the form.
11
+ */
12
+ constructor(label, form, formSize, formLineWidth, formLineDashEffect, formColor) {
13
+ /**
14
+ * The form to draw for this entry.
15
+ *
16
+ * `NONE` will avoid drawing a form, and any related space.
17
+ * `EMPTY` will avoid drawing a form, but keep its space.
18
+ * `DEFAULT` will use the Legend's default.
19
+ */
20
+ this.form = LegendForm.DEFAULT;
21
+ /**
22
+ * Form size will be considered except for when .None is used
23
+ *
24
+ * Set as NaN to use the legend's default
25
+ */
26
+ this.formSize = NaN;
27
+ /**
28
+ * Line width used for shapes that consist of lines.
29
+ *
30
+ * Set as NaN to use the legend's default
31
+ */
32
+ this.formLineWidth = NaN;
33
+ /**
34
+ * Line dash path effect used for shapes that consist of lines.
35
+ *
36
+ * Set to null to use the legend's default
37
+ */
38
+ this.formLineDashEffect = null;
39
+ /**
40
+ * The color for drawing the form
41
+ */
42
+ this.formColor = null;
43
+ this.label = label;
44
+ this.form = form;
45
+ this.formSize = formSize;
46
+ this.formLineWidth = formLineWidth;
47
+ this.formLineDashEffect = formLineDashEffect;
48
+ this.formColor = formColor;
49
+ }
50
+ }
51
+ //# sourceMappingURL=LegendEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendEntry.js","sourceRoot":"","sources":["../../../src/ui-chart/components/LegendEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC,MAAM,OAAO,WAAW;IACpB;;;;;;;;OAQG;IACH,YAAY,KAAa,EAAE,IAAgB,EAAE,QAAS,EAAE,aAAc,EAAE,kBAAmC,EAAE,SAAmC;QAehJ;;;;;;WAMG;QACI,SAAI,GAAG,UAAU,CAAC,OAAO,CAAC;QAEjC;;;;WAIG;QACI,aAAQ,GAAG,GAAG,CAAC;QAEtB;;;;WAIG;QACI,kBAAa,GAAG,GAAG,CAAC;QAE3B;;;;WAIG;QACI,uBAAkB,GAAmB,IAAI,CAAC;QAEjD;;WAEG;QACI,cAAS,GAA4B,IAAI,CAAC;QA/C7C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;CA0CJ"}
@@ -0,0 +1,55 @@
1
+ import { DashPathEffect } from '@nativescript-community/ui-canvas';
2
+ import { Color } from '@nativescript/core';
3
+ import { ComponentBase } from './ComponentBase';
4
+ /** enum that indicates the position of the LimitLine label */
5
+ export declare enum LimitLabelPosition {
6
+ LEFT_TOP = 0,
7
+ LEFT_BOTTOM = 1,
8
+ CENTER_TOP = 2,
9
+ CENTER_BOTTOM = 3,
10
+ RIGHT_TOP = 4,
11
+ RIGHT_BOTTOM = 5
12
+ }
13
+ /**
14
+ * The limit line is an additional feature for all Line-, Bar- and
15
+ * ScatterCharts. It allows the displaying of an additional line in the chart
16
+ * that marks a certain maximum / limit on the specified axis (x- or y-axis).
17
+ *
18
+
19
+ */
20
+ export declare class LimitLine extends ComponentBase {
21
+ /** limit / maximum (the y-value or xIndex) */
22
+ limit: number;
23
+ /** the width of the limit line
24
+ * thinner line === better performance, thicker line === worse performance
25
+ */
26
+ lineWidth: number;
27
+ /** the color of the limit line */
28
+ lineColor: Color | string;
29
+ /** the style of the label text */
30
+ textStyle: globalAndroid.graphics.Paint.Style;
31
+ /** label string that is drawn next to the limit line */
32
+ label: string;
33
+ /** the path effect of this LimitLine that makes dashed lines possible */
34
+ dashPathEffect: DashPathEffect;
35
+ /** position of the LimitLine value label (either on the right or on
36
+ * the left edge of the chart). Not supported for RadarChart.
37
+ */
38
+ labelPosition: LimitLabelPosition;
39
+ /**
40
+ * Constructor with limit and label.
41
+ *
42
+ * @param limit - the position (the value) on the y-axis (y-value) or x-axis
43
+ * (xIndex) where this line should appear
44
+ * @param label - provide "" if no label is required
45
+ */
46
+ constructor(limit: any, label?: any);
47
+ /**
48
+ * Enables the line to be drawn in dashed mode, e.g. like this "- - - - - -"
49
+ *
50
+ * @param lineLength the length of the line pieces
51
+ * @param spaceLength the length of space inbetween the pieces
52
+ * @param phase offset, in degrees (normally, use 0)
53
+ */
54
+ enableDashedLine(lineLength: any, spaceLength: any, phase: any): void;
55
+ }
@@ -0,0 +1,62 @@
1
+ import { DashPathEffect, Style } from '@nativescript-community/ui-canvas';
2
+ import { ComponentBase } from './ComponentBase';
3
+ /** enum that indicates the position of the LimitLine label */
4
+ export var LimitLabelPosition;
5
+ (function (LimitLabelPosition) {
6
+ LimitLabelPosition[LimitLabelPosition["LEFT_TOP"] = 0] = "LEFT_TOP";
7
+ LimitLabelPosition[LimitLabelPosition["LEFT_BOTTOM"] = 1] = "LEFT_BOTTOM";
8
+ LimitLabelPosition[LimitLabelPosition["CENTER_TOP"] = 2] = "CENTER_TOP";
9
+ LimitLabelPosition[LimitLabelPosition["CENTER_BOTTOM"] = 3] = "CENTER_BOTTOM";
10
+ LimitLabelPosition[LimitLabelPosition["RIGHT_TOP"] = 4] = "RIGHT_TOP";
11
+ LimitLabelPosition[LimitLabelPosition["RIGHT_BOTTOM"] = 5] = "RIGHT_BOTTOM";
12
+ })(LimitLabelPosition || (LimitLabelPosition = {}));
13
+ /**
14
+ * The limit line is an additional feature for all Line-, Bar- and
15
+ * ScatterCharts. It allows the displaying of an additional line in the chart
16
+ * that marks a certain maximum / limit on the specified axis (x- or y-axis).
17
+ *
18
+
19
+ */
20
+ export class LimitLine extends ComponentBase {
21
+ /**
22
+ * Constructor with limit and label.
23
+ *
24
+ * @param limit - the position (the value) on the y-axis (y-value) or x-axis
25
+ * (xIndex) where this line should appear
26
+ * @param label - provide "" if no label is required
27
+ */
28
+ constructor(limit, label) {
29
+ super();
30
+ /** limit / maximum (the y-value or xIndex) */
31
+ this.limit = 0;
32
+ /** the width of the limit line
33
+ * thinner line === better performance, thicker line === worse performance
34
+ */
35
+ this.lineWidth = 2;
36
+ /** the color of the limit line */
37
+ this.lineColor = '#ED5B5B';
38
+ /** the style of the label text */
39
+ this.textStyle = Style.FILL;
40
+ /** label string that is drawn next to the limit line */
41
+ this.label = '';
42
+ /** the path effect of this LimitLine that makes dashed lines possible */
43
+ this.dashPathEffect = null;
44
+ /** position of the LimitLine value label (either on the right or on
45
+ * the left edge of the chart). Not supported for RadarChart.
46
+ */
47
+ this.labelPosition = LimitLabelPosition.RIGHT_TOP;
48
+ this.limit = limit;
49
+ this.label = label;
50
+ }
51
+ /**
52
+ * Enables the line to be drawn in dashed mode, e.g. like this "- - - - - -"
53
+ *
54
+ * @param lineLength the length of the line pieces
55
+ * @param spaceLength the length of space inbetween the pieces
56
+ * @param phase offset, in degrees (normally, use 0)
57
+ */
58
+ enableDashedLine(lineLength, spaceLength, phase) {
59
+ this.dashPathEffect = new DashPathEffect([lineLength, spaceLength], phase);
60
+ }
61
+ }
62
+ //# sourceMappingURL=LimitLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimitLine.js","sourceRoot":"","sources":["../../../src/ui-chart/components/LimitLine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,8DAA8D;AAC9D,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,mEAAQ,CAAA;IACR,yEAAW,CAAA;IACX,uEAAU,CAAA;IACV,6EAAa,CAAA;IACb,qEAAS,CAAA;IACT,2EAAY,CAAA;AAChB,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B;AACD;;;;;;GAMG;AACH,MAAM,OAAO,SAAU,SAAQ,aAAa;IA0BxC;;;;;;OAMG;IACH,YAAY,KAAK,EAAE,KAAM;QACrB,KAAK,EAAE,CAAC;QAjCZ,8CAA8C;QAC9C,UAAK,GAAG,CAAC,CAAC;QAEV;;WAEG;QACH,cAAS,GAAG,CAAC,CAAC;QAEd,kCAAkC;QAClC,cAAS,GAAmB,SAAS,CAAC;QAEtC,kCAAkC;QAClC,cAAS,GAAG,KAAK,CAAC,IAAI,CAAC;QAEvB,wDAAwD;QACxD,UAAK,GAAG,EAAE,CAAC;QAEX,yEAAyE;QACzE,mBAAc,GAAmB,IAAI,CAAC;QAEtC;;WAEG;QACH,kBAAa,GAAuB,kBAAkB,CAAC,SAAS,CAAC;QAW7D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,gBAAgB,CAAC,UAAU,EAAE,WAAW,EAAE,KAAK;QAClD,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC;IAC/E,CAAC;CACJ"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,97 @@
1
+ import { Rect } from '@nativescript-community/ui-canvas';
2
+ /**
3
+ * View that can be displayed when selecting values in the chart. Extend this class to provide custom layouts for your
4
+ * markers.
5
+ *
6
+
7
+ */
8
+ class MarkerImage {
9
+ constructor() {
10
+ this.mOffset = { x: 0, y: 0 };
11
+ this.mOffset2 = { x: 0, y: 0 };
12
+ this.mSize = { width: 0, height: 0 };
13
+ this.mDrawableBoundsCache = new Rect(0, 0, 0, 0);
14
+ }
15
+ /**
16
+ * Constructor. Sets up the MarkerView with a custom layout resource.
17
+ *
18
+ * @param context
19
+ * @param drawableResourceId the drawable resource to render
20
+ */
21
+ MarkerImage(imageSource) {
22
+ this.imageSource = imageSource;
23
+ this.mDrawableBoundsCache.set(0, 0, imageSource.width, imageSource.height);
24
+ }
25
+ set offset(offset) {
26
+ this.mOffset = offset || { x: 0, y: 0 };
27
+ }
28
+ get offset() {
29
+ return this.mOffset;
30
+ }
31
+ set size(size) {
32
+ this.mSize = size || { width: 0, height: 0 };
33
+ }
34
+ get size() {
35
+ return this.mSize;
36
+ }
37
+ set chartView(chart) {
38
+ this.mWeakChart = new WeakRef(chart);
39
+ }
40
+ get chartView() {
41
+ return this.mWeakChart?.get();
42
+ }
43
+ getOffsetForDrawingAtPoint(posX, posY) {
44
+ const offset = this.offset;
45
+ this.mOffset2.x = offset.x;
46
+ this.mOffset2.y = offset.y;
47
+ const chart = this.chartView;
48
+ let width = this.mSize.width;
49
+ let height = this.mSize.height;
50
+ if (width === 0 && this.imageSource) {
51
+ width = this.imageSource.width;
52
+ }
53
+ if (height === 0 && this.imageSource) {
54
+ height = this.imageSource.height;
55
+ }
56
+ if (posX + this.mOffset2.x < 0) {
57
+ this.mOffset2.x = -posX;
58
+ }
59
+ else if (chart && posX + width + this.mOffset2.x > chart.getMeasuredWidth()) {
60
+ this.mOffset2.x = chart.getMeasuredWidth() - posX - width;
61
+ }
62
+ if (posY + this.mOffset2.y < 0) {
63
+ this.mOffset2.y = -posY;
64
+ }
65
+ else if (chart && posY + height + this.mOffset2.y > chart.getMeasuredHeight()) {
66
+ this.mOffset2.y = chart.getMeasuredHeight() - posY - height;
67
+ }
68
+ return this.mOffset2;
69
+ }
70
+ refreshContent(e, highlight) { }
71
+ draw(c, posX, posY) {
72
+ if (!this.imageSource)
73
+ return;
74
+ const offset = this.getOffsetForDrawingAtPoint(posX, posY);
75
+ let width = this.mSize.width;
76
+ let height = this.mSize.height;
77
+ if (width === 0 && this.imageSource) {
78
+ width = this.imageSource.width;
79
+ }
80
+ if (height === 0 && this.imageSource) {
81
+ height = this.imageSource.height;
82
+ }
83
+ // this.mDrawable.copyBounds(mDrawableBoundsCache);
84
+ // this.mDrawable.setBounds(
85
+ // this.mDrawableBoundsCache.left,
86
+ // this.mDrawableBoundsCache.top,
87
+ // this.mDrawableBoundsCache.left + width,
88
+ // this.mDrawableBoundsCache.top + height);
89
+ // c.save();
90
+ // translate to the correct position and draw
91
+ // c.translate(posX + offset.x, posY + offset.y);
92
+ c.drawBitmap(this.imageSource, this.mDrawableBoundsCache, new Rect(posX + offset.x, posY + offset.y, posX + offset.x + width, posY + offset.y + height), null);
93
+ // c.restore();
94
+ // this.mDrawable.setBounds(mDrawableBoundsCache);
95
+ }
96
+ }
97
+ //# sourceMappingURL=MarkerImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkerImage.js","sourceRoot":"","sources":["../../../src/ui-chart/components/MarkerImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,IAAI,EAAE,MAAM,mCAAmC,CAAC;AAQjE;;;;;GAKG;AACH,MAAM,WAAW;IAAjB;QACY,YAAO,GAAa,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACnC,aAAQ,GAAa,EAAE,CAAC,EAAE,CAAC,E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art';
3
+ /**
4
+ * enum for the position of the x-labels relative to the chart
5
+ */
6
+ export declare enum XAxisPosition {
7
+ TOP = 0,
8
+ BOTTOM = 1,
9
+ BOTH_SIDED = 2,
10
+ TOP_INSIDE = 3,
11
+ BOTTOM_INSIDE = 4
12
+ }
13
+ /**
14
+ * Class representing the x-axis labels settings. Only use the setter methods to
15
+ * modify it. Do not access public variables directly. Be aware that not all
16
+ * features the XLabels class provides are suitable for the RadarChart.
17
+ *
18
+
19
+ */
20
+ export declare class XAxis extends AxisBase {
21
+ /**
22
+ * width of the x-axis labels in pixels - this is automatically
23
+ * calculated by the computeSize() methods in the renderers
24
+ */
25
+ mLabelWidth: number;
26
+ /**
27
+ * height of the x-axis labels in pixels - this is automatically
28
+ * calculated by the computeSize() methods in the renderers
29
+ */
30
+ mLabelHeight: number;
31
+ /**
32
+ * width of the (rotated) x-axis labels in pixels - this is automatically
33
+ * calculated by the computeSize() methods in the renderers
34
+ */
35
+ mLabelRotatedWidth: number;
36
+ /**
37
+ * height of the (rotated) x-axis labels in pixels - this is automatically
38
+ * calculated by the computeSize() methods in the renderers
39
+ */
40
+ mLabelRotatedHeight: number;
41
+ /**
42
+ * This is the angle for drawing the X axis labels (in degrees)
43
+ */
44
+ labelRotationAngle: number;
45
+ /**
46
+ * if set to true, the chart will avoid that the first and last label entry
47
+ * in the chart "clip" off the edge of the chart
48
+ */
49
+ avoidFirstLastClipping: boolean;
50
+ /**
51
+ * the position of the x-labels relative to the chart
52
+ */
53
+ position: XAxisPosition;
54
+ constructor(chart: WeakRef<Chart<any, any, any>>);
55
+ }
@@ -0,0 +1,59 @@
1
+ import { AxisBase } from './AxisBase';
2
+ /**
3
+ * enum for the position of the x-labels relative to the chart
4
+ */
5
+ export var XAxisPosition;
6
+ (function (XAxisPosition) {
7
+ XAxisPosition[XAxisPosition["TOP"] = 0] = "TOP";
8
+ XAxisPosition[XAxisPosition["BOTTOM"] = 1] = "BOTTOM";
9
+ XAxisPosition[XAxisPosition["BOTH_SIDED"] = 2] = "BOTH_SIDED";
10
+ XAxisPosition[XAxisPosition["TOP_INSIDE"] = 3] = "TOP_INSIDE";
11
+ XAxisPosition[XAxisPosition["BOTTOM_INSIDE"] = 4] = "BOTTOM_INSIDE";
12
+ })(XAxisPosition || (XAxisPosition = {}));
13
+ /**
14
+ * Class representing the x-axis labels settings. Only use the setter methods to
15
+ * modify it. Do not access public variables directly. Be aware that not all
16
+ * features the XLabels class provides are suitable for the RadarChart.
17
+ *
18
+
19
+ */
20
+ export class XAxis extends AxisBase {
21
+ constructor(chart) {
22
+ super(chart);
23
+ /**
24
+ * width of the x-axis labels in pixels - this is automatically
25
+ * calculated by the computeSize() methods in the renderers
26
+ */
27
+ this.mLabelWidth = 1;
28
+ /**
29
+ * height of the x-axis labels in pixels - this is automatically
30
+ * calculated by the computeSize() methods in the renderers
31
+ */
32
+ this.mLabelHeight = 1;
33
+ /**
34
+ * width of the (rotated) x-axis labels in pixels - this is automatically
35
+ * calculated by the computeSize() methods in the renderers
36
+ */
37
+ this.mLabelRotatedWidth = 1;
38
+ /**
39
+ * height of the (rotated) x-axis labels in pixels - this is automatically
40
+ * calculated by the computeSize() methods in the renderers
41
+ */
42
+ this.mLabelRotatedHeight = 1;
43
+ /**
44
+ * This is the angle for drawing the X axis labels (in degrees)
45
+ */
46
+ this.labelRotationAngle = 0;
47
+ /**
48
+ * if set to true, the chart will avoid that the first and last label entry
49
+ * in the chart "clip" off the edge of the chart
50
+ */
51
+ this.avoidFirstLastClipping = true;
52
+ /**
53
+ * the position of the x-labels relative to the chart
54
+ */
55
+ this.position = XAxisPosition.TOP;
56
+ this.yOffset = 4;
57
+ }
58
+ }
59
+ //# sourceMappingURL=XAxis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XAxis.js","sourceRoot":"","sources":["../../../src/ui-chart/components/XAxis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItC;;GAEG;AACH,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,+CAAG,CAAA;IACH,qDAAM,CAAA;IACN,6DAAU,CAAA;IACV,6DAAU,CAAA;IACV,mEAAa,CAAA;AACjB,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB;AAED;;;;;;GAMG;AACH,MAAM,OAAO,KAAM,SAAQ,QAAQ;IAyC/B,YAAY,KAAoC;QAC5C,KAAK,CAAC,KAAK,CAAC,CAAC;QAzCjB;;;WAGG;QACI,gBAAW,GAAG,CAAC,CAAC;QAEvB;;;WAGG;QACI,iBAAY,GAAG,CAAC,CAAC;QAExB;;;WAGG;QACI,uBAAkB,GAAG,CAAC,CAAC;QAE9B;;;WAGG;QACI,wBAAmB,GAAG,CAAC,CAAC;QAE/B;;WAEG;QACH,uBAAkB,GAAG,CAAC,CAAC;QAEvB;;;WAGG;QACH,2BAAsB,GAAG,IAAI,CAAC;QAE9B;;WAEG;QACH,aAAQ,GAAG,aAAa,CAAC,GAAG,CAAC;QAIzB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;CACJ"}
@@ -0,0 +1,135 @@
1
+ import { Paint } from '@nativescript-community/ui-canvas';
2
+ import { AxisBase } from './AxisBase';
3
+ import { Chart } from '../charts/Chart';
4
+ /**
5
+ * Enum that specifies the axis a DataSet should be plotted against, either LEFT or RIGHT.
6
+ *
7
+
8
+ */
9
+ export declare enum AxisDependency {
10
+ LEFT = 0,
11
+ RIGHT = 1
12
+ }
13
+ /**
14
+ * enum for the position of the y-labels relative to the chart
15
+ */
16
+ export declare enum YAxisLabelPosition {
17
+ OUTSIDE_CHART = 0,
18
+ INSIDE_CHART = 1
19
+ }
20
+ /**
21
+ * Class representing the y-axis labels settings and its entries. Only use the setter methods to
22
+ * modify it. Do not
23
+ * access public variables directly. Be aware that not all features the YLabels class provides
24
+ * are suitable for the
25
+ * RadarChart. Customizations that affect the value range of the axis need to be applied before
26
+ * setting data for the
27
+ * chart.
28
+ *
29
+
30
+ */
31
+ export declare class YAxis extends AxisBase {
32
+ /**
33
+ * indicates if the bottom y-label entry is drawn or not
34
+ */
35
+ drawBottomYLabelEntry: boolean;
36
+ /**
37
+ * indicates if the top y-label entry is drawn or not
38
+ */
39
+ drawTopYLabelEntry: boolean;
40
+ /**
41
+ * flag that indicates if the axis is inverted or not
42
+ */
43
+ inverted: boolean;
44
+ /**
45
+ * flag that indicates if the zero-line should be drawn regardless of other grid lines
46
+ */
47
+ drawZeroLine: boolean;
48
+ /**
49
+ * flag indicating that auto scale min restriction should be used
50
+ */
51
+ private mUseAutoScaleRestrictionMin;
52
+ /**
53
+ * flag indicating that auto scale max restriction should be used
54
+ */
55
+ private mUseAutoScaleRestrictionMax;
56
+ /**
57
+ * Color of the zero line
58
+ */
59
+ zeroLineColor: string;
60
+ /**
61
+ * Width of the zero line in pixels
62
+ */
63
+ zeroLineWidth: number;
64
+ /**
65
+ * axis space from the largest value to the top in percent of the total axis range
66
+ */
67
+ spaceTop: number;
68
+ /**
69
+ * axis space from the smallest value to the bottom in percent of the total axis range
70
+ */
71
+ spaceBottom: number;
72
+ /**
73
+ * the position of the y-labels relative to the chart
74
+ */
75
+ position: YAxisLabelPosition;
76
+ /**
77
+ * the side this axis object represents
78
+ */
79
+ axisDependency: AxisDependency;
80
+ /**
81
+ * the minimum width that the axis should take (in dp).
82
+ * <p/>
83
+ * default: 0.0
84
+ */
85
+ minWidth: number;
86
+ /**
87
+ * the maximum width that the axis can take (in dp).
88
+ * use Inifinity for disabling the maximum
89
+ * default: Number.POSITIVE_INFINITY (no maximum specified)
90
+ */
91
+ maxWidth: number;
92
+ constructor(position: AxisDependency, chart: WeakRef<Chart<any, any, any>>);
93
+ /**
94
+ * This method is deprecated.
95
+ * Use setAxisMinimum(...) / setAxisMaximum(...) instead.
96
+ *
97
+ * @param startAtZero
98
+ */
99
+ setStartAtZero(startAtZero: any): void;
100
+ /**
101
+ * This is for normal (not horizontal) charts horizontal spacing.
102
+ *
103
+ * @param p
104
+ * @return
105
+ */
106
+ getRequiredWidthSpace(p: Paint): number;
107
+ /**
108
+ * This is for HorizontalBarChart vertical spacing.
109
+ *
110
+ * @param p
111
+ * @return
112
+ */
113
+ getRequiredHeightSpace(p: Paint): number;
114
+ /**
115
+ * Returns true if this axis needs horizontal offset, false if no offset is needed.
116
+ */
117
+ get needsOffset(): boolean;
118
+ /**
119
+ * Returns true if autoscale restriction for axis min value is enabled
120
+ */
121
+ isUseAutoScaleMinRestriction(): boolean;
122
+ /**
123
+ * Sets autoscale restriction for axis min value as enabled/disabled
124
+ */
125
+ setUseAutoScaleMinRestriction(isEnabled: any): void;
126
+ /**
127
+ * Returns true if autoscale restriction for axis max value is enabled
128
+ */
129
+ isUseAutoScaleMaxRestriction(): boolean;
130
+ /**
131
+ * Sets autoscale restriction for axis max value as enabled/disabled
132
+ */
133
+ setUseAutoScaleMaxRestriction(isEnabled: any): void;
134
+ calculate(dataMin: any, dataMax: any): void;
135
+ }