lollipop.src.js 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /**
  2. * @license Highcharts JS v8.0.0 (2019-12-10)
  3. *
  4. * (c) 2009-2019 Sebastian Bochan, Rafal Sebestjanski
  5. *
  6. * License: www.highcharts.com/license
  7. */
  8. 'use strict';
  9. (function (factory) {
  10. if (typeof module === 'object' && module.exports) {
  11. factory['default'] = factory;
  12. module.exports = factory;
  13. } else if (typeof define === 'function' && define.amd) {
  14. define('highcharts/modules/lollipop', ['highcharts'], function (Highcharts) {
  15. factory(Highcharts);
  16. factory.Highcharts = Highcharts;
  17. return factory;
  18. });
  19. } else {
  20. factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
  21. }
  22. }(function (Highcharts) {
  23. var _modules = Highcharts ? Highcharts._modules : {};
  24. function _registerModule(obj, path, args, fn) {
  25. if (!obj.hasOwnProperty(path)) {
  26. obj[path] = fn.apply(null, args);
  27. }
  28. }
  29. _registerModule(_modules, 'modules/lollipop.src.js', [_modules['parts/Globals.js']], function (H) {
  30. /* *
  31. *
  32. * (c) 2010-2019 Sebastian Bochan, Rafal Sebestjanski
  33. *
  34. * License: www.highcharts.com/license
  35. *
  36. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  37. *
  38. * */
  39. var seriesType = H.seriesType, areaProto = H.seriesTypes.area.prototype, colProto = H.seriesTypes.column.prototype;
  40. /**
  41. * The lollipop series is a carteseian series with a line anchored from
  42. * the x axis and a dot at the end to mark the value.
  43. * Requires `highcharts-more.js`, `modules/dumbbell.js` and
  44. * `modules/lollipop.js`.
  45. *
  46. * @sample {highcharts} highcharts/demo/lollipop/
  47. * Lollipop chart
  48. * @sample {highcharts} highcharts/series-dumbbell/styled-mode-dumbbell/
  49. * Styled mode
  50. *
  51. * @extends plotOptions.dumbbell
  52. * @product highcharts highstock
  53. * @excluding fillColor, fillOpacity, lineWidth, stack, stacking, lowColor,
  54. * stickyTracking, trackByArea
  55. * @since 8.0.0
  56. * @optionparent plotOptions.lollipop
  57. */
  58. seriesType('lollipop', 'dumbbell', {
  59. /** @ignore-option */
  60. lowColor: void 0,
  61. /** @ignore-option */
  62. threshold: 0,
  63. /** @ignore-option */
  64. connectorWidth: 1,
  65. /** @ignore-option */
  66. groupPadding: 0.2,
  67. /** @ignore-option */
  68. pointPadding: 0.1,
  69. /** @ignore-option */
  70. states: {
  71. hover: {
  72. /** @ignore-option */
  73. lineWidthPlus: 0,
  74. /** @ignore-option */
  75. connectorWidthPlus: 1,
  76. /** @ignore-option */
  77. halo: false
  78. }
  79. },
  80. tooltip: {
  81. pointFormat: '<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b><br/>'
  82. }
  83. }, {
  84. translatePoint: areaProto.translate,
  85. drawPoint: areaProto.drawPoints,
  86. drawDataLabels: colProto.drawDataLabels,
  87. setShapeArgs: colProto.translate
  88. }, {
  89. pointSetState: areaProto.pointClass.prototype.setState,
  90. setState: H.seriesTypes.dumbbell.prototype.pointClass.prototype.setState
  91. });
  92. });
  93. _registerModule(_modules, 'masters/modules/lollipop.src.js', [], function () {
  94. });
  95. }));