tilemap.src.js 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. /**
  2. * @license Highmaps JS v8.0.0 (2019-12-10)
  3. *
  4. * Tilemap module
  5. *
  6. * (c) 2010-2019 Highsoft AS
  7. *
  8. * License: www.highcharts.com/license
  9. */
  10. 'use strict';
  11. (function (factory) {
  12. if (typeof module === 'object' && module.exports) {
  13. factory['default'] = factory;
  14. module.exports = factory;
  15. } else if (typeof define === 'function' && define.amd) {
  16. define('highcharts/modules/tilemap', ['highcharts', 'highcharts/modules/map'], function (Highcharts) {
  17. factory(Highcharts);
  18. factory.Highcharts = Highcharts;
  19. return factory;
  20. });
  21. } else {
  22. factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
  23. }
  24. }(function (Highcharts) {
  25. var _modules = Highcharts ? Highcharts._modules : {};
  26. function _registerModule(obj, path, args, fn) {
  27. if (!obj.hasOwnProperty(path)) {
  28. obj[path] = fn.apply(null, args);
  29. }
  30. }
  31. _registerModule(_modules, 'modules/tilemap.src.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {
  32. /* *
  33. *
  34. * Tilemaps module
  35. *
  36. * (c) 2010-2017 Highsoft AS
  37. * Author: Øystein Moseng
  38. *
  39. * License: www.highcharts.com/license
  40. *
  41. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  42. *
  43. * */
  44. var clamp = U.clamp, extend = U.extend, pick = U.pick;
  45. /**
  46. * @typedef {"circle"|"diamond"|"hexagon"|"square"} Highcharts.TilemapShapeValue
  47. */
  48. var seriesType = H.seriesType,
  49. // Utility func to get padding definition from tile size division
  50. tilePaddingFromTileSize = function (series, xDiv, yDiv) {
  51. var options = series.options;
  52. return {
  53. xPad: (options.colsize || 1) / -xDiv,
  54. yPad: (options.rowsize || 1) / -yDiv
  55. };
  56. };
  57. // Map of shape types.
  58. H.tileShapeTypes = {
  59. // Hexagon shape type.
  60. hexagon: {
  61. alignDataLabel: H.seriesTypes.scatter.prototype.alignDataLabel,
  62. getSeriesPadding: function (series) {
  63. return tilePaddingFromTileSize(series, 3, 2);
  64. },
  65. haloPath: function (size) {
  66. if (!size) {
  67. return [];
  68. }
  69. var hexagon = this.tileEdges;
  70. return [
  71. 'M', hexagon.x2 - size, hexagon.y1 + size,
  72. 'L', hexagon.x3 + size, hexagon.y1 + size,
  73. hexagon.x4 + size * 1.5, hexagon.y2,
  74. hexagon.x3 + size, hexagon.y3 - size,
  75. hexagon.x2 - size, hexagon.y3 - size,
  76. hexagon.x1 - size * 1.5, hexagon.y2,
  77. 'Z'
  78. ];
  79. },
  80. translate: function () {
  81. var series = this, options = series.options, xAxis = series.xAxis, yAxis = series.yAxis, seriesPointPadding = options.pointPadding || 0, xPad = (options.colsize || 1) / 3, yPad = (options.rowsize || 1) / 2, yShift;
  82. series.generatePoints();
  83. series.points.forEach(function (point) {
  84. var x1 = clamp(Math.floor(xAxis.len -
  85. xAxis.translate(point.x - xPad * 2, 0, 1, 0, 1)), -xAxis.len, 2 * xAxis.len), x2 = clamp(Math.floor(xAxis.len -
  86. xAxis.translate(point.x - xPad, 0, 1, 0, 1)), -xAxis.len, 2 * xAxis.len), x3 = clamp(Math.floor(xAxis.len -
  87. xAxis.translate(point.x + xPad, 0, 1, 0, 1)), -xAxis.len, 2 * xAxis.len), x4 = clamp(Math.floor(xAxis.len -
  88. xAxis.translate(point.x + xPad * 2, 0, 1, 0, 1)), -xAxis.len, 2 * xAxis.len), y1 = clamp(Math.floor(yAxis.translate(point.y - yPad, 0, 1, 0, 1)), -yAxis.len, 2 * yAxis.len), y2 = clamp(Math.floor(yAxis.translate(point.y, 0, 1, 0, 1)), -yAxis.len, 2 * yAxis.len), y3 = clamp(Math.floor(yAxis.translate(point.y + yPad, 0, 1, 0, 1)), -yAxis.len, 2 * yAxis.len), pointPadding = pick(point.pointPadding, seriesPointPadding),
  89. // We calculate the point padding of the midpoints to
  90. // preserve the angles of the shape.
  91. midPointPadding = pointPadding *
  92. Math.abs(x2 - x1) / Math.abs(y3 - y2), xMidPadding = xAxis.reversed ?
  93. -midPointPadding : midPointPadding, xPointPadding = xAxis.reversed ?
  94. -pointPadding : pointPadding, yPointPadding = yAxis.reversed ?
  95. -pointPadding : pointPadding;
  96. // Shift y-values for every second grid column
  97. if (point.x % 2) {
  98. yShift = yShift || Math.round(Math.abs(y3 - y1) / 2) *
  99. // We have to reverse the shift for reversed y-axes
  100. (yAxis.reversed ? -1 : 1);
  101. y1 += yShift;
  102. y2 += yShift;
  103. y3 += yShift;
  104. }
  105. // Set plotX and plotY for use in K-D-Tree and more
  106. point.plotX = point.clientX = (x2 + x3) / 2;
  107. point.plotY = y2;
  108. // Apply point padding to translated coordinates
  109. x1 += xMidPadding + xPointPadding;
  110. x2 += xPointPadding;
  111. x3 -= xPointPadding;
  112. x4 -= xMidPadding + xPointPadding;
  113. y1 -= yPointPadding;
  114. y3 += yPointPadding;
  115. // Store points for halo creation
  116. point.tileEdges = {
  117. x1: x1, x2: x2, x3: x3, x4: x4, y1: y1, y2: y2, y3: y3
  118. };
  119. // Finally set the shape for this point
  120. point.shapeType = 'path';
  121. point.shapeArgs = {
  122. d: [
  123. 'M', x2, y1,
  124. 'L', x3, y1,
  125. x4, y2,
  126. x3, y3,
  127. x2, y3,
  128. x1, y2,
  129. 'Z'
  130. ]
  131. };
  132. });
  133. series.translateColors();
  134. }
  135. },
  136. // Diamond shape type.
  137. diamond: {
  138. alignDataLabel: H.seriesTypes.scatter.prototype.alignDataLabel,
  139. getSeriesPadding: function (series) {
  140. return tilePaddingFromTileSize(series, 2, 2);
  141. },
  142. haloPath: function (size) {
  143. if (!size) {
  144. return [];
  145. }
  146. var diamond = this.tileEdges;
  147. return [
  148. 'M', diamond.x2, diamond.y1 + size,
  149. 'L', diamond.x3 + size, diamond.y2,
  150. diamond.x2, diamond.y3 - size,
  151. diamond.x1 - size, diamond.y2,
  152. 'Z'
  153. ];
  154. },
  155. translate: function () {
  156. var series = this, options = series.options, xAxis = series.xAxis, yAxis = series.yAxis, seriesPointPadding = options.pointPadding || 0, xPad = (options.colsize || 1), yPad = (options.rowsize || 1) / 2, yShift;
  157. series.generatePoints();
  158. series.points.forEach(function (point) {
  159. var x1 = clamp(Math.round(xAxis.len -
  160. xAxis.translate(point.x - xPad, 0, 1, 0, 0)), -xAxis.len, 2 * xAxis.len), x2 = clamp(Math.round(xAxis.len -
  161. xAxis.translate(point.x, 0, 1, 0, 0)), -xAxis.len, 2 * xAxis.len), x3 = clamp(Math.round(xAxis.len -
  162. xAxis.translate(point.x + xPad, 0, 1, 0, 0)), -xAxis.len, 2 * xAxis.len), y1 = clamp(Math.round(yAxis.translate(point.y - yPad, 0, 1, 0, 0)), -yAxis.len, 2 * yAxis.len), y2 = clamp(Math.round(yAxis.translate(point.y, 0, 1, 0, 0)), -yAxis.len, 2 * yAxis.len), y3 = clamp(Math.round(yAxis.translate(point.y + yPad, 0, 1, 0, 0)), -yAxis.len, 2 * yAxis.len), pointPadding = pick(point.pointPadding, seriesPointPadding),
  163. // We calculate the point padding of the midpoints to
  164. // preserve the angles of the shape.
  165. midPointPadding = pointPadding *
  166. Math.abs(x2 - x1) / Math.abs(y3 - y2), xPointPadding = xAxis.reversed ?
  167. -midPointPadding : midPointPadding, yPointPadding = yAxis.reversed ?
  168. -pointPadding : pointPadding;
  169. // Shift y-values for every second grid column
  170. // We have to reverse the shift for reversed y-axes
  171. if (point.x % 2) {
  172. yShift = Math.abs(y3 - y1) / 2 * (yAxis.reversed ? -1 : 1);
  173. y1 += yShift;
  174. y2 += yShift;
  175. y3 += yShift;
  176. }
  177. // Set plotX and plotY for use in K-D-Tree and more
  178. point.plotX = point.clientX = x2;
  179. point.plotY = y2;
  180. // Apply point padding to translated coordinates
  181. x1 += xPointPadding;
  182. x3 -= xPointPadding;
  183. y1 -= yPointPadding;
  184. y3 += yPointPadding;
  185. // Store points for halo creation
  186. point.tileEdges = {
  187. x1: x1, x2: x2, x3: x3, y1: y1, y2: y2, y3: y3
  188. };
  189. // Set this point's shape parameters
  190. point.shapeType = 'path';
  191. point.shapeArgs = {
  192. d: [
  193. 'M', x2, y1,
  194. 'L', x3, y2,
  195. x2, y3,
  196. x1, y2,
  197. 'Z'
  198. ]
  199. };
  200. });
  201. series.translateColors();
  202. }
  203. },
  204. // Circle shape type.
  205. circle: {
  206. alignDataLabel: H.seriesTypes.scatter.prototype.alignDataLabel,
  207. getSeriesPadding: function (series) {
  208. return tilePaddingFromTileSize(series, 2, 2);
  209. },
  210. haloPath: function (size) {
  211. return H.seriesTypes.scatter.prototype.pointClass.prototype.haloPath
  212. .call(this, size + (size && this.radius));
  213. },
  214. translate: function () {
  215. var series = this, options = series.options, xAxis = series.xAxis, yAxis = series.yAxis, seriesPointPadding = options.pointPadding || 0, yRadius = (options.rowsize || 1) / 2, colsize = (options.colsize || 1), colsizePx, yRadiusPx, xRadiusPx, radius, forceNextRadiusCompute = false;
  216. series.generatePoints();
  217. series.points.forEach(function (point) {
  218. var x = clamp(Math.round(xAxis.len -
  219. xAxis.translate(point.x, 0, 1, 0, 0)), -xAxis.len, 2 * xAxis.len), y = clamp(Math.round(yAxis.translate(point.y, 0, 1, 0, 0)), -yAxis.len, 2 * yAxis.len), pointPadding = seriesPointPadding, hasPerPointPadding = false;
  220. // If there is point padding defined on a single point, add it
  221. if (typeof point.pointPadding !== 'undefined') {
  222. pointPadding = point.pointPadding;
  223. hasPerPointPadding = true;
  224. forceNextRadiusCompute = true;
  225. }
  226. // Find radius if not found already.
  227. // Use the smallest one (x vs y) to avoid overlap.
  228. // Note that the radius will be recomputed for each series.
  229. // Ideal (max) x radius is dependent on y radius:
  230. /*
  231. * (circle 2)
  232. * (circle 3)
  233. | yRadiusPx
  234. (circle 1) *-------|
  235. colsizePx
  236. The distance between circle 1 and 3 (and circle 2 and 3) is
  237. 2r, which is the hypotenuse of the triangle created by
  238. colsizePx and yRadiusPx. If the distance between circle 2
  239. and circle 1 is less than 2r, we use half of that distance
  240. instead (yRadiusPx).
  241. */
  242. if (!radius || forceNextRadiusCompute) {
  243. colsizePx = Math.abs(clamp(Math.floor(xAxis.len -
  244. xAxis.translate(point.x + colsize, 0, 1, 0, 0)), -xAxis.len, 2 * xAxis.len) - x);
  245. yRadiusPx = Math.abs(clamp(Math.floor(yAxis.translate(point.y + yRadius, 0, 1, 0, 0)), -yAxis.len, 2 * yAxis.len) - y);
  246. xRadiusPx = Math.floor(Math.sqrt((colsizePx * colsizePx + yRadiusPx * yRadiusPx)) / 2);
  247. radius = Math.min(colsizePx, xRadiusPx, yRadiusPx) - pointPadding;
  248. // If we have per point padding we need to always compute
  249. // the radius for this point and the next. If we used to
  250. // have per point padding but don't anymore, don't force
  251. // compute next radius.
  252. if (forceNextRadiusCompute && !hasPerPointPadding) {
  253. forceNextRadiusCompute = false;
  254. }
  255. }
  256. // Shift y-values for every second grid column.
  257. // Note that we always use the optimal y axis radius for this.
  258. // Also note: We have to reverse the shift for reversed y-axes.
  259. if (point.x % 2) {
  260. y += yRadiusPx * (yAxis.reversed ? -1 : 1);
  261. }
  262. // Set plotX and plotY for use in K-D-Tree and more
  263. point.plotX = point.clientX = x;
  264. point.plotY = y;
  265. // Save radius for halo
  266. point.radius = radius;
  267. // Set this point's shape parameters
  268. point.shapeType = 'circle';
  269. point.shapeArgs = {
  270. x: x,
  271. y: y,
  272. r: radius
  273. };
  274. });
  275. series.translateColors();
  276. }
  277. },
  278. // Square shape type.
  279. square: {
  280. alignDataLabel: H.seriesTypes.heatmap.prototype.alignDataLabel,
  281. translate: H.seriesTypes.heatmap.prototype.translate,
  282. getSeriesPadding: function () {
  283. },
  284. haloPath: H.seriesTypes.heatmap.prototype.pointClass.prototype.haloPath
  285. }
  286. };
  287. /* eslint-disable no-invalid-this */
  288. // Extension to add pixel padding for series. Uses getSeriesPixelPadding on each
  289. // series and adds the largest padding required. If no series has this function
  290. // defined, we add nothing.
  291. H.addEvent(H.Axis, 'afterSetAxisTranslation', function () {
  292. if (this.recomputingForTilemap || this.coll === 'colorAxis') {
  293. return;
  294. }
  295. var axis = this,
  296. // Find which series' padding to use
  297. seriesPadding = axis.series
  298. .map(function (series) {
  299. return series.getSeriesPixelPadding &&
  300. series.getSeriesPixelPadding(axis);
  301. })
  302. .reduce(function (a, b) {
  303. return (a && a.padding) > (b && b.padding) ?
  304. a :
  305. b;
  306. }, void 0) ||
  307. {
  308. padding: 0,
  309. axisLengthFactor: 1
  310. }, lengthPadding = Math.round(seriesPadding.padding * seriesPadding.axisLengthFactor);
  311. // Don't waste time on this if we're not adding extra padding
  312. if (seriesPadding.padding) {
  313. // Recompute translation with new axis length now (minus padding)
  314. axis.len -= lengthPadding;
  315. axis.recomputingForTilemap = true;
  316. axis.setAxisTranslation();
  317. delete axis.recomputingForTilemap;
  318. axis.minPixelPadding += seriesPadding.padding;
  319. axis.len += lengthPadding;
  320. }
  321. });
  322. /**
  323. * @private
  324. * @class
  325. * @name Highcharts.seriesTypes.tilemap
  326. *
  327. * @augments Highcharts.Series
  328. */
  329. seriesType('tilemap', 'heatmap'
  330. /**
  331. * A tilemap series is a type of heatmap where the tile shapes are
  332. * configurable.
  333. *
  334. * @sample highcharts/demo/honeycomb-usa/
  335. * Honeycomb tilemap, USA
  336. * @sample maps/plotoptions/honeycomb-brazil/
  337. * Honeycomb tilemap, Brazil
  338. * @sample maps/plotoptions/honeycomb-china/
  339. * Honeycomb tilemap, China
  340. * @sample maps/plotoptions/honeycomb-europe/
  341. * Honeycomb tilemap, Europe
  342. * @sample maps/demo/circlemap-africa/
  343. * Circlemap tilemap, Africa
  344. * @sample maps/demo/diamondmap
  345. * Diamondmap tilemap
  346. *
  347. * @extends plotOptions.heatmap
  348. * @since 6.0.0
  349. * @excluding jitter, joinBy, shadow, allAreas, mapData, data
  350. * @product highcharts highmaps
  351. * @requires modules/tilemap.js
  352. * @optionparent plotOptions.tilemap
  353. */
  354. , {
  355. states: {
  356. hover: {
  357. halo: {
  358. enabled: true,
  359. size: 2,
  360. opacity: 0.5,
  361. attributes: {
  362. zIndex: 3
  363. }
  364. }
  365. }
  366. },
  367. /**
  368. * The padding between points in the tilemap.
  369. *
  370. * @sample maps/plotoptions/tilemap-pointpadding
  371. * Point padding on tiles
  372. */
  373. pointPadding: 2,
  374. /**
  375. * The column size - how many X axis units each column in the tilemap
  376. * should span. Works as in [Heatmaps](#plotOptions.heatmap.colsize).
  377. *
  378. * @sample {highcharts} maps/demo/heatmap/
  379. * One day
  380. * @sample {highmaps} maps/demo/heatmap/
  381. * One day
  382. *
  383. * @type {number}
  384. * @default 1
  385. * @product highcharts highmaps
  386. * @apioption plotOptions.tilemap.colsize
  387. */
  388. /**
  389. * The row size - how many Y axis units each tilemap row should span.
  390. * Analogous to [colsize](#plotOptions.tilemap.colsize).
  391. *
  392. * @sample {highcharts} maps/demo/heatmap/
  393. * 1 by default
  394. * @sample {highmaps} maps/demo/heatmap/
  395. * 1 by default
  396. *
  397. * @type {number}
  398. * @default 1
  399. * @product highcharts highmaps
  400. * @apioption plotOptions.tilemap.rowsize
  401. */
  402. /**
  403. * The shape of the tiles in the tilemap. Possible values are `hexagon`,
  404. * `circle`, `diamond`, and `square`.
  405. *
  406. * @sample maps/demo/circlemap-africa
  407. * Circular tile shapes
  408. * @sample maps/demo/diamondmap
  409. * Diamond tile shapes
  410. *
  411. * @type {Highcharts.TilemapShapeValue}
  412. */
  413. tileShape: 'hexagon'
  414. }, {
  415. // Set tile shape object on series
  416. setOptions: function () {
  417. // Call original function
  418. var ret = H.seriesTypes.heatmap.prototype.setOptions.apply(this, Array.prototype.slice.call(arguments));
  419. this.tileShape = H.tileShapeTypes[ret.tileShape];
  420. return ret;
  421. },
  422. // Use the shape's defined data label alignment function
  423. alignDataLabel: function () {
  424. return this.tileShape.alignDataLabel.apply(this, Array.prototype.slice.call(arguments));
  425. },
  426. // Get metrics for padding of axis for this series
  427. getSeriesPixelPadding: function (axis) {
  428. var isX = axis.isXAxis, padding = this.tileShape.getSeriesPadding(this), coord1, coord2;
  429. // If the shape type does not require padding, return no-op padding
  430. if (!padding) {
  431. return {
  432. padding: 0,
  433. axisLengthFactor: 1
  434. };
  435. }
  436. // Use translate to compute how far outside the points we
  437. // draw, and use this difference as padding.
  438. coord1 = Math.round(axis.translate(isX ?
  439. padding.xPad * 2 :
  440. padding.yPad, 0, 1, 0, 1));
  441. coord2 = Math.round(axis.translate(isX ? padding.xPad : 0, 0, 1, 0, 1));
  442. return {
  443. padding: Math.abs(coord1 - coord2) || 0,
  444. // Offset the yAxis length to compensate for shift. Setting the
  445. // length factor to 2 would add the same margin to max as min.
  446. // Now we only add a slight bit of the min margin to max, as we
  447. // don't actually draw outside the max bounds. For the xAxis we
  448. // draw outside on both sides so we add the same margin to min
  449. // and max.
  450. axisLengthFactor: isX ? 2 : 1.1
  451. };
  452. },
  453. // Use translate from tileShape
  454. translate: function () {
  455. return this.tileShape.translate.apply(this, Array.prototype.slice.call(arguments));
  456. }
  457. }, extend({
  458. // eslint-disable-next-line valid-jsdoc
  459. /**
  460. * @private
  461. * @function Highcharts.Point#haloPath
  462. *
  463. * @return {Highcharts.SVGElement|Highcharts.SVGPathArray|Array<Highcharts.SVGElement>}
  464. */
  465. haloPath: function () {
  466. return this.series.tileShape.haloPath.apply(this, Array.prototype.slice.call(arguments));
  467. }
  468. }, H.colorPointMixin));
  469. /**
  470. * A `tilemap` series. If the [type](#series.tilemap.type) option is
  471. * not specified, it is inherited from [chart.type](#chart.type).
  472. *
  473. * @extends series,plotOptions.tilemap
  474. * @excluding allAreas, dataParser, dataURL, joinBy, mapData, marker,
  475. * pointRange, shadow, stack
  476. * @product highcharts highmaps
  477. * @requires modules/tilemap.js
  478. * @apioption series.tilemap
  479. */
  480. /**
  481. * An array of data points for the series. For the `tilemap` series
  482. * type, points can be given in the following ways:
  483. *
  484. * 1. An array of arrays with 3 or 2 values. In this case, the values correspond
  485. * to `x,y,value`. If the first value is a string, it is applied as the name
  486. * of the point, and the `x` value is inferred. The `x` value can also be
  487. * omitted, in which case the inner arrays should be of length 2\. Then the
  488. * `x` value is automatically calculated, either starting at 0 and
  489. * incremented by 1, or from `pointStart` and `pointInterval` given in the
  490. * series options.
  491. * ```js
  492. * data: [
  493. * [0, 9, 7],
  494. * [1, 10, 4],
  495. * [2, 6, 3]
  496. * ]
  497. * ```
  498. *
  499. * 2. An array of objects with named values. The objects are point configuration
  500. * objects as seen below. If the total number of data points exceeds the
  501. * series' [turboThreshold](#series.tilemap.turboThreshold), this option is
  502. * not available.
  503. * ```js
  504. * data: [{
  505. * x: 1,
  506. * y: 3,
  507. * value: 10,
  508. * name: "Point2",
  509. * color: "#00FF00"
  510. * }, {
  511. * x: 1,
  512. * y: 7,
  513. * value: 10,
  514. * name: "Point1",
  515. * color: "#FF00FF"
  516. * }]
  517. * ```
  518. *
  519. * Note that for some [tileShapes](#plotOptions.tilemap.tileShape) the grid
  520. * coordinates are offset.
  521. *
  522. * @sample maps/series/tilemap-gridoffset
  523. * Offset grid coordinates
  524. * @sample {highcharts} highcharts/series/data-array-of-arrays/
  525. * Arrays of numeric x and y
  526. * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
  527. * Arrays of datetime x and y
  528. * @sample {highcharts} highcharts/series/data-array-of-name-value/
  529. * Arrays of point.name and y
  530. * @sample {highcharts} highcharts/series/data-array-of-objects/
  531. * Config objects
  532. *
  533. * @type {Array<Array<(number|string),number>|Array<(number|string),number,number>|*>}
  534. * @extends series.heatmap.data
  535. * @excluding marker
  536. * @product highcharts highmaps
  537. * @apioption series.tilemap.data
  538. */
  539. /**
  540. * The color of the point. In tilemaps the point color is rarely set
  541. * explicitly, as we use the color to denote the `value`. Options for
  542. * this are set in the [colorAxis](#colorAxis) configuration.
  543. *
  544. * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
  545. * @product highcharts highmaps
  546. * @apioption series.tilemap.data.color
  547. */
  548. /**
  549. * The x coordinate of the point.
  550. *
  551. * Note that for some [tileShapes](#plotOptions.tilemap.tileShape) the grid
  552. * coordinates are offset.
  553. *
  554. * @sample maps/series/tilemap-gridoffset
  555. * Offset grid coordinates
  556. *
  557. * @type {number}
  558. * @product highcharts highmaps
  559. * @apioption series.tilemap.data.x
  560. */
  561. /**
  562. * The y coordinate of the point.
  563. *
  564. * Note that for some [tileShapes](#plotOptions.tilemap.tileShape) the grid
  565. * coordinates are offset.
  566. *
  567. * @sample maps/series/tilemap-gridoffset
  568. * Offset grid coordinates
  569. *
  570. * @type {number}
  571. * @product highcharts highmaps
  572. * @apioption series.tilemap.data.y
  573. */
  574. ''; // adds doclets above to the transpiled file
  575. });
  576. _registerModule(_modules, 'masters/modules/tilemap.src.js', [], function () {
  577. });
  578. }));