@splunk/visualizations 24.7.0 → 25.0.1

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 (305) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_ChoroplethTooltip.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_ChoroplethTooltip_with_additional_fields.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_choropleth_layer.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
  7. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
  8. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
  9. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
  10. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  11. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  12. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  13. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  14. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  25. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  26. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  27. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  28. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  29. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  30. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  31. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  32. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  33. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Background_Color_grey.png +0 -0
  34. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Basic_Bubble.png +0 -0
  35. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Max_90.png +0 -0
  36. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Method_area_default.png +0 -0
  37. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Method_diameter.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Min_40.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_0_Number_of_Results_30.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_10_Number_of_Results_30.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_3a_invalid_Number_of_Results_30.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_50_Number_of_Results_30.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_Extend_Range_false.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_Extend_Range_true_default.png +0 -0
  45. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_Minor_Grid_true.png +0 -0
  46. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_With_Zero_false_default.png +0 -0
  47. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_With_Zero_true.png +0 -0
  48. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Extend_Range_false.png +0 -0
  49. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Extend_Range_true_default.png +0 -0
  50. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Major_Grid_false.png +0 -0
  51. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Minor_Grid_true.png +0 -0
  52. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_With_Zero_false_default.png +0 -0
  53. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_With_Zero_true.png +0 -0
  54. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_45.png +0 -0
  55. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_90.png +0 -0
  56. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_negative_45.png +0 -0
  57. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_negative_90.png +0 -0
  58. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Visibility_and_Y_Axis_Label_Visibility_hide.png +0 -0
  59. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Line_Visibility_hide_default.png +0 -0
  60. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Line_Visibility_show.png +0 -0
  61. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Interval_6.png +0 -0
  62. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Size_15_Minor_Tick_Size_10.png +0 -0
  63. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Visibility_hide.png +0 -0
  64. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Visibility_show.png +0 -0
  65. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Maximum_Number_14.png +0 -0
  66. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Minimum_Number_10.png +0 -0
  67. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Minor_Tick_Visibility_hide.png +0 -0
  68. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Minor_Tick_Visibility_show.png +0 -0
  69. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Scale_log.png +0 -0
  70. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Abbreviation_auto_default.png +0 -0
  71. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Abbreviation_off.png +0 -0
  72. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Line_Visibility_show.png +0 -0
  73. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Interval_150.png +0 -0
  74. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Size_15_Minor_Tick_Size_10.png +0 -0
  75. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Visibility_hide.png +0 -0
  76. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Visibility_show.png +0 -0
  77. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Maximum_Number_1500.png +0 -0
  78. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minimum_Number_500.png +0 -0
  79. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minor_Tick_Visibility_hide.png +0 -0
  80. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minor_Tick_Visibility_show.png +0 -0
  81. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Scale_log.png +0 -0
  82. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_and_X_Axis_Title_Text_hide.png +0 -0
  83. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_and_X_Axis_Title_Text_specified.png +0 -0
  84. package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Multiple_Overlay_Fields_with_space_specified.png +0 -0
  85. package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Overlay_Field_with_space_specified.png +0 -0
  86. package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y2_Axis_Mapped_Field_With_Space_specified.png +0 -0
  87. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_datasource_does_not_have_any_data.png +0 -0
  88. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_viz_does_not_connect_to_datasource.png +0 -0
  89. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
  90. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
  91. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
  92. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
  93. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
  94. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
  95. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
  96. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer.png +0 -0
  97. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_Opacities_scaled_to_be_less_than_max_of_0_8.png +0 -0
  98. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_Result_Limit_Set_To_1.png +0 -0
  99. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_String_GeoJson_Data.png +0 -0
  100. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_With_additional_fields.png +0 -0
  101. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
  102. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
  103. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
  104. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
  105. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
  106. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Background_Color_af575a.png +0 -0
  107. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Basic_Markdown.png +0 -0
  108. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Begin_with_Text_Instead_of_Header.png +0 -0
  109. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Color_purple.png +0 -0
  110. package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Size_extraLarge.png +0 -0
  111. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Background_Color_grey.png +0 -0
  112. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Basic_Scatter.png +0 -0
  113. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Marker_Size_7.png +0 -0
  114. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_Extend_Range_false.png +0 -0
  115. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_Extend_Range_true_default.png +0 -0
  116. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_Minor_Grid_true.png +0 -0
  117. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_With_Zero_false_default.png +0 -0
  118. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_With_Zero_true.png +0 -0
  119. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Extend_Range_false.png +0 -0
  120. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Extend_Range_true_default.png +0 -0
  121. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Major_Grid_false.png +0 -0
  122. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Minor_Grid_true.png +0 -0
  123. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_With_Zero_false_default.png +0 -0
  124. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_With_Zero_true.png +0 -0
  125. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_45.png +0 -0
  126. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_90.png +0 -0
  127. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_negative_45.png +0 -0
  128. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_negative_90.png +0 -0
  129. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Visibility_and_Y_Axis_Label_Visibility_hide.png +0 -0
  130. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Line_Visibility_hide_default.png +0 -0
  131. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Line_Visibility_show.png +0 -0
  132. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Interval_6.png +0 -0
  133. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Size_15_X_Axis_Minor_Tick_Size_10.png +0 -0
  134. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Visibility_hide.png +0 -0
  135. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Visibility_show.png +0 -0
  136. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Maximum_Number_14.png +0 -0
  137. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Minimum_Number_10.png +0 -0
  138. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Minor_Tick_Visibility_hide.png +0 -0
  139. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Minor_Tick_Visibility_show.png +0 -0
  140. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Scale_log.png +0 -0
  141. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Title_Text_and_Y_Axis_Title_Text_hide.png +0 -0
  142. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Title_Text_and_Y_Axis_Title_Text_specified.png +0 -0
  143. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Line_Visibility_show.png +0 -0
  144. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Interval_150.png +0 -0
  145. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Size_15_Y_Axis_Minor_Tick_Size_10.png +0 -0
  146. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Visibility_hide.png +0 -0
  147. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Visibility_show.png +0 -0
  148. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Maximum_Number_1000.png +0 -0
  149. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Minimum_Number_500.png +0 -0
  150. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Minor_Tick_Visibility_hide.png +0 -0
  151. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Minor_Tick_Visibility_show.png +0 -0
  152. package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Scale_log.png +0 -0
  153. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon.png +0 -0
  154. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Change_Icon_Color_For_A_Remote_Icon.png +0 -0
  155. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_The_Icon_As_A_Remote_Icon.png +0 -0
  156. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_the_backgroundColor_based_on_the_majorValue.png +0 -0
  157. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_the_icon_color_based_on_the_majorValue.png +0 -0
  158. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_the_majorColor_based_on_the_majorValue.png +0 -0
  159. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Mixed_Type_Series_Data.png +0 -0
  160. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Time_Type_Series_Data.png +0 -0
  161. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Background_From_Major_Value.png +0 -0
  162. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Background_From_Trend_Value.png +0 -0
  163. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial.png +0 -0
  164. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Major_Value_Color.png +0 -0
  165. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Major_Value_Color_By_Trend_Value.png +0 -0
  166. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Max_Value_1000.png +0 -0
  167. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Radial_Color_By_Major_Value.png +0 -0
  168. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value.png +0 -0
  169. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Change_The_Color_Of_Major_Value_Based_On_Its_Value.png +0 -0
  170. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Background_Color_Based_On_The_Major_Value.png +0 -0
  171. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Background_Color_Based_On_The_Trend_Value.png +0 -0
  172. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Color_Of_Major_Value_Based_On_The_Trend_Value.png +0 -0
  173. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Color_Of_The_Trend_Indicators_And_Number_Based_On_The_Trend_Value.png +0 -0
  174. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Major_Value_Based_On_String_Type_Data.png +0 -0
  175. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Trend_Index_Out_Of_Range.png +0 -0
  176. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Mixed_Type_Series_Data.png +0 -0
  177. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Time_Type_Series_Data.png +0 -0
  178. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Right.png +0 -0
  179. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Width_Auto_Expand_Last_Column.png +0 -0
  180. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Monospace.png +0 -0
  181. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number_Adv.png +0 -0
  182. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_false.png +0 -0
  183. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_true_default.png +0 -0
  184. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Formatting.png +0 -0
  185. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Zone_Time_Formatting.png +0 -0
  186. package/Area.config.js +1144 -241
  187. package/Area.config.js.map +1 -1
  188. package/Area.js +1251 -386
  189. package/Area.js.map +1 -1
  190. package/Bar.config.js +1114 -153
  191. package/Bar.config.js.map +1 -1
  192. package/Bar.js +1270 -347
  193. package/Bar.js.map +1 -1
  194. package/Bubble.config.js +727 -60
  195. package/Bubble.config.js.map +1 -1
  196. package/Bubble.js +830 -201
  197. package/Bubble.js.map +1 -1
  198. package/ChoroplethSvg.config.js +88 -40
  199. package/ChoroplethSvg.config.js.map +1 -1
  200. package/ChoroplethSvg.js +197 -182
  201. package/ChoroplethSvg.js.map +1 -1
  202. package/Column.config.js +1084 -170
  203. package/Column.config.js.map +1 -1
  204. package/Column.js +1241 -365
  205. package/Column.js.map +1 -1
  206. package/Ellipse.config.js +80 -31
  207. package/Ellipse.config.js.map +1 -1
  208. package/Ellipse.js +160 -144
  209. package/Ellipse.js.map +1 -1
  210. package/FillerGauge.config.js +93 -44
  211. package/FillerGauge.config.js.map +1 -1
  212. package/FillerGauge.js +183 -172
  213. package/FillerGauge.js.map +1 -1
  214. package/Image.config.js +78 -27
  215. package/Image.config.js.map +1 -1
  216. package/Image.js +161 -145
  217. package/Image.js.map +1 -1
  218. package/Line.config.js +1060 -108
  219. package/Line.config.js.map +1 -1
  220. package/Line.js +1210 -296
  221. package/Line.js.map +1 -1
  222. package/LinkGraph.config.js +103 -58
  223. package/LinkGraph.config.js.map +1 -1
  224. package/LinkGraph.js +208 -197
  225. package/LinkGraph.js.map +1 -1
  226. package/Map.config.js +824 -78
  227. package/Map.config.js.map +1 -1
  228. package/Map.js +878 -344
  229. package/Map.js.map +1 -1
  230. package/Markdown.config.js +98 -50
  231. package/Markdown.config.js.map +1 -1
  232. package/Markdown.js +294 -259
  233. package/Markdown.js.map +1 -1
  234. package/MarkerGauge.config.js +103 -52
  235. package/MarkerGauge.config.js.map +1 -1
  236. package/MarkerGauge.js +384 -375
  237. package/MarkerGauge.js.map +1 -1
  238. package/ParallelCoordinates.config.js +101 -49
  239. package/ParallelCoordinates.config.js.map +1 -1
  240. package/ParallelCoordinates.js +189 -178
  241. package/ParallelCoordinates.js.map +1 -1
  242. package/Pie.config.js +104 -53
  243. package/Pie.config.js.map +1 -1
  244. package/Pie.js +380 -371
  245. package/Pie.js.map +1 -1
  246. package/Punchcard.config.js +101 -51
  247. package/Punchcard.config.js.map +1 -1
  248. package/Punchcard.js +224 -215
  249. package/Punchcard.js.map +1 -1
  250. package/Rectangle.config.js +108 -56
  251. package/Rectangle.config.js.map +1 -1
  252. package/Rectangle.js +315 -298
  253. package/Rectangle.js.map +1 -1
  254. package/Sankey.config.js +107 -55
  255. package/Sankey.config.js.map +1 -1
  256. package/Sankey.js +247 -237
  257. package/Sankey.js.map +1 -1
  258. package/Scatter.config.js +816 -135
  259. package/Scatter.config.js.map +1 -1
  260. package/Scatter.js +1096 -484
  261. package/Scatter.js.map +1 -1
  262. package/SingleValue.config.js +113 -58
  263. package/SingleValue.config.js.map +1 -1
  264. package/SingleValue.js +436 -407
  265. package/SingleValue.js.map +1 -1
  266. package/SingleValueBasic.js +35 -23
  267. package/SingleValueBasic.js.map +1 -1
  268. package/SingleValueIcon.config.js +107 -57
  269. package/SingleValueIcon.config.js.map +1 -1
  270. package/SingleValueIcon.js +221 -211
  271. package/SingleValueIcon.js.map +1 -1
  272. package/SingleValueRadial.config.js +192 -168
  273. package/SingleValueRadial.config.js.map +1 -1
  274. package/SingleValueRadial.js +329 -300
  275. package/SingleValueRadial.js.map +1 -1
  276. package/Table.config.js +82 -37
  277. package/Table.config.js.map +1 -1
  278. package/Table.js +1849 -1767
  279. package/Table.js.map +1 -1
  280. package/common/Charting.js +10 -10
  281. package/common/Charting.js.map +1 -1
  282. package/common/ChartingApi.js +2 -2
  283. package/common/ChartingApi.js.map +1 -1
  284. package/common/EventsDoc.js +3 -3
  285. package/common/EventsDoc.js.map +1 -1
  286. package/common/OptionsDoc.js +74 -21
  287. package/common/OptionsDoc.js.map +1 -1
  288. package/common/SplunkVisualization.js +4 -4
  289. package/common/SplunkVisualization.js.map +1 -1
  290. package/common/ThemesDoc.js +2 -2
  291. package/common/chartingUtils.js +2 -2
  292. package/common/gaugeUtils.js +2 -2
  293. package/common/utils/configUtils.js +55 -4
  294. package/common/utils/configUtils.js.map +1 -1
  295. package/common/utils/hocUtils.js +26 -56
  296. package/common/utils/hocUtils.js.map +1 -1
  297. package/common/utils/singleValueUtils.js +4 -2
  298. package/common/utils/singleValueUtils.js.map +1 -1
  299. package/common/utils/testHelper.js +8 -8
  300. package/common/utils/testHelper.js.map +1 -1
  301. package/common/withDashboardViz.js +32 -68
  302. package/common/withDashboardViz.js.map +1 -1
  303. package/package.json +11 -11
  304. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Maximum_Number_800.png +0 -0
  305. package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minimum_Number_300.png +0 -0
package/Map.config.js CHANGED
@@ -87,24 +87,24 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 51);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 50);
91
91
  /******/ })
92
92
  /************************************************************************/
93
- /******/ ({
94
-
95
- /***/ 0:
93
+ /******/ ([
94
+ /* 0 */
96
95
  /***/ (function(module, exports) {
97
96
 
98
97
  module.exports = require("@splunk/ui-utils/i18n");
99
98
 
100
99
  /***/ }),
101
-
102
- /***/ 1:
100
+ /* 1 */
103
101
  /***/ (function(module, exports, __webpack_require__) {
104
102
 
105
103
  "use strict";
106
104
 
107
105
 
106
+ var _toConsumableArray = __webpack_require__(2);
107
+
108
108
  var _defineProperty = __webpack_require__(6);
109
109
 
110
110
  var __rest = this && this.__rest || function (s, e) {
@@ -123,13 +123,13 @@ var __rest = this && this.__rest || function (s, e) {
123
123
  Object.defineProperty(exports, "__esModule", {
124
124
  value: true
125
125
  });
126
- exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
126
+ exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
127
127
 
128
- var lodash_1 = __webpack_require__(4);
128
+ var lodash_1 = __webpack_require__(5);
129
129
 
130
- var schemaUtils_1 = __webpack_require__(3);
130
+ var schemaUtils_1 = __webpack_require__(4);
131
131
 
132
- var VizBehavior_1 = __webpack_require__(2);
132
+ var VizBehavior_1 = __webpack_require__(3);
133
133
 
134
134
  var dynamicOptionsDSLType = {
135
135
  type: 'string',
@@ -198,8 +198,10 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
198
198
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
199
199
  /**
200
200
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
201
+ * this function also collapse all editor panels
201
202
  * @param vizConfig a Visualization Config
202
203
  * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
204
+ * and containing `open: false` for all editor panels in editorConfig
203
205
  */
204
206
 
205
207
  function enhanceConfig(vizConfig) {
@@ -209,10 +211,33 @@ function enhanceConfig(vizConfig) {
209
211
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
210
212
  }
211
213
 
214
+ enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
215
+ return Object.assign(Object.assign({}, config), {
216
+ open: false
217
+ });
218
+ });
212
219
  return enhancedConfig;
213
220
  }
214
221
 
215
222
  exports.enhanceConfig = enhanceConfig;
223
+ /**
224
+ * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
225
+ * Created for editor unit tests
226
+ * @param vizConfig a Visualization Config
227
+ * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
228
+ */
229
+
230
+ function uncollapseEditorConfig(vizConfig) {
231
+ var editorPanelUncollapsedConfig = vizConfig;
232
+ editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
233
+ return Object.assign(Object.assign({}, config), {
234
+ open: true
235
+ });
236
+ });
237
+ return editorPanelUncollapsedConfig;
238
+ }
239
+
240
+ exports.uncollapseEditorConfig = uncollapseEditorConfig;
216
241
 
217
242
  function isDynamicOption(option) {
218
243
  return option && typeof option === 'string' && option.trim().startsWith('>') || false;
@@ -288,31 +313,33 @@ function generatePrecisionValues(numPrecisionValues) {
288
313
  }
289
314
 
290
315
  exports.generatePrecisionValues = generatePrecisionValues;
316
+ /**
317
+ * insert layout in layout array, return a new layout array instead of updating the original
318
+ *
319
+ * @param {EditorLayoutConfig[][]} layout - editor layout
320
+ * @param {Number} index - the index to insert layout item(s)
321
+ * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
322
+ * @returns {EditorLayoutConfig[][]} new editor layout with insertion
323
+ */
291
324
 
292
- /***/ }),
293
-
294
- /***/ 10:
295
- /***/ (function(module, exports) {
296
-
297
- module.exports = require("@splunk/visualization-icons");
298
-
299
- /***/ }),
325
+ var insertLayout = function insertLayout(layout, index) {
326
+ for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
327
+ layoutItems[_key - 2] = arguments[_key];
328
+ }
300
329
 
301
- /***/ 11:
302
- /***/ (function(module, exports) {
330
+ return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
331
+ };
303
332
 
304
- module.exports = require("@splunk/visualization-color-palettes");
333
+ exports.insertLayout = insertLayout;
305
334
 
306
335
  /***/ }),
307
-
308
- /***/ 18:
336
+ /* 2 */
309
337
  /***/ (function(module, exports) {
310
338
 
311
- module.exports = require("@splunk/themes");
339
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
312
340
 
313
341
  /***/ }),
314
-
315
- /***/ 2:
342
+ /* 3 */
316
343
  /***/ (function(module, exports, __webpack_require__) {
317
344
 
318
345
  "use strict";
@@ -349,22 +376,25 @@ var VizBehavior;
349
376
  })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
350
377
 
351
378
  /***/ }),
352
-
353
- /***/ 3:
379
+ /* 4 */
354
380
  /***/ (function(module, exports) {
355
381
 
356
382
  module.exports = require("@splunk/visualizations-shared/schemaUtils");
357
383
 
358
384
  /***/ }),
359
-
360
- /***/ 4:
385
+ /* 5 */
361
386
  /***/ (function(module, exports) {
362
387
 
363
388
  module.exports = require("lodash");
364
389
 
365
390
  /***/ }),
391
+ /* 6 */
392
+ /***/ (function(module, exports) {
366
393
 
367
- /***/ 5:
394
+ module.exports = require("@babel/runtime/helpers/defineProperty");
395
+
396
+ /***/ }),
397
+ /* 7 */
368
398
  /***/ (function(module, exports, __webpack_require__) {
369
399
 
370
400
  "use strict";
@@ -392,8 +422,69 @@ var VizCategory;
392
422
  })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
393
423
 
394
424
  /***/ }),
425
+ /* 8 */,
426
+ /* 9 */,
427
+ /* 10 */
428
+ /***/ (function(module, exports) {
429
+
430
+ module.exports = require("@splunk/visualization-icons/placeholders");
431
+
432
+ /***/ }),
433
+ /* 11 */
434
+ /***/ (function(module, exports) {
435
+
436
+ module.exports = require("@splunk/visualization-icons");
437
+
438
+ /***/ }),
439
+ /* 12 */
440
+ /***/ (function(module, exports) {
441
+
442
+ module.exports = require("@splunk/visualization-color-palettes");
443
+
444
+ /***/ }),
445
+ /* 13 */,
446
+ /* 14 */,
447
+ /* 15 */,
448
+ /* 16 */,
449
+ /* 17 */,
450
+ /* 18 */,
451
+ /* 19 */,
452
+ /* 20 */,
453
+ /* 21 */,
454
+ /* 22 */,
455
+ /* 23 */
456
+ /***/ (function(module, exports) {
395
457
 
396
- /***/ 51:
458
+ module.exports = require("@splunk/themes");
459
+
460
+ /***/ }),
461
+ /* 24 */,
462
+ /* 25 */,
463
+ /* 26 */,
464
+ /* 27 */,
465
+ /* 28 */,
466
+ /* 29 */,
467
+ /* 30 */,
468
+ /* 31 */,
469
+ /* 32 */,
470
+ /* 33 */,
471
+ /* 34 */,
472
+ /* 35 */,
473
+ /* 36 */,
474
+ /* 37 */,
475
+ /* 38 */,
476
+ /* 39 */,
477
+ /* 40 */,
478
+ /* 41 */,
479
+ /* 42 */,
480
+ /* 43 */,
481
+ /* 44 */,
482
+ /* 45 */,
483
+ /* 46 */,
484
+ /* 47 */,
485
+ /* 48 */,
486
+ /* 49 */,
487
+ /* 50 */
397
488
  /***/ (function(module, exports, __webpack_require__) {
398
489
 
399
490
  "use strict";
@@ -403,24 +494,26 @@ Object.defineProperty(exports, "__esModule", {
403
494
  value: true
404
495
  });
405
496
 
406
- var visualization_icons_1 = __webpack_require__(10);
497
+ var visualization_icons_1 = __webpack_require__(11);
407
498
 
408
- var placeholders_1 = __webpack_require__(7);
499
+ var placeholders_1 = __webpack_require__(10);
409
500
 
410
- var schemaUtils_1 = __webpack_require__(3);
501
+ var schemaUtils_1 = __webpack_require__(4);
411
502
 
412
- var visualization_color_palettes_1 = __webpack_require__(11);
503
+ var visualization_color_palettes_1 = __webpack_require__(12);
413
504
 
414
- var themes_1 = __webpack_require__(18);
505
+ var themes_1 = __webpack_require__(23);
415
506
 
416
507
  var i18n_1 = __webpack_require__(0);
417
508
 
418
- var VizBehavior_1 = __webpack_require__(2);
509
+ var VizBehavior_1 = __webpack_require__(3);
419
510
 
420
- var VizCategory_1 = __webpack_require__(5);
511
+ var VizCategory_1 = __webpack_require__(7);
421
512
 
422
513
  var configUtils_1 = __webpack_require__(1);
423
514
 
515
+ var MapUtils_1 = __webpack_require__(51);
516
+
424
517
  var defaultContext = {
425
518
  colorRangeConfig: [{
426
519
  to: 20,
@@ -477,7 +570,7 @@ var optionsSchema = {
477
570
  // The option merging of defaults and data binding with editing UI happens with the default defined below.
478
571
  // The inner defaults for properties within anyOf objects is used only for code intellisense in UDF to populate options.
479
572
  default: [{
480
- type: 'bubble',
573
+ type: MapUtils_1.LAYER_TYPE.Bubble,
481
574
  latitude: '> primary | seriesByName("latitude")',
482
575
  longitude: '> primary | seriesByName("longitude")',
483
576
  seriesColors: visualization_color_palettes_1.VIZ_CATEGORICAL,
@@ -485,12 +578,19 @@ var optionsSchema = {
485
578
  additionalTooltipFields: [],
486
579
  resultLimit: 1000
487
580
  }, {
488
- type: 'marker',
581
+ type: MapUtils_1.LAYER_TYPE.Marker,
489
582
  latitude: '> primary | seriesByName("latitude")',
490
583
  longitude: '> primary | seriesByName("longitude")',
491
584
  seriesColors: visualization_color_palettes_1.VIZ_CATEGORICAL,
492
585
  additionalTooltipFields: [],
493
586
  resultLimit: 1000
587
+ }, {
588
+ type: MapUtils_1.LAYER_TYPE.Choropleth,
589
+ areaIds: '> primary | seriesByType("string")',
590
+ areaValues: '> primary | seriesByType("number")',
591
+ dataColors: '> areaValues | gradient()',
592
+ additionalTooltipFields: [],
593
+ resultLimit: 1000
494
594
  }],
495
595
  type: 'array',
496
596
  description: 'Specify the optional data visualization layers over the base map. If empty, only the base map appears.',
@@ -499,13 +599,13 @@ var optionsSchema = {
499
599
  type: 'object',
500
600
  properties: {
501
601
  type: {
502
- description: 'Specify the type of data layer method to display points on the map. For example, “bubble” or “marker”.',
602
+ description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
503
603
  type: 'string',
504
- pattern: schemaUtils_1.getPattern(['marker', 'bubble']),
505
- default: 'marker'
604
+ pattern: schemaUtils_1.getPattern([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
605
+ default: MapUtils_1.LAYER_TYPE.Marker
506
606
  },
507
607
  latitude: {
508
- description: 'Specify a dataSource series to apply latitude coordinates for data points displayed on the map.',
608
+ description: 'Specify a dataSource series to apply latitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
509
609
  type: ['string', 'array'],
510
610
  items: {
511
611
  type: 'number'
@@ -513,31 +613,78 @@ var optionsSchema = {
513
613
  default: '> primary | seriesByName("latitude")'
514
614
  },
515
615
  longitude: {
516
- description: 'Specify a dataSource series to apply longitude coordinates for data points displayed on the map.',
616
+ description: 'Specify a dataSource series to apply longitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
517
617
  type: ['string', 'array'],
518
618
  items: {
519
619
  type: 'number'
520
620
  },
521
621
  default: '> primary | seriesByName("longitude")'
522
622
  },
623
+ seriesColors: {
624
+ description: 'Specify the colors to use for data points. If the dataColors option is specified, the seriesColors option is ignored. The seriesColors option applies to layers where type: "bubble" or type: "marker".',
625
+ type: 'array',
626
+ items: {
627
+ type: 'string',
628
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
629
+ },
630
+ default: visualization_color_palettes_1.VIZ_CATEGORICAL
631
+ },
523
632
  dataColors: {
524
- description: 'Specify the colors used for data points. If specified, this option overrides the seriesColors option. You may use an array of colors to be picked from, or you may use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. ',
633
+ description: 'Specify the colors to use for data points. You can use an array of colors to be picked from, or you can use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. When type: "choropleth", dataColors is defined by default, and the opacities are shown at 80% of maximum to allow textual information to be visible in the map. By default, the dataColors option is not defined for type "bubble" or "marker".',
525
634
  type: ['string', 'array'],
526
635
  items: {
527
636
  type: 'string'
528
637
  }
529
638
  },
530
- seriesColors: {
531
- description: 'Specify the colors used for data points. If the dataColors option is specified, the seriesColors option is ignored.',
639
+ additionalTooltipFields: {
640
+ description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values are shown in addition to the ones displayed by default.',
532
641
  type: 'array',
533
642
  items: {
534
- type: 'string',
535
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
643
+ type: 'string'
536
644
  },
537
- default: visualization_color_palettes_1.VIZ_CATEGORICAL
645
+ default: []
646
+ },
647
+ resultLimit: {
648
+ description: 'Specify the maximum number of data points to render on the map. Adjust the value to improve performance.',
649
+ type: 'number',
650
+ default: 1000
651
+ }
652
+ }
653
+ }, {
654
+ type: 'object',
655
+ properties: {
656
+ type: {
657
+ description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
658
+ type: 'string',
659
+ pattern: schemaUtils_1.getPattern([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
660
+ default: MapUtils_1.LAYER_TYPE.Choropleth
661
+ },
662
+ areaIds: {
663
+ description: 'Specify a dataSource series to identify each area in the choropleth map layer. This applies to layers where type: "choropleth".',
664
+ type: 'array',
665
+ items: {
666
+ type: 'string'
667
+ },
668
+ default: '> primary | seriesByType("string")'
669
+ },
670
+ areaValues: {
671
+ description: 'Specify a dataSource series that indicates the values for the choropleth map areas. This applies to layers where type: "choropleth".',
672
+ type: 'array',
673
+ items: {
674
+ type: 'number'
675
+ },
676
+ default: '> primary | seriesByType("number")'
677
+ },
678
+ dataColors: {
679
+ description: 'Specify the colors to use for data points. You can use an array of colors to be picked from, or you can use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. When type: "choropleth", dataColors is defined by default, and the opacities are shown at 80% of maximum to allow textual information to be visible in the map. By default, the dataColors option is not defined for type "bubble" or "marker".',
680
+ type: ['string', 'array'],
681
+ items: {
682
+ type: 'string'
683
+ },
684
+ default: '> areaValues | gradient()'
538
685
  },
539
686
  additionalTooltipFields: {
540
- description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values will be shown in addition to the ones displayed by default.',
687
+ description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values are shown in addition to the ones displayed by default.',
541
688
  type: 'array',
542
689
  items: {
543
690
  type: 'string'
@@ -554,10 +701,10 @@ var optionsSchema = {
554
701
  type: 'object',
555
702
  properties: {
556
703
  type: {
557
- description: 'Specify the type of data layer method to display points on the map. For example, “bubble” or “marker”.',
704
+ description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
558
705
  type: 'string',
559
- pattern: schemaUtils_1.getPattern(['marker', 'bubble']),
560
- default: 'bubble'
706
+ pattern: schemaUtils_1.getPattern([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
707
+ default: MapUtils_1.LAYER_TYPE.Bubble
561
708
  },
562
709
  bubbleSize: {
563
710
  description: 'Specify the data column to encode bubble size. This applies to layers where type: "bubble".',
@@ -568,7 +715,7 @@ var optionsSchema = {
568
715
  default: '> primary | frameWithoutSeriesNames("geobin", "latitude", "longitude") | frameBySeriesTypes("number")'
569
716
  },
570
717
  latitude: {
571
- description: 'Specify a dataSource series to apply latitude coordinates for data points displayed on the map.',
718
+ description: 'Specify a dataSource series to apply latitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
572
719
  type: ['string', 'array'],
573
720
  items: {
574
721
  type: 'number'
@@ -576,22 +723,15 @@ var optionsSchema = {
576
723
  default: '> primary | seriesByName("latitude")'
577
724
  },
578
725
  longitude: {
579
- description: 'Specify a dataSource series to apply longitude coordinates for data points displayed on the map.',
726
+ description: 'Specify a dataSource series to apply longitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
580
727
  type: ['string', 'array'],
581
728
  items: {
582
729
  type: 'number'
583
730
  },
584
731
  default: '> primary | seriesByName("longitude")'
585
732
  },
586
- dataColors: {
587
- description: 'Specify the colors used for data points. If specified, this option overrides the seriesColors option. You may use an array of colors to be picked from, or you may use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. ',
588
- type: ['string', 'array'],
589
- items: {
590
- type: 'string'
591
- }
592
- },
593
733
  seriesColors: {
594
- description: 'Specify the colors used for data points. If the dataColors option is specified, the seriesColors option is ignored.',
734
+ description: 'Specify the colors to use for data points. If the dataColors option is specified, the seriesColors option is ignored. The seriesColors option applies to layers where type: "bubble" or type: "marker".',
595
735
  type: 'array',
596
736
  items: {
597
737
  type: 'string',
@@ -599,8 +739,15 @@ var optionsSchema = {
599
739
  },
600
740
  default: visualization_color_palettes_1.VIZ_CATEGORICAL
601
741
  },
742
+ dataColors: {
743
+ description: 'Specify the colors to use for data points. You can use an array of colors to be picked from, or you can use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. When type: "choropleth", dataColors is defined by default, and the opacities are shown at 80% of maximum to allow textual information to be visible in the map. By default, the dataColors option is not defined for type "bubble" or "marker".',
744
+ type: ['string', 'array'],
745
+ items: {
746
+ type: 'string'
747
+ }
748
+ },
602
749
  additionalTooltipFields: {
603
- description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values will be shown in addition to the ones displayed by default.',
750
+ description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values are shown in addition to the ones displayed by default.',
604
751
  type: 'array',
605
752
  items: {
606
753
  type: 'string'
@@ -673,6 +820,11 @@ var themes = {
673
820
  })(props);
674
821
  }
675
822
  };
823
+
824
+ var checkTypeIsChoropleth = function checkTypeIsChoropleth(options) {
825
+ return options.layers && options.layers.length && options.layers[0].type === MapUtils_1.LAYER_TYPE.Choropleth;
826
+ };
827
+
676
828
  var editorConfig = [{
677
829
  label: i18n_1._('Data Layer Formatting'),
678
830
  layout: [[{
@@ -682,16 +834,49 @@ var editorConfig = [{
682
834
  editorProps: {
683
835
  values: [{
684
836
  label: i18n_1._('Marker'),
685
- value: 'marker'
837
+ value: MapUtils_1.LAYER_TYPE.Marker
686
838
  }, {
687
839
  label: i18n_1._('Bubble'),
688
- value: 'bubble'
840
+ value: MapUtils_1.LAYER_TYPE.Bubble
841
+ }, {
842
+ label: i18n_1._('Choropleth'),
843
+ value: MapUtils_1.LAYER_TYPE.Choropleth
689
844
  }]
690
845
  }
846
+ }], [{
847
+ label: i18n_1._('Region Area IDs'),
848
+ option: 'layers[0].areaIds',
849
+ editor: 'editor.columnSelector',
850
+ showEditor: function showEditor(_ref) {
851
+ var options = _ref.options;
852
+ return checkTypeIsChoropleth(options);
853
+ },
854
+ editorProps: {
855
+ dataSourceKey: 'primary',
856
+ shouldShowInternalFields: false,
857
+ filterByTypes: ['string']
858
+ }
859
+ }], [{
860
+ label: i18n_1._('Values'),
861
+ option: 'layers[0].areaValues',
862
+ editor: 'editor.columnSelector',
863
+ showEditor: function showEditor(_ref2) {
864
+ var options = _ref2.options;
865
+ return checkTypeIsChoropleth(options);
866
+ },
867
+ editorProps: {
868
+ dataSourceKey: 'primary',
869
+ shouldShowInternalFields: false,
870
+ filterByTypes: ['number']
871
+ }
691
872
  }], [{
692
873
  label: i18n_1._('Latitude'),
693
874
  option: 'layers[0].latitude',
694
875
  editor: 'editor.columnSelector',
876
+ showEditor: function showEditor(_ref3) {
877
+ var options = _ref3.options;
878
+ return !(options.layers && options.layers.length && options.layers[0].type === 'choropleth');
879
+ },
695
880
  editorProps: {
696
881
  dataSourceKey: 'primary',
697
882
  shouldShowInternalFields: false
@@ -700,6 +885,10 @@ var editorConfig = [{
700
885
  label: i18n_1._('Longitude'),
701
886
  option: 'layers[0].longitude',
702
887
  editor: 'editor.columnSelector',
888
+ showEditor: function showEditor(_ref4) {
889
+ var options = _ref4.options;
890
+ return !(options.layers && options.layers.length && options.layers[0].type === 'choropleth');
891
+ },
703
892
  editorProps: {
704
893
  dataSourceKey: 'primary',
705
894
  shouldShowInternalFields: false
@@ -708,9 +897,9 @@ var editorConfig = [{
708
897
  label: i18n_1._('Size'),
709
898
  option: 'layers[0].bubbleSize',
710
899
  editor: 'editor.columnMultiSelector',
711
- showEditor: function showEditor(_ref) {
712
- var options = _ref.options;
713
- return !(options.layers && options.layers.length && options.layers[0].type === 'marker');
900
+ showEditor: function showEditor(_ref5) {
901
+ var options = _ref5.options;
902
+ return !(options.layers && options.layers.length && (options.layers[0].type === 'marker' || options.layers[0].type === 'choropleth'));
714
903
  },
715
904
  editorProps: {
716
905
  dataSourceKey: 'primary',
@@ -761,20 +950,577 @@ var config = {
761
950
  exports.default = configUtils_1.enhanceConfig(config);
762
951
 
763
952
  /***/ }),
953
+ /* 51 */
954
+ /***/ (function(module, exports, __webpack_require__) {
955
+
956
+ "use strict";
957
+
958
+
959
+ var _defineProperty = __webpack_require__(6);
960
+
961
+ var _slicedToArray = __webpack_require__(52);
962
+
963
+ var _toConsumableArray = __webpack_require__(2);
964
+
965
+ Object.defineProperty(exports, "__esModule", {
966
+ value: true
967
+ });
968
+ exports.formatMetadata = exports.compareBaseStyles = exports.getScaledOpacities = exports.getGlobalLayerBoundaries = exports.isValidLatLon = exports.bakeBubbleData = exports.sanitizeValues = exports.transposeArray = exports.matchBubbleSize = exports.getStaticColors = exports.getZoomLevelFromGeobin = exports.getZoomConstraintsFromTileConfig = exports.getMapStyle = exports.getTilePreset = exports.LAYER_TYPE = exports.DEFAULT_OPACITY = exports.MAX_BUBBLE_RADIUS = exports.MIN_BUBBLE_RADIUS = exports.MAP_STYLE_VERSION_NUMBER = exports.DEFAULT_SERIES_COLORS = exports.DEFAULT_CLUSTER_COLOR = exports.DEFAULT_RESULT_LIMIT = exports.MIN_LONGITUDE = exports.MAX_LONGITUDE = exports.MIN_LATITUDE = exports.MAX_LATITUDE = void 0;
969
+
970
+ var lodash_1 = __webpack_require__(5);
971
+
972
+ var d3_scale_1 = __webpack_require__(53);
973
+
974
+ var chroma = __webpack_require__(54);
975
+
976
+ var colorUtils_1 = __webpack_require__(55);
977
+
978
+ var visualization_color_palettes_1 = __webpack_require__(12);
979
+
980
+ var types_1 = __webpack_require__(56);
981
+
982
+ exports.MAX_LATITUDE = 90;
983
+ exports.MIN_LATITUDE = -90;
984
+ exports.MAX_LONGITUDE = 180;
985
+ exports.MIN_LONGITUDE = -180;
986
+ exports.DEFAULT_RESULT_LIMIT = 1000;
987
+ exports.DEFAULT_CLUSTER_COLOR = '#909090';
988
+ exports.DEFAULT_SERIES_COLORS = visualization_color_palettes_1.VIZ_CATEGORICAL; // MapLibre requires a map style specification number which is always 8
989
+
990
+ exports.MAP_STYLE_VERSION_NUMBER = 8; // currently using one [min, max] value set for bubbles across all zoom levels
991
+ // TODO: design choices on [min, max] bubble size for different zoom levels
992
+
993
+ exports.MIN_BUBBLE_RADIUS = 7.11; // 10px
994
+
995
+ exports.MAX_BUBBLE_RADIUS = 45.26; // 85px
996
+
997
+ exports.DEFAULT_OPACITY = 0.8;
998
+ var LONGITUDE = 'longitude';
999
+ var LATITUDE = 'latitude';
1000
+ var LAYER_TYPE;
1001
+
1002
+ (function (LAYER_TYPE) {
1003
+ LAYER_TYPE["Marker"] = "marker";
1004
+ LAYER_TYPE["Bubble"] = "bubble";
1005
+ LAYER_TYPE["Choropleth"] = "choropleth";
1006
+ })(LAYER_TYPE = exports.LAYER_TYPE || (exports.LAYER_TYPE = {}));
1007
+ /**
1008
+ * Construct a tile preset {key: config} by combining the default + custom tile configs
1009
+ * Also returns the default tile config for each theme - light/dark
1010
+ * @param {MapContextInterface} args
1011
+ * @param {BaseTileConfig[]} args.defaultTileConfig
1012
+ * @param {BaseTileConfig[]} args.customTileConfig
1013
+ * @returns {Object} tile preset
1014
+ */
1015
+
1016
+
1017
+ var getTilePreset = function getTilePreset(_ref) {
1018
+ var _ref$defaultTileConfi = _ref.defaultTileConfig,
1019
+ defaultTileConfig = _ref$defaultTileConfi === void 0 ? [] : _ref$defaultTileConfi,
1020
+ _ref$customTileConfig = _ref.customTileConfig,
1021
+ customTileConfig = _ref$customTileConfig === void 0 ? [] : _ref$customTileConfig;
1022
+
1023
+ var _a, _b;
1024
+
1025
+ var tilePreset = {};
1026
+ var defaultTileLight = {};
1027
+ var defaultTileDark = {};
1028
+ var tileConfigs = [].concat(defaultTileConfig).concat(customTileConfig);
1029
+ lodash_1.forEach(tileConfigs, function (tileConfig) {
1030
+ var key = tileConfig === null || tileConfig === void 0 ? void 0 : tileConfig.key;
1031
+ var updatedConfig = Object.assign(Object.assign({
1032
+ theme: 'all'
1033
+ }, tileConfig), {
1034
+ version: exports.MAP_STYLE_VERSION_NUMBER
1035
+ });
1036
+ tilePreset[key] = updatedConfig;
1037
+ });
1038
+
1039
+ if (defaultTileConfig.length > 0) {
1040
+ defaultTileLight = (_a = defaultTileConfig.find(function (config) {
1041
+ return config.theme === 'light';
1042
+ })) !== null && _a !== void 0 ? _a : defaultTileConfig.find(function (config) {
1043
+ return config.theme === undefined;
1044
+ });
1045
+ defaultTileDark = (_b = defaultTileConfig.find(function (config) {
1046
+ return config.theme === 'dark';
1047
+ })) !== null && _b !== void 0 ? _b : defaultTileConfig.find(function (config) {
1048
+ return config.theme === undefined;
1049
+ });
1050
+ }
1051
+
1052
+ return {
1053
+ tilePreset: tilePreset,
1054
+ defaultTileLight: defaultTileLight,
1055
+ defaultTileDark: defaultTileDark
1056
+ };
1057
+ };
1058
+
1059
+ exports.getTilePreset = getTilePreset;
1060
+ /**
1061
+ * Check if baseLayerTileServer is in tilePreset and config matches current theme, if yes, return.
1062
+ * If no, construct a mapStyle with baseLayerTilerServer and baseLayerTileServerType
1063
+ * Else return default tile config based on current theme
1064
+ * @param {Object} args
1065
+ * @param {BaseTileConfig[]} args.tilePreset
1066
+ * @param {String} args.baseLayerTilerServer
1067
+ * @param {String} args.baseLayerTileServerType
1068
+ * @param {String} args.colorScheme
1069
+ * @param {BaseTileConfig} args.defaultTileDark
1070
+ * @param {BaseTileConfig} args.defaultTileLight
1071
+ * @returns {BaseTileConfig} mapStyle
1072
+ */
1073
+
1074
+ var getMapStyle = function getMapStyle(_ref2) {
1075
+ var _ref2$baseLayerTileSe = _ref2.baseLayerTileServer,
1076
+ baseLayerTileServer = _ref2$baseLayerTileSe === void 0 ? '' : _ref2$baseLayerTileSe,
1077
+ _ref2$baseLayerTileSe2 = _ref2.baseLayerTileServerType,
1078
+ baseLayerTileServerType = _ref2$baseLayerTileSe2 === void 0 ? '' : _ref2$baseLayerTileSe2,
1079
+ _ref2$tilePreset = _ref2.tilePreset,
1080
+ tilePreset = _ref2$tilePreset === void 0 ? {} : _ref2$tilePreset,
1081
+ _ref2$colorScheme = _ref2.colorScheme,
1082
+ colorScheme = _ref2$colorScheme === void 0 ? 'light' : _ref2$colorScheme,
1083
+ _ref2$defaultTileLigh = _ref2.defaultTileLight,
1084
+ defaultTileLight = _ref2$defaultTileLigh === void 0 ? {} : _ref2$defaultTileLigh,
1085
+ _ref2$defaultTileDark = _ref2.defaultTileDark,
1086
+ defaultTileDark = _ref2$defaultTileDark === void 0 ? {} : _ref2$defaultTileDark;
1087
+
1088
+ if (baseLayerTileServer && tilePreset[baseLayerTileServer] && (tilePreset[baseLayerTileServer].theme === colorScheme || tilePreset[baseLayerTileServer].theme === 'all')) {
1089
+ return tilePreset[baseLayerTileServer];
1090
+ }
1091
+
1092
+ if (baseLayerTileServer && baseLayerTileServerType) {
1093
+ var tiles = [];
1094
+ /**
1095
+ * Tile Server URLs (eg: http://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png) can specify the variable {s} which refers to a subdomain
1096
+ * Subdomains are used to help with browser parallel requests per domain limitation. These subdomains are typically single letters 'a', 'b' and 'c'
1097
+ * Refer to https://leafletjs.com/SlavaUkraini/reference.html#tilelayer and https://wiki.openstreetmap.org/wiki/Tile_servers
1098
+ */
1099
+
1100
+ if (baseLayerTileServer.match(/^(https?):\/\/{(s|S)}\../)) {
1101
+ /**
1102
+ * sXML (Leaflet) allows users to define their own tile server URLs + list of available subdomains
1103
+ * In order to preserve this behavior during conversion to splunk.map,
1104
+ * if the variable {s} or {S} is detected, replace it with 'a', 'b' and 'c' - default values for subdomains
1105
+ * TODO: in the future, add an additional prop - baseLayerTileServerSubdomains: ['x', 'y', 'z'], default being ['a', 'b', 'c']
1106
+ */
1107
+ tiles = [baseLayerTileServer.replace(/{(s|S)}/, 'a'), baseLayerTileServer.replace(/{(s|S)}/, 'b'), baseLayerTileServer.replace(/{(s|S)}/, 'c')];
1108
+ } else {
1109
+ tiles = [baseLayerTileServer];
1110
+ } // TODO: remove hardcoded style when we allow users to pass in layer style through Viz options
1111
+
1112
+
1113
+ var mapStyle = {
1114
+ version: exports.MAP_STYLE_VERSION_NUMBER,
1115
+ sources: {
1116
+ 'base-tiles': {
1117
+ type: baseLayerTileServerType,
1118
+ tiles: tiles,
1119
+ tileSize: 256
1120
+ }
1121
+ },
1122
+ layers: [{
1123
+ id: 'base-layer',
1124
+ type: 'raster',
1125
+ source: 'base-tiles',
1126
+ minzoom: 0,
1127
+ maxzoom: 10
1128
+ }]
1129
+ };
1130
+ return mapStyle;
1131
+ } // if tile server is not present in the preset AND we can't construct a mapStyle, fall back on defaults
1132
+
1133
+
1134
+ return colorScheme === 'light' ? defaultTileLight : defaultTileDark;
1135
+ };
1136
+
1137
+ exports.getMapStyle = getMapStyle;
1138
+
1139
+ var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig(tileConfig) {
1140
+ var sources = tileConfig.sources,
1141
+ layers = tileConfig.layers; // check sources for minzoom maxzoom first
1142
+
1143
+ var sourceKeys = Object.keys(sources);
1144
+
1145
+ for (var i = 0; i < sourceKeys.length; i += 1) {
1146
+ var _sources$sourceKeys$i = sources[sourceKeys[i]],
1147
+ minzoom = _sources$sourceKeys$i.minzoom,
1148
+ maxzoom = _sources$sourceKeys$i.maxzoom;
1149
+
1150
+ if (lodash_1.isNumber(minzoom) && lodash_1.isNumber(maxzoom)) {
1151
+ return {
1152
+ minZoom: minzoom,
1153
+ maxZoom: maxzoom
1154
+ };
1155
+ }
1156
+ } // then check layers
1157
+
1158
+
1159
+ for (var _i = 0; _i < layers.length; _i += 1) {
1160
+ var _layers$_i = layers[_i],
1161
+ _minzoom = _layers$_i.minzoom,
1162
+ _maxzoom = _layers$_i.maxzoom;
1163
+
1164
+ if (lodash_1.isNumber(_minzoom) && lodash_1.isNumber(_maxzoom)) {
1165
+ return {
1166
+ minZoom: _minzoom,
1167
+ maxZoom: _maxzoom
1168
+ };
1169
+ }
1170
+ } // Maplibre default - would reset previous min/maxZoom
1171
+
1172
+
1173
+ return {
1174
+ minZoom: 0,
1175
+ maxZoom: 22
1176
+ };
1177
+ };
1178
+
1179
+ exports.getZoomConstraintsFromTileConfig = getZoomConstraintsFromTileConfig;
1180
+
1181
+ var getZoomLevelFromGeobin = function getZoomLevelFromGeobin(geobinStr) {
1182
+ var _a;
1183
+
1184
+ if (!geobinStr) {
1185
+ return null;
1186
+ } // geostats cmds return geobin with zoom level 0-18, 0-99 in the geobinPattern covers the range
1187
+
1188
+
1189
+ var geobinPattern = /bin_id_zl_([0-9]{0,2})?_y_/g;
1190
+ var match = geobinPattern.exec(geobinStr);
1191
+ return (_a = (match === null || match === void 0 ? void 0 : match.length) && parseInt(match[1], 10)) !== null && _a !== void 0 ? _a : null;
1192
+ };
1193
+
1194
+ exports.getZoomLevelFromGeobin = getZoomLevelFromGeobin; // Bubble colors - static
1195
+
1196
+ var getStaticColors = function getStaticColors(colorCount, colorArray) {
1197
+ if (colorCount < 0 || !colorCount) {
1198
+ return [exports.DEFAULT_CLUSTER_COLOR];
1199
+ }
1200
+
1201
+ if (!colorArray || !colorArray.length) {
1202
+ return _toConsumableArray(Array(colorCount).keys()).map(function (i) {
1203
+ return exports.DEFAULT_SERIES_COLORS[i];
1204
+ });
1205
+ } // loop through colorArray to pick the first $colorCount colors
1206
+ // start from begining again if colorCount > colorArray.length
1207
+
1208
+
1209
+ return _toConsumableArray(Array(colorCount).keys()).map(function (i) {
1210
+ return colorUtils_1.isColor(colorArray[i % colorArray.length]) ? colorArray[i % colorArray.length] : exports.DEFAULT_CLUSTER_COLOR;
1211
+ });
1212
+ };
1213
+
1214
+ exports.getStaticColors = getStaticColors; // Bubble size
1215
+
1216
+ var matchBubbleSize = function matchBubbleSize(dataRange, data) {
1217
+ var size = d3_scale_1.scalePow().exponent(0.2).domain(dataRange).range([exports.MIN_BUBBLE_RADIUS, exports.MAX_BUBBLE_RADIUS])(data);
1218
+
1219
+ if (size > exports.MAX_BUBBLE_RADIUS) {
1220
+ return exports.MAX_BUBBLE_RADIUS;
1221
+ }
1222
+
1223
+ if (size < exports.MIN_BUBBLE_RADIUS) {
1224
+ return exports.MIN_BUBBLE_RADIUS;
1225
+ }
1226
+
1227
+ return size;
1228
+ };
1229
+
1230
+ exports.matchBubbleSize = matchBubbleSize;
1231
+
1232
+ var transposeArray = function transposeArray(array) {
1233
+ if (!array || !array.length || !array[0] || !array[0].length) {
1234
+ return [];
1235
+ }
1236
+
1237
+ return array[0].map(function (_, i) {
1238
+ return array.map(function (row) {
1239
+ return row[i];
1240
+ });
1241
+ });
1242
+ };
1243
+
1244
+ exports.transposeArray = transposeArray; // sanitize values: update all null, undefined, or negative values to 0
1245
+
1246
+ var sanitizeValues = function sanitizeValues(values) {
1247
+ // null / undefined
1248
+ if (!values) {
1249
+ return 0;
1250
+ } // number
1251
+
1252
+
1253
+ if (!Array.isArray(values)) {
1254
+ return values > 0 ? values : 0;
1255
+ } // array
1256
+
1257
+
1258
+ return values.map(function (arr) {
1259
+ return exports.sanitizeValues(arr);
1260
+ });
1261
+ };
1262
+
1263
+ exports.sanitizeValues = sanitizeValues;
1264
+
1265
+ var bakeBubbleData = function bakeBubbleData(layer) {
1266
+ var _a;
1267
+
1268
+ if (!layer || !((_a = layer.bubbleSize) === null || _a === void 0 ? void 0 : _a.length) || !layer.geobin || !layer.geobin.length || !layer.latitude || !layer.latitude.length || !layer.longitude || !layer.longitude.length) {
1269
+ return null;
1270
+ } // if bubbleSize is passed as an array of single number array (data series)
1271
+ // e.g. [value0, value1, ...]
1272
+ // format each value as an array to unify data operations for data series and frames
1273
+
1274
+
1275
+ var sanitizedBubbleSize = exports.sanitizeValues(layer.bubbleSize);
1276
+ var transposedBubbleSize;
1277
+ var transposedSanitizedBubbleSize;
1278
+ var isPie = false; // format array if bubbleSize is passed as an array of array (data frame)
1279
+
1280
+ if (Array.isArray(layer.bubbleSize[0])) {
1281
+ // one-time array transpose,
1282
+ // e.g. from [column0data, column0data] (multi series)
1283
+ // to [[column0datum0, column1datum0], [column0datum1, column1data1], ...]
1284
+ // or e.g. from [column0data] (single series)
1285
+ // to [[column0data]]
1286
+ // for easy access of values at each geo location,
1287
+ // and min max pie size computation
1288
+ transposedBubbleSize = exports.transposeArray(layer.bubbleSize);
1289
+ transposedSanitizedBubbleSize = exports.transposeArray(sanitizedBubbleSize); // if multiple series in the dataframe, set isPie to true
1290
+
1291
+ if (layer.bubbleSize.length > 1) {
1292
+ isPie = true;
1293
+ }
1294
+ } else {
1295
+ transposedBubbleSize = layer.bubbleSize.map(function (n) {
1296
+ return [n];
1297
+ });
1298
+ transposedSanitizedBubbleSize = sanitizedBubbleSize.map(function (n) {
1299
+ return [n];
1300
+ });
1301
+ }
1302
+
1303
+ if (!transposedBubbleSize || !transposedBubbleSize.length) {
1304
+ return null;
1305
+ }
1306
+
1307
+ var data = layer.latitude.map(function (lat, i) {
1308
+ return {
1309
+ zoom: exports.getZoomLevelFromGeobin(layer.geobin[i]),
1310
+ values: transposedBubbleSize[i],
1311
+ sanitizedValues: transposedSanitizedBubbleSize[i],
1312
+ coordinates: [layer.longitude[i], lat],
1313
+ metadata: layer.metadata ? layer.metadata[i] : {}
1314
+ };
1315
+ }).filter(function (d) {
1316
+ return Boolean(d.values);
1317
+ }); // compute the min/max value to encode min/max pie or bubble size
1318
+
1319
+ var min = lodash_1.sum(transposedSanitizedBubbleSize[0]);
1320
+ var max = lodash_1.sum(transposedSanitizedBubbleSize[1]);
1321
+ transposedSanitizedBubbleSize.forEach(function (row) {
1322
+ var bubbleSize = lodash_1.sum(row);
1323
+ max = bubbleSize > max ? bubbleSize : max;
1324
+ min = bubbleSize < min ? bubbleSize : min;
1325
+ });
1326
+ return {
1327
+ data: data,
1328
+ dataRange: [min, max],
1329
+ isPie: isPie,
1330
+ resultLimit: layer.resultLimit,
1331
+ bubbleSizeFields: layer.bubbleSizeFields
1332
+ };
1333
+ };
1334
+
1335
+ exports.bakeBubbleData = bakeBubbleData;
1336
+
1337
+ var isValidLatLon = function isValidLatLon(latlon) {
1338
+ if (!latlon || !Array.isArray(latlon) || latlon.length !== 2) {
1339
+ return false;
1340
+ }
1341
+
1342
+ var _latlon = _slicedToArray(latlon, 2),
1343
+ lat = _latlon[0],
1344
+ lon = _latlon[1];
1345
+
1346
+ if (!types_1.isNumber(lat) || !(lat >= exports.MIN_LATITUDE && lat <= exports.MAX_LATITUDE)) {
1347
+ return false;
1348
+ }
1349
+
1350
+ if (!types_1.isNumber(lon) || !(lon >= exports.MIN_LONGITUDE && lon <= exports.MAX_LONGITUDE)) {
1351
+ return false;
1352
+ }
1353
+
1354
+ return true;
1355
+ };
1356
+
1357
+ exports.isValidLatLon = isValidLatLon;
1358
+ /**
1359
+ * Returns a list of all lat or lon coordinates used in a specified layer
1360
+ * @param {LayerType[]} layer
1361
+ * @param {string} field
1362
+ * @returns {number[]} list of lat coordinates or lon coordinates
1363
+ */
1364
+
1365
+ var getLatOrLonCoordinates = function getLatOrLonCoordinates(layer, field) {
1366
+ var getClusterValues = function getClusterValues(clusterLayer) {
1367
+ return lodash_1.get(clusterLayer, field, []).slice(0, clusterLayer.type === LAYER_TYPE.Marker && clusterLayer.resultLimit ? clusterLayer.resultLimit : exports.DEFAULT_RESULT_LIMIT);
1368
+ };
1369
+
1370
+ var getChoroplethValues = function getChoroplethValues(choroplethLayer) {
1371
+ var slicedGeomList = choroplethLayer.geom.slice(0, choroplethLayer.resultLimit);
1372
+ var flatCoordinates = slicedGeomList.flatMap(function (geomObject) {
1373
+ return geomObject.coordinates.flat(2);
1374
+ });
1375
+ return flatCoordinates.map(function (coord) {
1376
+ return coord[field === LONGITUDE ? 0 : 1];
1377
+ });
1378
+ };
1379
+
1380
+ return layer.type === LAYER_TYPE.Choropleth ? getChoroplethValues(layer) : getClusterValues(layer);
1381
+ };
1382
+ /**
1383
+ * Returns the min and max LongLat pairs to determine the layer boundaries to fit all markers/bubbles
1384
+ * @param {LayerType[]} layers
1385
+ * @returns {LngLatBoundsLike}
1386
+ */
1387
+
1388
+
1389
+ var getGlobalLayerBoundaries = function getGlobalLayerBoundaries(layers) {
1390
+ var isLayerValid = function isLayerValid(field) {
1391
+ return layers.every(function (layer) {
1392
+ return layer[field] || layer.geom;
1393
+ });
1394
+ };
1395
+
1396
+ var getDefaultMax = function getDefaultMax(field) {
1397
+ return field === LONGITUDE ? exports.MAX_LONGITUDE : exports.MAX_LATITUDE;
1398
+ };
1399
+
1400
+ var getDefaultMin = function getDefaultMin(field) {
1401
+ return field === LONGITUDE ? exports.MIN_LONGITUDE : exports.MIN_LATITUDE;
1402
+ };
1403
+
1404
+ if (!layers || !Array.isArray(layers) || !layers.length) {
1405
+ return null;
1406
+ }
1407
+
1408
+ var getMin = function getMin(field) {
1409
+ if (!isLayerValid(field)) {
1410
+ return getDefaultMin(field);
1411
+ }
1412
+
1413
+ return layers.reduce(function (prevVal, layer) {
1414
+ var coordinatesNumArr = getLatOrLonCoordinates(layer, field).map(function (x) {
1415
+ return +x;
1416
+ });
1417
+ return lodash_1.min([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
1418
+ }, getDefaultMax(field));
1419
+ };
1420
+
1421
+ var getMax = function getMax(field) {
1422
+ if (!isLayerValid(field)) {
1423
+ return getDefaultMax(field);
1424
+ }
1425
+
1426
+ return layers.reduce(function (prevVal, layer) {
1427
+ var coordinatesNumArr = getLatOrLonCoordinates(layer, field).map(Number);
1428
+ return lodash_1.max([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
1429
+ }, getDefaultMin(field));
1430
+ };
1431
+
1432
+ return [[getMin(LONGITUDE), getMin(LATITUDE)], [getMax(LONGITUDE), getMax(LATITUDE)]];
1433
+ };
1434
+
1435
+ exports.getGlobalLayerBoundaries = getGlobalLayerBoundaries;
1436
+
1437
+ var getScaledOpacities = function getScaledOpacities(colors) {
1438
+ // extract opacity information from 8 digit hex codes
1439
+ var opacities = colors === null || colors === void 0 ? void 0 : colors.map(function (color) {
1440
+ var _a;
1441
+
1442
+ return (color === null || color === void 0 ? void 0 : color.length) === 9 ? (_a = chroma(color).alpha()) !== null && _a !== void 0 ? _a : exports.DEFAULT_OPACITY : exports.DEFAULT_OPACITY;
1443
+ }); // opacity cannot be greater than 0.8, otherwise it will block map labels
1444
+
1445
+ return (opacities === null || opacities === void 0 ? void 0 : opacities.filter(function (opacity) {
1446
+ return opacity > exports.DEFAULT_OPACITY;
1447
+ }).length) > 0 ? opacities.map(function (opacity) {
1448
+ return opacity * exports.DEFAULT_OPACITY;
1449
+ }) : opacities;
1450
+ };
1451
+
1452
+ exports.getScaledOpacities = getScaledOpacities;
1453
+
1454
+ var compareBaseStyles = function compareBaseStyles(curr, next) {
1455
+ var _a, _b, _c, _d, _e, _f;
1456
+
1457
+ var currBaseLayer = (_a = curr === null || curr === void 0 ? void 0 : curr.layers) === null || _a === void 0 ? void 0 : _a.find(function (layer) {
1458
+ return (layer === null || layer === void 0 ? void 0 : layer.id) === 'base-layer';
1459
+ });
1460
+ var nextBaseLayer = (_b = next === null || next === void 0 ? void 0 : next.layers) === null || _b === void 0 ? void 0 : _b.find(function (layer) {
1461
+ return (layer === null || layer === void 0 ? void 0 : layer.id) === 'base-layer';
1462
+ });
1463
+ var currBaseSource = lodash_1.get(curr === null || curr === void 0 ? void 0 : curr.sources, (_d = (_c = currBaseLayer) === null || _c === void 0 ? void 0 : _c.source) !== null && _d !== void 0 ? _d : '');
1464
+ var nextBaseSource = lodash_1.get(next === null || next === void 0 ? void 0 : next.sources, (_f = (_e = nextBaseLayer) === null || _e === void 0 ? void 0 : _e.source) !== null && _f !== void 0 ? _f : '');
1465
+
1466
+ if (!currBaseLayer || !nextBaseLayer || !currBaseSource || !nextBaseSource) {
1467
+ return false;
1468
+ }
1469
+
1470
+ return lodash_1.isEqual(currBaseLayer, nextBaseLayer) && lodash_1.isEqual(currBaseSource, nextBaseSource);
1471
+ };
1472
+
1473
+ exports.compareBaseStyles = compareBaseStyles;
1474
+
1475
+ var formatMetadata = function formatMetadata(choroplethLayer, i) {
1476
+ if (!choroplethLayer || !choroplethLayer.areaIds || !choroplethLayer.areaValues) return {};
1477
+ if (i >= choroplethLayer.areaIds.length) return {};
1478
+ var metadata = choroplethLayer.metadata ? choroplethLayer.metadata[i] : {};
1479
+ var name = choroplethLayer.areaIds[i];
1480
+ var value = choroplethLayer.areaValues[i];
1481
+ var base = {
1482
+ name: name,
1483
+ value: String(value)
1484
+ };
1485
+ return Object.keys(metadata).reduce(function (result, curr) {
1486
+ var key = "row.".concat(curr, ".value");
1487
+ var val = lodash_1.isObject(metadata[curr]) ? JSON.stringify(metadata[curr]) : String(metadata[curr]);
1488
+ return Object.assign(Object.assign({}, result), _defineProperty({}, key, val));
1489
+ }, base);
1490
+ };
1491
+
1492
+ exports.formatMetadata = formatMetadata;
1493
+
1494
+ /***/ }),
1495
+ /* 52 */
1496
+ /***/ (function(module, exports) {
1497
+
1498
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
1499
+
1500
+ /***/ }),
1501
+ /* 53 */
1502
+ /***/ (function(module, exports) {
1503
+
1504
+ module.exports = require("d3-scale");
764
1505
 
765
- /***/ 6:
1506
+ /***/ }),
1507
+ /* 54 */
766
1508
  /***/ (function(module, exports) {
767
1509
 
768
- module.exports = require("@babel/runtime/helpers/defineProperty");
1510
+ module.exports = require("chroma-js");
769
1511
 
770
1512
  /***/ }),
1513
+ /* 55 */
1514
+ /***/ (function(module, exports) {
1515
+
1516
+ module.exports = require("@splunk/visualizations-shared/colorUtils");
771
1517
 
772
- /***/ 7:
1518
+ /***/ }),
1519
+ /* 56 */
773
1520
  /***/ (function(module, exports) {
774
1521
 
775
- module.exports = require("@splunk/visualization-icons/placeholders");
1522
+ module.exports = require("@splunk/visualization-encoding/utils/types");
776
1523
 
777
1524
  /***/ })
778
-
779
- /******/ });
1525
+ /******/ ]);
780
1526
  //# sourceMappingURL=Map.config.js.map