tui_editor-rails 1.0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (887) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +6 -0
  5. data/Gemfile.lock +20 -0
  6. data/README.md +69 -0
  7. data/Rakefile +2 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/example/.gitignore +30 -0
  11. data/example/.ruby-version +1 -0
  12. data/example/Gemfile +64 -0
  13. data/example/Gemfile.lock +224 -0
  14. data/example/README.md +67 -0
  15. data/example/Rakefile +6 -0
  16. data/example/app/assets/config/manifest.js +3 -0
  17. data/example/app/assets/images/.keep +0 -0
  18. data/example/app/assets/images/screen_capture.png +0 -0
  19. data/example/app/assets/javascripts/application.js +23 -0
  20. data/example/app/assets/javascripts/cable.js +13 -0
  21. data/example/app/assets/javascripts/channels/.keep +0 -0
  22. data/example/app/assets/javascripts/home.coffee +3 -0
  23. data/example/app/assets/javascripts/posts.coffee +3 -0
  24. data/example/app/assets/stylesheets/application.scss +4 -0
  25. data/example/app/assets/stylesheets/home.scss +3 -0
  26. data/example/app/assets/stylesheets/posts.scss +3 -0
  27. data/example/app/assets/stylesheets/scaffolds.scss +84 -0
  28. data/example/app/channels/application_cable/channel.rb +4 -0
  29. data/example/app/channels/application_cable/connection.rb +4 -0
  30. data/example/app/controllers/application_controller.rb +2 -0
  31. data/example/app/controllers/concerns/.keep +0 -0
  32. data/example/app/controllers/home_controller.rb +4 -0
  33. data/example/app/controllers/posts_controller.rb +74 -0
  34. data/example/app/helpers/application_helper.rb +2 -0
  35. data/example/app/helpers/home_helper.rb +2 -0
  36. data/example/app/helpers/posts_helper.rb +2 -0
  37. data/example/app/jobs/application_job.rb +2 -0
  38. data/example/app/mailers/application_mailer.rb +4 -0
  39. data/example/app/models/application_record.rb +3 -0
  40. data/example/app/models/concerns/.keep +0 -0
  41. data/example/app/models/post.rb +2 -0
  42. data/example/app/views/home/index.html.erb +11 -0
  43. data/example/app/views/layouts/application.html.erb +14 -0
  44. data/example/app/views/layouts/mailer.html.erb +13 -0
  45. data/example/app/views/layouts/mailer.text.erb +1 -0
  46. data/example/app/views/posts/_form.html.erb +27 -0
  47. data/example/app/views/posts/_post.json.jbuilder +2 -0
  48. data/example/app/views/posts/edit.html.erb +6 -0
  49. data/example/app/views/posts/index.html.erb +29 -0
  50. data/example/app/views/posts/index.json.jbuilder +1 -0
  51. data/example/app/views/posts/new.html.erb +5 -0
  52. data/example/app/views/posts/show.html.erb +14 -0
  53. data/example/app/views/posts/show.json.jbuilder +1 -0
  54. data/example/bin/bundle +3 -0
  55. data/example/bin/rails +9 -0
  56. data/example/bin/rake +9 -0
  57. data/example/bin/setup +36 -0
  58. data/example/bin/spring +17 -0
  59. data/example/bin/update +31 -0
  60. data/example/bin/yarn +11 -0
  61. data/example/config.ru +5 -0
  62. data/example/config/application.rb +19 -0
  63. data/example/config/boot.rb +4 -0
  64. data/example/config/cable.yml +10 -0
  65. data/example/config/credentials.yml.enc +1 -0
  66. data/example/config/database.yml +25 -0
  67. data/example/config/environment.rb +5 -0
  68. data/example/config/environments/development.rb +61 -0
  69. data/example/config/environments/production.rb +94 -0
  70. data/example/config/environments/test.rb +46 -0
  71. data/example/config/initializers/application_controller_renderer.rb +8 -0
  72. data/example/config/initializers/assets.rb +14 -0
  73. data/example/config/initializers/backtrace_silencers.rb +7 -0
  74. data/example/config/initializers/content_security_policy.rb +22 -0
  75. data/example/config/initializers/cookies_serializer.rb +5 -0
  76. data/example/config/initializers/filter_parameter_logging.rb +4 -0
  77. data/example/config/initializers/inflections.rb +16 -0
  78. data/example/config/initializers/mime_types.rb +4 -0
  79. data/example/config/initializers/wrap_parameters.rb +14 -0
  80. data/example/config/locales/en.yml +33 -0
  81. data/example/config/puma.rb +34 -0
  82. data/example/config/routes.rb +6 -0
  83. data/example/config/spring.rb +6 -0
  84. data/example/config/storage.yml +35 -0
  85. data/example/db/migrate/20180208210404_create_posts.rb +10 -0
  86. data/example/db/schema.rb +22 -0
  87. data/example/db/seeds.rb +7 -0
  88. data/example/lib/assets/.keep +0 -0
  89. data/example/lib/tasks/.keep +0 -0
  90. data/example/log/.keep +0 -0
  91. data/example/package.json +5 -0
  92. data/example/public/404.html +67 -0
  93. data/example/public/422.html +67 -0
  94. data/example/public/500.html +66 -0
  95. data/example/public/apple-touch-icon-precomposed.png +0 -0
  96. data/example/public/apple-touch-icon.png +0 -0
  97. data/example/public/favicon.ico +0 -0
  98. data/example/public/robots.txt +1 -0
  99. data/example/test/application_system_test_case.rb +5 -0
  100. data/example/test/controllers/.keep +0 -0
  101. data/example/test/controllers/home_controller_test.rb +9 -0
  102. data/example/test/controllers/posts_controller_test.rb +48 -0
  103. data/example/test/fixtures/.keep +0 -0
  104. data/example/test/fixtures/files/.keep +0 -0
  105. data/example/test/fixtures/posts.yml +9 -0
  106. data/example/test/helpers/.keep +0 -0
  107. data/example/test/integration/.keep +0 -0
  108. data/example/test/mailers/.keep +0 -0
  109. data/example/test/models/.keep +0 -0
  110. data/example/test/models/post_test.rb +7 -0
  111. data/example/test/system/.keep +0 -0
  112. data/example/test/system/posts_test.rb +45 -0
  113. data/example/test/test_helper.rb +10 -0
  114. data/example/tmp/.keep +0 -0
  115. data/example/vendor/.keep +0 -0
  116. data/lib/tui_editor/rails.rb +8 -0
  117. data/lib/tui_editor/rails/version.rb +5 -0
  118. data/tui_editor-rails.gemspec +34 -0
  119. data/vendor/assets/components/codemirror/.bower.json +31 -0
  120. data/vendor/assets/components/codemirror/AUTHORS +714 -0
  121. data/vendor/assets/components/codemirror/CHANGELOG.md +1316 -0
  122. data/vendor/assets/components/codemirror/CONTRIBUTING.md +92 -0
  123. data/vendor/assets/components/codemirror/LICENSE +21 -0
  124. data/vendor/assets/components/codemirror/README.md +35 -0
  125. data/vendor/assets/components/codemirror/addon/comment/comment.js +209 -0
  126. data/vendor/assets/components/codemirror/addon/comment/continuecomment.js +78 -0
  127. data/vendor/assets/components/codemirror/addon/dialog/dialog.css +32 -0
  128. data/vendor/assets/components/codemirror/addon/dialog/dialog.js +157 -0
  129. data/vendor/assets/components/codemirror/addon/display/autorefresh.js +47 -0
  130. data/vendor/assets/components/codemirror/addon/display/fullscreen.css +6 -0
  131. data/vendor/assets/components/codemirror/addon/display/fullscreen.js +41 -0
  132. data/vendor/assets/components/codemirror/addon/display/panel.js +123 -0
  133. data/vendor/assets/components/codemirror/addon/display/placeholder.js +63 -0
  134. data/vendor/assets/components/codemirror/addon/display/rulers.js +51 -0
  135. data/vendor/assets/components/codemirror/addon/edit/closebrackets.js +194 -0
  136. data/vendor/assets/components/codemirror/addon/edit/closetag.js +175 -0
  137. data/vendor/assets/components/codemirror/addon/edit/continuelist.js +89 -0
  138. data/vendor/assets/components/codemirror/addon/edit/matchbrackets.js +145 -0
  139. data/vendor/assets/components/codemirror/addon/edit/matchtags.js +66 -0
  140. data/vendor/assets/components/codemirror/addon/edit/trailingspace.js +27 -0
  141. data/vendor/assets/components/codemirror/addon/fold/brace-fold.js +105 -0
  142. data/vendor/assets/components/codemirror/addon/fold/comment-fold.js +59 -0
  143. data/vendor/assets/components/codemirror/addon/fold/foldcode.js +152 -0
  144. data/vendor/assets/components/codemirror/addon/fold/foldgutter.css +20 -0
  145. data/vendor/assets/components/codemirror/addon/fold/foldgutter.js +146 -0
  146. data/vendor/assets/components/codemirror/addon/fold/indent-fold.js +48 -0
  147. data/vendor/assets/components/codemirror/addon/fold/markdown-fold.js +49 -0
  148. data/vendor/assets/components/codemirror/addon/fold/xml-fold.js +182 -0
  149. data/vendor/assets/components/codemirror/addon/hint/anyword-hint.js +41 -0
  150. data/vendor/assets/components/codemirror/addon/hint/css-hint.js +60 -0
  151. data/vendor/assets/components/codemirror/addon/hint/html-hint.js +348 -0
  152. data/vendor/assets/components/codemirror/addon/hint/javascript-hint.js +155 -0
  153. data/vendor/assets/components/codemirror/addon/hint/show-hint.css +36 -0
  154. data/vendor/assets/components/codemirror/addon/hint/show-hint.js +432 -0
  155. data/vendor/assets/components/codemirror/addon/hint/sql-hint.js +286 -0
  156. data/vendor/assets/components/codemirror/addon/hint/xml-hint.js +110 -0
  157. data/vendor/assets/components/codemirror/addon/lint/coffeescript-lint.js +47 -0
  158. data/vendor/assets/components/codemirror/addon/lint/css-lint.js +40 -0
  159. data/vendor/assets/components/codemirror/addon/lint/html-lint.js +53 -0
  160. data/vendor/assets/components/codemirror/addon/lint/javascript-lint.js +63 -0
  161. data/vendor/assets/components/codemirror/addon/lint/json-lint.js +37 -0
  162. data/vendor/assets/components/codemirror/addon/lint/lint.css +73 -0
  163. data/vendor/assets/components/codemirror/addon/lint/lint.js +252 -0
  164. data/vendor/assets/components/codemirror/addon/lint/yaml-lint.js +41 -0
  165. data/vendor/assets/components/codemirror/addon/merge/merge.css +113 -0
  166. data/vendor/assets/components/codemirror/addon/merge/merge.js +1001 -0
  167. data/vendor/assets/components/codemirror/addon/mode/loadmode.js +64 -0
  168. data/vendor/assets/components/codemirror/addon/mode/multiplex.js +123 -0
  169. data/vendor/assets/components/codemirror/addon/mode/multiplex_test.js +33 -0
  170. data/vendor/assets/components/codemirror/addon/mode/overlay.js +90 -0
  171. data/vendor/assets/components/codemirror/addon/mode/simple.js +216 -0
  172. data/vendor/assets/components/codemirror/addon/runmode/colorize.js +40 -0
  173. data/vendor/assets/components/codemirror/addon/runmode/runmode-standalone.js +158 -0
  174. data/vendor/assets/components/codemirror/addon/runmode/runmode.js +72 -0
  175. data/vendor/assets/components/codemirror/addon/runmode/runmode.node.js +197 -0
  176. data/vendor/assets/components/codemirror/addon/scroll/annotatescrollbar.js +122 -0
  177. data/vendor/assets/components/codemirror/addon/scroll/scrollpastend.js +48 -0
  178. data/vendor/assets/components/codemirror/addon/scroll/simplescrollbars.css +66 -0
  179. data/vendor/assets/components/codemirror/addon/scroll/simplescrollbars.js +152 -0
  180. data/vendor/assets/components/codemirror/addon/search/jump-to-line.js +49 -0
  181. data/vendor/assets/components/codemirror/addon/search/match-highlighter.js +165 -0
  182. data/vendor/assets/components/codemirror/addon/search/matchesonscrollbar.css +8 -0
  183. data/vendor/assets/components/codemirror/addon/search/matchesonscrollbar.js +97 -0
  184. data/vendor/assets/components/codemirror/addon/search/search.js +252 -0
  185. data/vendor/assets/components/codemirror/addon/search/searchcursor.js +289 -0
  186. data/vendor/assets/components/codemirror/addon/selection/active-line.js +72 -0
  187. data/vendor/assets/components/codemirror/addon/selection/mark-selection.js +119 -0
  188. data/vendor/assets/components/codemirror/addon/selection/selection-pointer.js +98 -0
  189. data/vendor/assets/components/codemirror/addon/tern/tern.css +87 -0
  190. data/vendor/assets/components/codemirror/addon/tern/tern.js +718 -0
  191. data/vendor/assets/components/codemirror/addon/tern/worker.js +44 -0
  192. data/vendor/assets/components/codemirror/addon/wrap/hardwrap.js +144 -0
  193. data/vendor/assets/components/codemirror/bower.json +17 -0
  194. data/vendor/assets/components/codemirror/component-tools/bower.json +17 -0
  195. data/vendor/assets/components/codemirror/component-tools/build.sh +31 -0
  196. data/vendor/assets/components/codemirror/component-tools/update.py +38 -0
  197. data/vendor/assets/components/codemirror/keymap/emacs.js +416 -0
  198. data/vendor/assets/components/codemirror/keymap/sublime.js +685 -0
  199. data/vendor/assets/components/codemirror/keymap/vim.js +5219 -0
  200. data/vendor/assets/components/codemirror/lib/codemirror.css +346 -0
  201. data/vendor/assets/components/codemirror/lib/codemirror.js +9669 -0
  202. data/vendor/assets/components/codemirror/mode/apl/apl.js +174 -0
  203. data/vendor/assets/components/codemirror/mode/asciiarmor/asciiarmor.js +74 -0
  204. data/vendor/assets/components/codemirror/mode/asn.1/asn.1.js +204 -0
  205. data/vendor/assets/components/codemirror/mode/asterisk/asterisk.js +196 -0
  206. data/vendor/assets/components/codemirror/mode/brainfuck/brainfuck.js +85 -0
  207. data/vendor/assets/components/codemirror/mode/clike/clike.js +817 -0
  208. data/vendor/assets/components/codemirror/mode/clojure/clojure.js +306 -0
  209. data/vendor/assets/components/codemirror/mode/cmake/cmake.js +97 -0
  210. data/vendor/assets/components/codemirror/mode/cobol/cobol.js +255 -0
  211. data/vendor/assets/components/codemirror/mode/coffeescript/coffeescript.js +359 -0
  212. data/vendor/assets/components/codemirror/mode/commonlisp/commonlisp.js +124 -0
  213. data/vendor/assets/components/codemirror/mode/crystal/crystal.js +433 -0
  214. data/vendor/assets/components/codemirror/mode/css/css.js +832 -0
  215. data/vendor/assets/components/codemirror/mode/cypher/cypher.js +150 -0
  216. data/vendor/assets/components/codemirror/mode/d/d.js +218 -0
  217. data/vendor/assets/components/codemirror/mode/dart/dart.js +157 -0
  218. data/vendor/assets/components/codemirror/mode/diff/diff.js +47 -0
  219. data/vendor/assets/components/codemirror/mode/django/django.js +356 -0
  220. data/vendor/assets/components/codemirror/mode/dockerfile/dockerfile.js +79 -0
  221. data/vendor/assets/components/codemirror/mode/dtd/dtd.js +142 -0
  222. data/vendor/assets/components/codemirror/mode/dylan/dylan.js +352 -0
  223. data/vendor/assets/components/codemirror/mode/ebnf/ebnf.js +195 -0
  224. data/vendor/assets/components/codemirror/mode/ecl/ecl.js +206 -0
  225. data/vendor/assets/components/codemirror/mode/eiffel/eiffel.js +160 -0
  226. data/vendor/assets/components/codemirror/mode/elm/elm.js +205 -0
  227. data/vendor/assets/components/codemirror/mode/erlang/erlang.js +619 -0
  228. data/vendor/assets/components/codemirror/mode/factor/factor.js +85 -0
  229. data/vendor/assets/components/codemirror/mode/fcl/fcl.js +173 -0
  230. data/vendor/assets/components/codemirror/mode/forth/forth.js +180 -0
  231. data/vendor/assets/components/codemirror/mode/fortran/fortran.js +188 -0
  232. data/vendor/assets/components/codemirror/mode/gas/gas.js +345 -0
  233. data/vendor/assets/components/codemirror/mode/gfm/gfm.js +129 -0
  234. data/vendor/assets/components/codemirror/mode/gherkin/gherkin.js +178 -0
  235. data/vendor/assets/components/codemirror/mode/go/go.js +187 -0
  236. data/vendor/assets/components/codemirror/mode/groovy/groovy.js +230 -0
  237. data/vendor/assets/components/codemirror/mode/haml/haml.js +161 -0
  238. data/vendor/assets/components/codemirror/mode/handlebars/handlebars.js +62 -0
  239. data/vendor/assets/components/codemirror/mode/haskell-literate/haskell-literate.js +43 -0
  240. data/vendor/assets/components/codemirror/mode/haskell/haskell.js +267 -0
  241. data/vendor/assets/components/codemirror/mode/haxe/haxe.js +515 -0
  242. data/vendor/assets/components/codemirror/mode/htmlembedded/htmlembedded.js +37 -0
  243. data/vendor/assets/components/codemirror/mode/htmlmixed/htmlmixed.js +152 -0
  244. data/vendor/assets/components/codemirror/mode/http/http.js +113 -0
  245. data/vendor/assets/components/codemirror/mode/idl/idl.js +290 -0
  246. data/vendor/assets/components/codemirror/mode/javascript/javascript.js +865 -0
  247. data/vendor/assets/components/codemirror/mode/jinja2/jinja2.js +142 -0
  248. data/vendor/assets/components/codemirror/mode/jsx/jsx.js +148 -0
  249. data/vendor/assets/components/codemirror/mode/julia/julia.js +418 -0
  250. data/vendor/assets/components/codemirror/mode/livescript/livescript.js +280 -0
  251. data/vendor/assets/components/codemirror/mode/lua/lua.js +159 -0
  252. data/vendor/assets/components/codemirror/mode/markdown/markdown.js +872 -0
  253. data/vendor/assets/components/codemirror/mode/mathematica/mathematica.js +176 -0
  254. data/vendor/assets/components/codemirror/mode/mbox/mbox.js +129 -0
  255. data/vendor/assets/components/codemirror/mode/meta.js +217 -0
  256. data/vendor/assets/components/codemirror/mode/mirc/mirc.js +193 -0
  257. data/vendor/assets/components/codemirror/mode/mllike/mllike.js +356 -0
  258. data/vendor/assets/components/codemirror/mode/modelica/modelica.js +245 -0
  259. data/vendor/assets/components/codemirror/mode/mscgen/mscgen.js +175 -0
  260. data/vendor/assets/components/codemirror/mode/mumps/mumps.js +148 -0
  261. data/vendor/assets/components/codemirror/mode/nginx/nginx.js +178 -0
  262. data/vendor/assets/components/codemirror/mode/nsis/nsis.js +95 -0
  263. data/vendor/assets/components/codemirror/mode/ntriples/ntriples.js +195 -0
  264. data/vendor/assets/components/codemirror/mode/octave/octave.js +139 -0
  265. data/vendor/assets/components/codemirror/mode/oz/oz.js +252 -0
  266. data/vendor/assets/components/codemirror/mode/pascal/pascal.js +109 -0
  267. data/vendor/assets/components/codemirror/mode/pegjs/pegjs.js +114 -0
  268. data/vendor/assets/components/codemirror/mode/perl/perl.js +837 -0
  269. data/vendor/assets/components/codemirror/mode/php/php.js +234 -0
  270. data/vendor/assets/components/codemirror/mode/pig/pig.js +178 -0
  271. data/vendor/assets/components/codemirror/mode/powershell/powershell.js +398 -0
  272. data/vendor/assets/components/codemirror/mode/properties/properties.js +78 -0
  273. data/vendor/assets/components/codemirror/mode/protobuf/protobuf.js +69 -0
  274. data/vendor/assets/components/codemirror/mode/pug/pug.js +591 -0
  275. data/vendor/assets/components/codemirror/mode/puppet/puppet.js +220 -0
  276. data/vendor/assets/components/codemirror/mode/python/python.js +334 -0
  277. data/vendor/assets/components/codemirror/mode/q/q.js +139 -0
  278. data/vendor/assets/components/codemirror/mode/r/r.js +183 -0
  279. data/vendor/assets/components/codemirror/mode/rpm/rpm.js +109 -0
  280. data/vendor/assets/components/codemirror/mode/rst/rst.js +557 -0
  281. data/vendor/assets/components/codemirror/mode/ruby/ruby.js +296 -0
  282. data/vendor/assets/components/codemirror/mode/rust/rust.js +72 -0
  283. data/vendor/assets/components/codemirror/mode/sas/sas.js +303 -0
  284. data/vendor/assets/components/codemirror/mode/sass/sass.js +454 -0
  285. data/vendor/assets/components/codemirror/mode/scheme/scheme.js +249 -0
  286. data/vendor/assets/components/codemirror/mode/shell/shell.js +151 -0
  287. data/vendor/assets/components/codemirror/mode/sieve/sieve.js +193 -0
  288. data/vendor/assets/components/codemirror/mode/slim/slim.js +575 -0
  289. data/vendor/assets/components/codemirror/mode/smalltalk/smalltalk.js +168 -0
  290. data/vendor/assets/components/codemirror/mode/smarty/smarty.js +225 -0
  291. data/vendor/assets/components/codemirror/mode/solr/solr.js +104 -0
  292. data/vendor/assets/components/codemirror/mode/soy/soy.js +354 -0
  293. data/vendor/assets/components/codemirror/mode/sparql/sparql.js +180 -0
  294. data/vendor/assets/components/codemirror/mode/spreadsheet/spreadsheet.js +112 -0
  295. data/vendor/assets/components/codemirror/mode/sql/sql.js +488 -0
  296. data/vendor/assets/components/codemirror/mode/stex/stex.js +251 -0
  297. data/vendor/assets/components/codemirror/mode/stylus/stylus.js +771 -0
  298. data/vendor/assets/components/codemirror/mode/swift/swift.js +219 -0
  299. data/vendor/assets/components/codemirror/mode/tcl/tcl.js +139 -0
  300. data/vendor/assets/components/codemirror/mode/textile/textile.js +469 -0
  301. data/vendor/assets/components/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
  302. data/vendor/assets/components/codemirror/mode/tiddlywiki/tiddlywiki.js +308 -0
  303. data/vendor/assets/components/codemirror/mode/tiki/tiki.css +26 -0
  304. data/vendor/assets/components/codemirror/mode/tiki/tiki.js +312 -0
  305. data/vendor/assets/components/codemirror/mode/toml/toml.js +88 -0
  306. data/vendor/assets/components/codemirror/mode/tornado/tornado.js +68 -0
  307. data/vendor/assets/components/codemirror/mode/troff/troff.js +84 -0
  308. data/vendor/assets/components/codemirror/mode/ttcn-cfg/ttcn-cfg.js +214 -0
  309. data/vendor/assets/components/codemirror/mode/ttcn/ttcn.js +283 -0
  310. data/vendor/assets/components/codemirror/mode/turtle/turtle.js +162 -0
  311. data/vendor/assets/components/codemirror/mode/twig/twig.js +141 -0
  312. data/vendor/assets/components/codemirror/mode/vb/vb.js +275 -0
  313. data/vendor/assets/components/codemirror/mode/vbscript/vbscript.js +350 -0
  314. data/vendor/assets/components/codemirror/mode/velocity/velocity.js +201 -0
  315. data/vendor/assets/components/codemirror/mode/verilog/verilog.js +675 -0
  316. data/vendor/assets/components/codemirror/mode/vhdl/vhdl.js +189 -0
  317. data/vendor/assets/components/codemirror/mode/vue/vue.js +77 -0
  318. data/vendor/assets/components/codemirror/mode/webidl/webidl.js +195 -0
  319. data/vendor/assets/components/codemirror/mode/xml/xml.js +401 -0
  320. data/vendor/assets/components/codemirror/mode/xquery/xquery.js +448 -0
  321. data/vendor/assets/components/codemirror/mode/yacas/yacas.js +204 -0
  322. data/vendor/assets/components/codemirror/mode/yaml-frontmatter/yaml-frontmatter.js +68 -0
  323. data/vendor/assets/components/codemirror/mode/yaml/yaml.js +118 -0
  324. data/vendor/assets/components/codemirror/mode/z80/z80.js +116 -0
  325. data/vendor/assets/components/codemirror/rollup.config.js +18 -0
  326. data/vendor/assets/components/codemirror/src/codemirror.js +3 -0
  327. data/vendor/assets/components/codemirror/src/display/Display.js +106 -0
  328. data/vendor/assets/components/codemirror/src/display/focus.js +47 -0
  329. data/vendor/assets/components/codemirror/src/display/gutters.js +34 -0
  330. data/vendor/assets/components/codemirror/src/display/highlight_worker.js +55 -0
  331. data/vendor/assets/components/codemirror/src/display/line_numbers.js +48 -0
  332. data/vendor/assets/components/codemirror/src/display/mode_state.js +22 -0
  333. data/vendor/assets/components/codemirror/src/display/operations.js +205 -0
  334. data/vendor/assets/components/codemirror/src/display/scroll_events.js +115 -0
  335. data/vendor/assets/components/codemirror/src/display/scrollbars.js +192 -0
  336. data/vendor/assets/components/codemirror/src/display/scrolling.js +184 -0
  337. data/vendor/assets/components/codemirror/src/display/selection.js +158 -0
  338. data/vendor/assets/components/codemirror/src/display/update_display.js +260 -0
  339. data/vendor/assets/components/codemirror/src/display/update_line.js +188 -0
  340. data/vendor/assets/components/codemirror/src/display/update_lines.js +64 -0
  341. data/vendor/assets/components/codemirror/src/display/view_tracking.js +153 -0
  342. data/vendor/assets/components/codemirror/src/edit/CodeMirror.js +214 -0
  343. data/vendor/assets/components/codemirror/src/edit/commands.js +178 -0
  344. data/vendor/assets/components/codemirror/src/edit/deleteNearSelection.js +30 -0
  345. data/vendor/assets/components/codemirror/src/edit/drop_events.js +119 -0
  346. data/vendor/assets/components/codemirror/src/edit/fromTextArea.js +61 -0
  347. data/vendor/assets/components/codemirror/src/edit/global_events.js +44 -0
  348. data/vendor/assets/components/codemirror/src/edit/key_events.js +159 -0
  349. data/vendor/assets/components/codemirror/src/edit/legacy.js +62 -0
  350. data/vendor/assets/components/codemirror/src/edit/main.js +69 -0
  351. data/vendor/assets/components/codemirror/src/edit/methods.js +539 -0
  352. data/vendor/assets/components/codemirror/src/edit/mouse_events.js +407 -0
  353. data/vendor/assets/components/codemirror/src/edit/options.js +191 -0
  354. data/vendor/assets/components/codemirror/src/edit/utils.js +7 -0
  355. data/vendor/assets/components/codemirror/src/input/ContentEditableInput.js +517 -0
  356. data/vendor/assets/components/codemirror/src/input/TextareaInput.js +350 -0
  357. data/vendor/assets/components/codemirror/src/input/indent.js +71 -0
  358. data/vendor/assets/components/codemirror/src/input/input.js +135 -0
  359. data/vendor/assets/components/codemirror/src/input/keymap.js +148 -0
  360. data/vendor/assets/components/codemirror/src/input/keynames.js +17 -0
  361. data/vendor/assets/components/codemirror/src/input/movement.js +110 -0
  362. data/vendor/assets/components/codemirror/src/line/highlight.js +284 -0
  363. data/vendor/assets/components/codemirror/src/line/line_data.js +337 -0
  364. data/vendor/assets/components/codemirror/src/line/pos.js +40 -0
  365. data/vendor/assets/components/codemirror/src/line/saw_special_spans.js +10 -0
  366. data/vendor/assets/components/codemirror/src/line/spans.js +372 -0
  367. data/vendor/assets/components/codemirror/src/line/utils_line.js +85 -0
  368. data/vendor/assets/components/codemirror/src/measurement/position_measurement.js +700 -0
  369. data/vendor/assets/components/codemirror/src/measurement/widgets.js +26 -0
  370. data/vendor/assets/components/codemirror/src/model/Doc.js +432 -0
  371. data/vendor/assets/components/codemirror/src/model/change_measurement.js +61 -0
  372. data/vendor/assets/components/codemirror/src/model/changes.js +330 -0
  373. data/vendor/assets/components/codemirror/src/model/chunk.js +167 -0
  374. data/vendor/assets/components/codemirror/src/model/document_data.js +111 -0
  375. data/vendor/assets/components/codemirror/src/model/history.js +228 -0
  376. data/vendor/assets/components/codemirror/src/model/line_widget.js +78 -0
  377. data/vendor/assets/components/codemirror/src/model/mark_text.js +292 -0
  378. data/vendor/assets/components/codemirror/src/model/selection.js +82 -0
  379. data/vendor/assets/components/codemirror/src/model/selection_updates.js +208 -0
  380. data/vendor/assets/components/codemirror/src/modes.js +96 -0
  381. data/vendor/assets/components/codemirror/src/util/StringStream.js +90 -0
  382. data/vendor/assets/components/codemirror/src/util/bidi.js +214 -0
  383. data/vendor/assets/components/codemirror/src/util/browser.js +33 -0
  384. data/vendor/assets/components/codemirror/src/util/dom.js +97 -0
  385. data/vendor/assets/components/codemirror/src/util/event.js +103 -0
  386. data/vendor/assets/components/codemirror/src/util/feature_detection.js +84 -0
  387. data/vendor/assets/components/codemirror/src/util/misc.js +150 -0
  388. data/vendor/assets/components/codemirror/src/util/operation_group.js +72 -0
  389. data/vendor/assets/components/codemirror/theme/3024-day.css +41 -0
  390. data/vendor/assets/components/codemirror/theme/3024-night.css +39 -0
  391. data/vendor/assets/components/codemirror/theme/abcdef.css +32 -0
  392. data/vendor/assets/components/codemirror/theme/ambiance-mobile.css +5 -0
  393. data/vendor/assets/components/codemirror/theme/ambiance.css +74 -0
  394. data/vendor/assets/components/codemirror/theme/base16-dark.css +38 -0
  395. data/vendor/assets/components/codemirror/theme/base16-light.css +38 -0
  396. data/vendor/assets/components/codemirror/theme/bespin.css +34 -0
  397. data/vendor/assets/components/codemirror/theme/blackboard.css +32 -0
  398. data/vendor/assets/components/codemirror/theme/cobalt.css +25 -0
  399. data/vendor/assets/components/codemirror/theme/colorforth.css +33 -0
  400. data/vendor/assets/components/codemirror/theme/dracula.css +40 -0
  401. data/vendor/assets/components/codemirror/theme/duotone-dark.css +35 -0
  402. data/vendor/assets/components/codemirror/theme/duotone-light.css +36 -0
  403. data/vendor/assets/components/codemirror/theme/eclipse.css +23 -0
  404. data/vendor/assets/components/codemirror/theme/elegant.css +13 -0
  405. data/vendor/assets/components/codemirror/theme/erlang-dark.css +34 -0
  406. data/vendor/assets/components/codemirror/theme/hopscotch.css +34 -0
  407. data/vendor/assets/components/codemirror/theme/icecoder.css +43 -0
  408. data/vendor/assets/components/codemirror/theme/isotope.css +34 -0
  409. data/vendor/assets/components/codemirror/theme/lesser-dark.css +47 -0
  410. data/vendor/assets/components/codemirror/theme/liquibyte.css +95 -0
  411. data/vendor/assets/components/codemirror/theme/material.css +53 -0
  412. data/vendor/assets/components/codemirror/theme/mbo.css +37 -0
  413. data/vendor/assets/components/codemirror/theme/mdn-like.css +46 -0
  414. data/vendor/assets/components/codemirror/theme/midnight.css +43 -0
  415. data/vendor/assets/components/codemirror/theme/monokai.css +36 -0
  416. data/vendor/assets/components/codemirror/theme/neat.css +12 -0
  417. data/vendor/assets/components/codemirror/theme/neo.css +43 -0
  418. data/vendor/assets/components/codemirror/theme/night.css +27 -0
  419. data/vendor/assets/components/codemirror/theme/oceanic-next.css +44 -0
  420. data/vendor/assets/components/codemirror/theme/panda-syntax.css +85 -0
  421. data/vendor/assets/components/codemirror/theme/paraiso-dark.css +38 -0
  422. data/vendor/assets/components/codemirror/theme/paraiso-light.css +38 -0
  423. data/vendor/assets/components/codemirror/theme/pastel-on-dark.css +52 -0
  424. data/vendor/assets/components/codemirror/theme/railscasts.css +34 -0
  425. data/vendor/assets/components/codemirror/theme/rubyblue.css +25 -0
  426. data/vendor/assets/components/codemirror/theme/seti.css +44 -0
  427. data/vendor/assets/components/codemirror/theme/shadowfox.css +52 -0
  428. data/vendor/assets/components/codemirror/theme/solarized.css +168 -0
  429. data/vendor/assets/components/codemirror/theme/the-matrix.css +30 -0
  430. data/vendor/assets/components/codemirror/theme/tomorrow-night-bright.css +35 -0
  431. data/vendor/assets/components/codemirror/theme/tomorrow-night-eighties.css +38 -0
  432. data/vendor/assets/components/codemirror/theme/ttcn.css +64 -0
  433. data/vendor/assets/components/codemirror/theme/twilight.css +32 -0
  434. data/vendor/assets/components/codemirror/theme/vibrant-ink.css +34 -0
  435. data/vendor/assets/components/codemirror/theme/xq-dark.css +53 -0
  436. data/vendor/assets/components/codemirror/theme/xq-light.css +43 -0
  437. data/vendor/assets/components/codemirror/theme/yeti.css +44 -0
  438. data/vendor/assets/components/codemirror/theme/zenburn.css +37 -0
  439. data/vendor/assets/components/eve/.bower.json +12 -0
  440. data/vendor/assets/components/eve/LICENSE +202 -0
  441. data/vendor/assets/components/eve/README.md +7 -0
  442. data/vendor/assets/components/eve/component.json +13 -0
  443. data/vendor/assets/components/eve/e.html +66 -0
  444. data/vendor/assets/components/eve/eve.js +371 -0
  445. data/vendor/assets/components/eve/package.json +18 -0
  446. data/vendor/assets/components/highlightjs/.bower.json +24 -0
  447. data/vendor/assets/components/highlightjs/LICENSE +24 -0
  448. data/vendor/assets/components/highlightjs/Makefile +21 -0
  449. data/vendor/assets/components/highlightjs/README.md +12 -0
  450. data/vendor/assets/components/highlightjs/bower.json +14 -0
  451. data/vendor/assets/components/highlightjs/component.json +12 -0
  452. data/vendor/assets/components/highlightjs/composer.json +26 -0
  453. data/vendor/assets/components/highlightjs/highlight.pack.js +16645 -0
  454. data/vendor/assets/components/highlightjs/highlight.pack.min.js +15 -0
  455. data/vendor/assets/components/highlightjs/package.json +8 -0
  456. data/vendor/assets/components/highlightjs/styles/agate.css +108 -0
  457. data/vendor/assets/components/highlightjs/styles/androidstudio.css +66 -0
  458. data/vendor/assets/components/highlightjs/styles/arduino-light.css +88 -0
  459. data/vendor/assets/components/highlightjs/styles/arta.css +73 -0
  460. data/vendor/assets/components/highlightjs/styles/ascetic.css +45 -0
  461. data/vendor/assets/components/highlightjs/styles/atelier-cave-dark.css +83 -0
  462. data/vendor/assets/components/highlightjs/styles/atelier-cave-light.css +85 -0
  463. data/vendor/assets/components/highlightjs/styles/atelier-cave.dark.css +113 -0
  464. data/vendor/assets/components/highlightjs/styles/atelier-cave.light.css +113 -0
  465. data/vendor/assets/components/highlightjs/styles/atelier-dune-dark.css +69 -0
  466. data/vendor/assets/components/highlightjs/styles/atelier-dune-light.css +69 -0
  467. data/vendor/assets/components/highlightjs/styles/atelier-dune.dark.css +94 -0
  468. data/vendor/assets/components/highlightjs/styles/atelier-dune.light.css +94 -0
  469. data/vendor/assets/components/highlightjs/styles/atelier-estuary-dark.css +84 -0
  470. data/vendor/assets/components/highlightjs/styles/atelier-estuary-light.css +84 -0
  471. data/vendor/assets/components/highlightjs/styles/atelier-estuary.dark.css +113 -0
  472. data/vendor/assets/components/highlightjs/styles/atelier-estuary.light.css +113 -0
  473. data/vendor/assets/components/highlightjs/styles/atelier-forest-dark.css +69 -0
  474. data/vendor/assets/components/highlightjs/styles/atelier-forest-light.css +69 -0
  475. data/vendor/assets/components/highlightjs/styles/atelier-forest.dark.css +94 -0
  476. data/vendor/assets/components/highlightjs/styles/atelier-forest.light.css +94 -0
  477. data/vendor/assets/components/highlightjs/styles/atelier-heath-dark.css +69 -0
  478. data/vendor/assets/components/highlightjs/styles/atelier-heath-light.css +69 -0
  479. data/vendor/assets/components/highlightjs/styles/atelier-heath.dark.css +94 -0
  480. data/vendor/assets/components/highlightjs/styles/atelier-heath.light.css +94 -0
  481. data/vendor/assets/components/highlightjs/styles/atelier-lakeside-dark.css +69 -0
  482. data/vendor/assets/components/highlightjs/styles/atelier-lakeside-light.css +69 -0
  483. data/vendor/assets/components/highlightjs/styles/atelier-lakeside.dark.css +94 -0
  484. data/vendor/assets/components/highlightjs/styles/atelier-lakeside.light.css +94 -0
  485. data/vendor/assets/components/highlightjs/styles/atelier-plateau-dark.css +84 -0
  486. data/vendor/assets/components/highlightjs/styles/atelier-plateau-light.css +84 -0
  487. data/vendor/assets/components/highlightjs/styles/atelier-plateau.dark.css +113 -0
  488. data/vendor/assets/components/highlightjs/styles/atelier-plateau.light.css +113 -0
  489. data/vendor/assets/components/highlightjs/styles/atelier-savanna-dark.css +84 -0
  490. data/vendor/assets/components/highlightjs/styles/atelier-savanna-light.css +84 -0
  491. data/vendor/assets/components/highlightjs/styles/atelier-savanna.dark.css +113 -0
  492. data/vendor/assets/components/highlightjs/styles/atelier-savanna.light.css +113 -0
  493. data/vendor/assets/components/highlightjs/styles/atelier-seaside-dark.css +69 -0
  494. data/vendor/assets/components/highlightjs/styles/atelier-seaside-light.css +69 -0
  495. data/vendor/assets/components/highlightjs/styles/atelier-seaside.dark.css +94 -0
  496. data/vendor/assets/components/highlightjs/styles/atelier-seaside.light.css +94 -0
  497. data/vendor/assets/components/highlightjs/styles/atelier-sulphurpool-dark.css +69 -0
  498. data/vendor/assets/components/highlightjs/styles/atelier-sulphurpool-light.css +69 -0
  499. data/vendor/assets/components/highlightjs/styles/atelier-sulphurpool.dark.css +94 -0
  500. data/vendor/assets/components/highlightjs/styles/atelier-sulphurpool.light.css +94 -0
  501. data/vendor/assets/components/highlightjs/styles/atom-one-dark.css +96 -0
  502. data/vendor/assets/components/highlightjs/styles/atom-one-light.css +96 -0
  503. data/vendor/assets/components/highlightjs/styles/brown-paper.css +64 -0
  504. data/vendor/assets/components/highlightjs/styles/brown-papersq.png +0 -0
  505. data/vendor/assets/components/highlightjs/styles/brown_paper.css +103 -0
  506. data/vendor/assets/components/highlightjs/styles/brown_papersq.png +0 -0
  507. data/vendor/assets/components/highlightjs/styles/codepen-embed.css +60 -0
  508. data/vendor/assets/components/highlightjs/styles/color-brewer.css +71 -0
  509. data/vendor/assets/components/highlightjs/styles/darcula.css +77 -0
  510. data/vendor/assets/components/highlightjs/styles/dark.css +63 -0
  511. data/vendor/assets/components/highlightjs/styles/darkula.css +6 -0
  512. data/vendor/assets/components/highlightjs/styles/default.css +99 -0
  513. data/vendor/assets/components/highlightjs/styles/docco.css +97 -0
  514. data/vendor/assets/components/highlightjs/styles/dracula.css +76 -0
  515. data/vendor/assets/components/highlightjs/styles/far.css +71 -0
  516. data/vendor/assets/components/highlightjs/styles/foundation.css +88 -0
  517. data/vendor/assets/components/highlightjs/styles/github-gist.css +71 -0
  518. data/vendor/assets/components/highlightjs/styles/github.css +99 -0
  519. data/vendor/assets/components/highlightjs/styles/googlecode.css +89 -0
  520. data/vendor/assets/components/highlightjs/styles/grayscale.css +101 -0
  521. data/vendor/assets/components/highlightjs/styles/gruvbox-dark.css +108 -0
  522. data/vendor/assets/components/highlightjs/styles/gruvbox-light.css +108 -0
  523. data/vendor/assets/components/highlightjs/styles/hopscotch.css +83 -0
  524. data/vendor/assets/components/highlightjs/styles/hybrid.css +102 -0
  525. data/vendor/assets/components/highlightjs/styles/idea.css +97 -0
  526. data/vendor/assets/components/highlightjs/styles/ir-black.css +73 -0
  527. data/vendor/assets/components/highlightjs/styles/ir_black.css +106 -0
  528. data/vendor/assets/components/highlightjs/styles/kimbie.dark.css +74 -0
  529. data/vendor/assets/components/highlightjs/styles/kimbie.light.css +74 -0
  530. data/vendor/assets/components/highlightjs/styles/magula.css +70 -0
  531. data/vendor/assets/components/highlightjs/styles/mono-blue.css +59 -0
  532. data/vendor/assets/components/highlightjs/styles/monokai-sublime.css +83 -0
  533. data/vendor/assets/components/highlightjs/styles/monokai.css +70 -0
  534. data/vendor/assets/components/highlightjs/styles/monokai_sublime.css +154 -0
  535. data/vendor/assets/components/highlightjs/styles/obsidian.css +88 -0
  536. data/vendor/assets/components/highlightjs/styles/ocean.css +74 -0
  537. data/vendor/assets/components/highlightjs/styles/paraiso-dark.css +72 -0
  538. data/vendor/assets/components/highlightjs/styles/paraiso-light.css +72 -0
  539. data/vendor/assets/components/highlightjs/styles/paraiso.dark.css +96 -0
  540. data/vendor/assets/components/highlightjs/styles/paraiso.light.css +96 -0
  541. data/vendor/assets/components/highlightjs/styles/pojoaque.css +83 -0
  542. data/vendor/assets/components/highlightjs/styles/pojoaque.jpg +0 -0
  543. data/vendor/assets/components/highlightjs/styles/purebasic.css +96 -0
  544. data/vendor/assets/components/highlightjs/styles/qtcreator_dark.css +83 -0
  545. data/vendor/assets/components/highlightjs/styles/qtcreator_light.css +83 -0
  546. data/vendor/assets/components/highlightjs/styles/railscasts.css +106 -0
  547. data/vendor/assets/components/highlightjs/styles/rainbow.css +85 -0
  548. data/vendor/assets/components/highlightjs/styles/routeros.css +108 -0
  549. data/vendor/assets/components/highlightjs/styles/school-book.css +72 -0
  550. data/vendor/assets/components/highlightjs/styles/school-book.png +0 -0
  551. data/vendor/assets/components/highlightjs/styles/school_book.css +111 -0
  552. data/vendor/assets/components/highlightjs/styles/school_book.png +0 -0
  553. data/vendor/assets/components/highlightjs/styles/solarized-dark.css +84 -0
  554. data/vendor/assets/components/highlightjs/styles/solarized-light.css +84 -0
  555. data/vendor/assets/components/highlightjs/styles/solarized_dark.css +107 -0
  556. data/vendor/assets/components/highlightjs/styles/solarized_light.css +107 -0
  557. data/vendor/assets/components/highlightjs/styles/sunburst.css +102 -0
  558. data/vendor/assets/components/highlightjs/styles/tomorrow-night-blue.css +75 -0
  559. data/vendor/assets/components/highlightjs/styles/tomorrow-night-bright.css +74 -0
  560. data/vendor/assets/components/highlightjs/styles/tomorrow-night-eighties.css +74 -0
  561. data/vendor/assets/components/highlightjs/styles/tomorrow-night.css +75 -0
  562. data/vendor/assets/components/highlightjs/styles/tomorrow.css +72 -0
  563. data/vendor/assets/components/highlightjs/styles/vs.css +68 -0
  564. data/vendor/assets/components/highlightjs/styles/vs2015.css +115 -0
  565. data/vendor/assets/components/highlightjs/styles/xcode.css +93 -0
  566. data/vendor/assets/components/highlightjs/styles/xt256.css +92 -0
  567. data/vendor/assets/components/highlightjs/styles/zenburn.css +80 -0
  568. data/vendor/assets/components/jquery/.bower.json +25 -0
  569. data/vendor/assets/components/jquery/AUTHORS.txt +313 -0
  570. data/vendor/assets/components/jquery/LICENSE.txt +36 -0
  571. data/vendor/assets/components/jquery/README.md +67 -0
  572. data/vendor/assets/components/jquery/bower.json +14 -0
  573. data/vendor/assets/components/jquery/dist/core.js +399 -0
  574. data/vendor/assets/components/jquery/dist/jquery.js +10364 -0
  575. data/vendor/assets/components/jquery/dist/jquery.min.js +2 -0
  576. data/vendor/assets/components/jquery/dist/jquery.min.map +1 -0
  577. data/vendor/assets/components/jquery/dist/jquery.slim.js +8269 -0
  578. data/vendor/assets/components/jquery/dist/jquery.slim.min.js +2 -0
  579. data/vendor/assets/components/jquery/dist/jquery.slim.min.map +1 -0
  580. data/vendor/assets/components/jquery/external/sizzle/LICENSE.txt +36 -0
  581. data/vendor/assets/components/jquery/external/sizzle/dist/sizzle.js +2272 -0
  582. data/vendor/assets/components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  583. data/vendor/assets/components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  584. data/vendor/assets/components/jquery/src/.eslintrc.json +5 -0
  585. data/vendor/assets/components/jquery/src/ajax.js +856 -0
  586. data/vendor/assets/components/jquery/src/ajax/jsonp.js +103 -0
  587. data/vendor/assets/components/jquery/src/ajax/load.js +77 -0
  588. data/vendor/assets/components/jquery/src/ajax/parseXML.js +30 -0
  589. data/vendor/assets/components/jquery/src/ajax/script.js +77 -0
  590. data/vendor/assets/components/jquery/src/ajax/var/location.js +5 -0
  591. data/vendor/assets/components/jquery/src/ajax/var/nonce.js +5 -0
  592. data/vendor/assets/components/jquery/src/ajax/var/rquery.js +5 -0
  593. data/vendor/assets/components/jquery/src/ajax/xhr.js +170 -0
  594. data/vendor/assets/components/jquery/src/attributes.js +13 -0
  595. data/vendor/assets/components/jquery/src/attributes/attr.js +141 -0
  596. data/vendor/assets/components/jquery/src/attributes/classes.js +186 -0
  597. data/vendor/assets/components/jquery/src/attributes/prop.js +143 -0
  598. data/vendor/assets/components/jquery/src/attributes/support.js +33 -0
  599. data/vendor/assets/components/jquery/src/attributes/val.js +191 -0
  600. data/vendor/assets/components/jquery/src/callbacks.js +236 -0
  601. data/vendor/assets/components/jquery/src/core.js +399 -0
  602. data/vendor/assets/components/jquery/src/core/DOMEval.js +30 -0
  603. data/vendor/assets/components/jquery/src/core/access.js +72 -0
  604. data/vendor/assets/components/jquery/src/core/camelCase.js +23 -0
  605. data/vendor/assets/components/jquery/src/core/init.js +129 -0
  606. data/vendor/assets/components/jquery/src/core/nodeName.js +13 -0
  607. data/vendor/assets/components/jquery/src/core/parseHTML.js +65 -0
  608. data/vendor/assets/components/jquery/src/core/ready-no-deferred.js +97 -0
  609. data/vendor/assets/components/jquery/src/core/ready.js +86 -0
  610. data/vendor/assets/components/jquery/src/core/readyException.js +13 -0
  611. data/vendor/assets/components/jquery/src/core/stripAndCollapse.js +14 -0
  612. data/vendor/assets/components/jquery/src/core/support.js +20 -0
  613. data/vendor/assets/components/jquery/src/core/toType.js +20 -0
  614. data/vendor/assets/components/jquery/src/core/var/rsingleTag.js +6 -0
  615. data/vendor/assets/components/jquery/src/css.js +481 -0
  616. data/vendor/assets/components/jquery/src/css/addGetHookIf.js +26 -0
  617. data/vendor/assets/components/jquery/src/css/adjustCSS.js +73 -0
  618. data/vendor/assets/components/jquery/src/css/curCSS.js +65 -0
  619. data/vendor/assets/components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  620. data/vendor/assets/components/jquery/src/css/showHide.js +105 -0
  621. data/vendor/assets/components/jquery/src/css/support.js +102 -0
  622. data/vendor/assets/components/jquery/src/css/var/cssExpand.js +5 -0
  623. data/vendor/assets/components/jquery/src/css/var/getStyles.js +17 -0
  624. data/vendor/assets/components/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  625. data/vendor/assets/components/jquery/src/css/var/rboxStyle.js +7 -0
  626. data/vendor/assets/components/jquery/src/css/var/rnumnonpx.js +7 -0
  627. data/vendor/assets/components/jquery/src/css/var/swap.js +26 -0
  628. data/vendor/assets/components/jquery/src/data.js +180 -0
  629. data/vendor/assets/components/jquery/src/data/Data.js +162 -0
  630. data/vendor/assets/components/jquery/src/data/var/acceptData.js +19 -0
  631. data/vendor/assets/components/jquery/src/data/var/dataPriv.js +7 -0
  632. data/vendor/assets/components/jquery/src/data/var/dataUser.js +7 -0
  633. data/vendor/assets/components/jquery/src/deferred.js +399 -0
  634. data/vendor/assets/components/jquery/src/deferred/exceptionHook.js +21 -0
  635. data/vendor/assets/components/jquery/src/deprecated.js +98 -0
  636. data/vendor/assets/components/jquery/src/dimensions.js +57 -0
  637. data/vendor/assets/components/jquery/src/effects.js +702 -0
  638. data/vendor/assets/components/jquery/src/effects/Tween.js +123 -0
  639. data/vendor/assets/components/jquery/src/effects/animatedSelector.js +15 -0
  640. data/vendor/assets/components/jquery/src/event.js +748 -0
  641. data/vendor/assets/components/jquery/src/event/ajax.js +22 -0
  642. data/vendor/assets/components/jquery/src/event/alias.js +29 -0
  643. data/vendor/assets/components/jquery/src/event/focusin.js +55 -0
  644. data/vendor/assets/components/jquery/src/event/support.js +11 -0
  645. data/vendor/assets/components/jquery/src/event/trigger.js +199 -0
  646. data/vendor/assets/components/jquery/src/exports/amd.js +26 -0
  647. data/vendor/assets/components/jquery/src/exports/global.js +34 -0
  648. data/vendor/assets/components/jquery/src/jquery.js +40 -0
  649. data/vendor/assets/components/jquery/src/manipulation.js +486 -0
  650. data/vendor/assets/components/jquery/src/manipulation/_evalUrl.js +23 -0
  651. data/vendor/assets/components/jquery/src/manipulation/buildFragment.js +105 -0
  652. data/vendor/assets/components/jquery/src/manipulation/getAll.js +32 -0
  653. data/vendor/assets/components/jquery/src/manipulation/setGlobalEval.js +22 -0
  654. data/vendor/assets/components/jquery/src/manipulation/support.js +35 -0
  655. data/vendor/assets/components/jquery/src/manipulation/var/rcheckableType.js +5 -0
  656. data/vendor/assets/components/jquery/src/manipulation/var/rscriptType.js +5 -0
  657. data/vendor/assets/components/jquery/src/manipulation/var/rtagName.js +5 -0
  658. data/vendor/assets/components/jquery/src/manipulation/wrapMap.js +29 -0
  659. data/vendor/assets/components/jquery/src/offset.js +233 -0
  660. data/vendor/assets/components/jquery/src/queue.js +145 -0
  661. data/vendor/assets/components/jquery/src/queue/delay.js +24 -0
  662. data/vendor/assets/components/jquery/src/selector-native.js +237 -0
  663. data/vendor/assets/components/jquery/src/selector-sizzle.js +19 -0
  664. data/vendor/assets/components/jquery/src/selector.js +3 -0
  665. data/vendor/assets/components/jquery/src/serialize.js +132 -0
  666. data/vendor/assets/components/jquery/src/traversing.js +191 -0
  667. data/vendor/assets/components/jquery/src/traversing/findFilter.js +97 -0
  668. data/vendor/assets/components/jquery/src/traversing/var/dir.js +22 -0
  669. data/vendor/assets/components/jquery/src/traversing/var/rneedsContext.js +8 -0
  670. data/vendor/assets/components/jquery/src/traversing/var/siblings.js +17 -0
  671. data/vendor/assets/components/jquery/src/var/ObjectFunctionString.js +7 -0
  672. data/vendor/assets/components/jquery/src/var/arr.js +5 -0
  673. data/vendor/assets/components/jquery/src/var/class2type.js +6 -0
  674. data/vendor/assets/components/jquery/src/var/concat.js +7 -0
  675. data/vendor/assets/components/jquery/src/var/document.js +5 -0
  676. data/vendor/assets/components/jquery/src/var/documentElement.js +7 -0
  677. data/vendor/assets/components/jquery/src/var/fnToString.js +7 -0
  678. data/vendor/assets/components/jquery/src/var/getProto.js +5 -0
  679. data/vendor/assets/components/jquery/src/var/hasOwn.js +7 -0
  680. data/vendor/assets/components/jquery/src/var/indexOf.js +7 -0
  681. data/vendor/assets/components/jquery/src/var/isFunction.js +13 -0
  682. data/vendor/assets/components/jquery/src/var/isWindow.js +8 -0
  683. data/vendor/assets/components/jquery/src/var/pnum.js +5 -0
  684. data/vendor/assets/components/jquery/src/var/push.js +7 -0
  685. data/vendor/assets/components/jquery/src/var/rcssNum.js +9 -0
  686. data/vendor/assets/components/jquery/src/var/rnothtmlwhite.js +8 -0
  687. data/vendor/assets/components/jquery/src/var/slice.js +7 -0
  688. data/vendor/assets/components/jquery/src/var/support.js +6 -0
  689. data/vendor/assets/components/jquery/src/var/toString.js +7 -0
  690. data/vendor/assets/components/jquery/src/wrap.js +78 -0
  691. data/vendor/assets/components/markdown-it/.bower.json +38 -0
  692. data/vendor/assets/components/markdown-it/CHANGELOG.md +442 -0
  693. data/vendor/assets/components/markdown-it/CONTRIBUTING.md +15 -0
  694. data/vendor/assets/components/markdown-it/LICENSE +22 -0
  695. data/vendor/assets/components/markdown-it/Procfile +1 -0
  696. data/vendor/assets/components/markdown-it/README.md +294 -0
  697. data/vendor/assets/components/markdown-it/bin/markdown-it.js +113 -0
  698. data/vendor/assets/components/markdown-it/bower.json +28 -0
  699. data/vendor/assets/components/markdown-it/dist/markdown-it.js +7963 -0
  700. data/vendor/assets/components/markdown-it/dist/markdown-it.min.js +1 -0
  701. data/vendor/assets/components/markdown-it/package.json +64 -0
  702. data/vendor/assets/components/plantuml-encoder/.bower.json +29 -0
  703. data/vendor/assets/components/plantuml-encoder/LICENSE +19 -0
  704. data/vendor/assets/components/plantuml-encoder/README.md +38 -0
  705. data/vendor/assets/components/plantuml-encoder/bower.json +20 -0
  706. data/vendor/assets/components/plantuml-encoder/dist/plantuml-encoder.js +3994 -0
  707. data/vendor/assets/components/plantuml-encoder/dist/plantuml-encoder.min.js +1 -0
  708. data/vendor/assets/components/plantuml-encoder/package.json +33 -0
  709. data/vendor/assets/components/raphael/.bower.json +45 -0
  710. data/vendor/assets/components/raphael/bower.json +31 -0
  711. data/vendor/assets/components/raphael/dev/banner.txt +8 -0
  712. data/vendor/assets/components/raphael/dev/raphael.amd.js +14 -0
  713. data/vendor/assets/components/raphael/dev/raphael.core.js +5413 -0
  714. data/vendor/assets/components/raphael/dev/raphael.svg.js +1428 -0
  715. data/vendor/assets/components/raphael/dev/raphael.vml.js +1010 -0
  716. data/vendor/assets/components/raphael/dev/test/svg/dom.js +295 -0
  717. data/vendor/assets/components/raphael/dev/test/vml/dom.js +5 -0
  718. data/vendor/assets/components/raphael/license.txt +21 -0
  719. data/vendor/assets/components/raphael/raphael.js +8330 -0
  720. data/vendor/assets/components/raphael/raphael.min.js +3 -0
  721. data/vendor/assets/components/raphael/raphael.no-deps.js +7959 -0
  722. data/vendor/assets/components/raphael/raphael.no-deps.min.js +3 -0
  723. data/vendor/assets/components/raphael/webpack.config.js +62 -0
  724. data/vendor/assets/components/squire-rte/.bower.json +34 -0
  725. data/vendor/assets/components/squire-rte/Demo.html +143 -0
  726. data/vendor/assets/components/squire-rte/LICENSE +21 -0
  727. data/vendor/assets/components/squire-rte/Makefile +22 -0
  728. data/vendor/assets/components/squire-rte/README.md +473 -0
  729. data/vendor/assets/components/squire-rte/bower.json +24 -0
  730. data/vendor/assets/components/squire-rte/build/document.html +54 -0
  731. data/vendor/assets/components/squire-rte/build/squire-raw.js +4722 -0
  732. data/vendor/assets/components/squire-rte/build/squire.js +2 -0
  733. data/vendor/assets/components/squire-rte/package.json +31 -0
  734. data/vendor/assets/components/squire-rte/source/Clean.js +358 -0
  735. data/vendor/assets/components/squire-rte/source/Clipboard.js +331 -0
  736. data/vendor/assets/components/squire-rte/source/Constants.js +60 -0
  737. data/vendor/assets/components/squire-rte/source/Editor.js +2201 -0
  738. data/vendor/assets/components/squire-rte/source/KeyHandlers.js +502 -0
  739. data/vendor/assets/components/squire-rte/source/Node.js +553 -0
  740. data/vendor/assets/components/squire-rte/source/Range.js +540 -0
  741. data/vendor/assets/components/squire-rte/source/TreeWalker.js +118 -0
  742. data/vendor/assets/components/squire-rte/source/document.html +54 -0
  743. data/vendor/assets/components/squire-rte/source/exports.js +42 -0
  744. data/vendor/assets/components/squire-rte/source/intro.js +6 -0
  745. data/vendor/assets/components/squire-rte/source/outro.js +22 -0
  746. data/vendor/assets/components/to-mark/.bower.json +35 -0
  747. data/vendor/assets/components/to-mark/bower.json +22 -0
  748. data/vendor/assets/components/to-mark/demo/demo.html +24 -0
  749. data/vendor/assets/components/to-mark/demo/demo2.html +94 -0
  750. data/vendor/assets/components/to-mark/dist/to-mark.js +1283 -0
  751. data/vendor/assets/components/to-mark/dist/to-mark.min.js +1 -0
  752. data/vendor/assets/components/to-mark/gulpfile.js +112 -0
  753. data/vendor/assets/components/to-mark/karma.conf.js +260 -0
  754. data/vendor/assets/components/to-mark/package-lock.json +13061 -0
  755. data/vendor/assets/components/to-mark/package.json +53 -0
  756. data/vendor/assets/components/tui-chart/.bower.json +44 -0
  757. data/vendor/assets/components/tui-chart/CODE_OF_CONDUCT.md +73 -0
  758. data/vendor/assets/components/tui-chart/CONTRIBUTING.md +91 -0
  759. data/vendor/assets/components/tui-chart/LICENSE +21 -0
  760. data/vendor/assets/components/tui-chart/README.md +142 -0
  761. data/vendor/assets/components/tui-chart/bower.json +33 -0
  762. data/vendor/assets/components/tui-chart/dist/maps/china.js +10 -0
  763. data/vendor/assets/components/tui-chart/dist/maps/japan.js +10 -0
  764. data/vendor/assets/components/tui-chart/dist/maps/singapore.js +10 -0
  765. data/vendor/assets/components/tui-chart/dist/maps/south-korea.js +10 -0
  766. data/vendor/assets/components/tui-chart/dist/maps/taiwan.js +10 -0
  767. data/vendor/assets/components/tui-chart/dist/maps/thailand.js +10 -0
  768. data/vendor/assets/components/tui-chart/dist/maps/usa.js +10 -0
  769. data/vendor/assets/components/tui-chart/dist/maps/world.js +11 -0
  770. data/vendor/assets/components/tui-chart/dist/tui-chart.css +704 -0
  771. data/vendor/assets/components/tui-chart/dist/tui-chart.js +40567 -0
  772. data/vendor/assets/components/tui-chart/dist/tui-chart.min.css +10 -0
  773. data/vendor/assets/components/tui-chart/dist/tui-chart.min.js +20 -0
  774. data/vendor/assets/components/tui-chart/docs/COMMIT_MESSAGE_CONVENTION.md +49 -0
  775. data/vendor/assets/components/tui-chart/docs/ISSUE_TEMPLATE.md +24 -0
  776. data/vendor/assets/components/tui-chart/docs/PULL_REQUEST_TEMPLATE.md +42 -0
  777. data/vendor/assets/components/tui-chart/docs/README.md +11 -0
  778. data/vendor/assets/components/tui-chart/docs/wiki/README.md +27 -0
  779. data/vendor/assets/components/tui-chart/docs/wiki/_Sidebar.md +31 -0
  780. data/vendor/assets/components/tui-chart/docs/wiki/chart-export-menu.md +66 -0
  781. data/vendor/assets/components/tui-chart/docs/wiki/chart-type-radial.md +121 -0
  782. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-bar,column.md +312 -0
  783. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-bubble.md +63 -0
  784. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-column-line-combo.md +104 -0
  785. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-heatmap.md +39 -0
  786. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-line,area.md +333 -0
  787. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-line-area-combo.md +78 -0
  788. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-line-scatter-combo.md +101 -0
  789. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-map.md +153 -0
  790. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-pie-donut-combo.md +98 -0
  791. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-pie.md +186 -0
  792. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-scatter.md +58 -0
  793. data/vendor/assets/components/tui-chart/docs/wiki/chart-types-treemap.md +158 -0
  794. data/vendor/assets/components/tui-chart/docs/wiki/code-table-of-china-map.md +38 -0
  795. data/vendor/assets/components/tui-chart/docs/wiki/code-table-of-japan-map.md +51 -0
  796. data/vendor/assets/components/tui-chart/docs/wiki/code-table-of-singapore-map.md +9 -0
  797. data/vendor/assets/components/tui-chart/docs/wiki/code-table-of-south-korea-map.md +21 -0
  798. data/vendor/assets/components/tui-chart/docs/wiki/code-table-of-taiwan-map.md +26 -0
  799. data/vendor/assets/components/tui-chart/docs/wiki/code-table-of-thailand-map.md +82 -0
  800. data/vendor/assets/components/tui-chart/docs/wiki/code-table-of-usa-map.md +55 -0
  801. data/vendor/assets/components/tui-chart/docs/wiki/code-table-of-world-map.md +180 -0
  802. data/vendor/assets/components/tui-chart/docs/wiki/features-axes.md +209 -0
  803. data/vendor/assets/components/tui-chart/docs/wiki/features-chart.md +157 -0
  804. data/vendor/assets/components/tui-chart/docs/wiki/features-circle-legend.md +20 -0
  805. data/vendor/assets/components/tui-chart/docs/wiki/features-legend.md +89 -0
  806. data/vendor/assets/components/tui-chart/docs/wiki/features-plot.md +141 -0
  807. data/vendor/assets/components/tui-chart/docs/wiki/features-series.md +240 -0
  808. data/vendor/assets/components/tui-chart/docs/wiki/features-tooltip.md +223 -0
  809. data/vendor/assets/components/tui-chart/docs/wiki/getting-started.md +74 -0
  810. data/vendor/assets/components/tui-chart/docs/wiki/import-chart-data-from-existing-table-element.md +150 -0
  811. data/vendor/assets/components/tui-chart/docs/wiki/table-of-supported-options.md +344 -0
  812. data/vendor/assets/components/tui-chart/docs/wiki/theme.md +338 -0
  813. data/vendor/assets/components/tui-chart/package-lock.json +8881 -0
  814. data/vendor/assets/components/tui-code-snippet/.bower.json +31 -0
  815. data/vendor/assets/components/tui-code-snippet/LICENSE +21 -0
  816. data/vendor/assets/components/tui-code-snippet/README.md +109 -0
  817. data/vendor/assets/components/tui-code-snippet/bower.json +20 -0
  818. data/vendor/assets/components/tui-code-snippet/demo/postBridge/README.md +26 -0
  819. data/vendor/assets/components/tui-code-snippet/demo/postBridge/public/popup.html +27 -0
  820. data/vendor/assets/components/tui-code-snippet/demo/postBridge/public/postBridge.html +31 -0
  821. data/vendor/assets/components/tui-code-snippet/demo/postBridge/server.js +28 -0
  822. data/vendor/assets/components/tui-code-snippet/dist/tui-code-snippet.js +4228 -0
  823. data/vendor/assets/components/tui-code-snippet/dist/tui-code-snippet.min.js +7 -0
  824. data/vendor/assets/components/tui-code-snippet/package-lock.json +6038 -0
  825. data/vendor/assets/components/tui-color-picker/.bower.json +37 -0
  826. data/vendor/assets/components/tui-color-picker/ISSUE_TEMPLATE.md +26 -0
  827. data/vendor/assets/components/tui-color-picker/LICENSE +34 -0
  828. data/vendor/assets/components/tui-color-picker/README.md +69 -0
  829. data/vendor/assets/components/tui-color-picker/bower.json +26 -0
  830. data/vendor/assets/components/tui-color-picker/dist/tui-color-picker.css +148 -0
  831. data/vendor/assets/components/tui-color-picker/dist/tui-color-picker.js +3146 -0
  832. data/vendor/assets/components/tui-color-picker/dist/tui-color-picker.min.css +7 -0
  833. data/vendor/assets/components/tui-color-picker/dist/tui-color-picker.min.js +9 -0
  834. data/vendor/assets/components/tui-color-picker/package-lock.json +8440 -0
  835. data/vendor/assets/components/tui-editor/.bower.json +71 -0
  836. data/vendor/assets/components/tui-editor/CODE_OF_CONDUCT.md +73 -0
  837. data/vendor/assets/components/tui-editor/CONTRIBUTING.md +92 -0
  838. data/vendor/assets/components/tui-editor/LICENSE +21 -0
  839. data/vendor/assets/components/tui-editor/README.md +204 -0
  840. data/vendor/assets/components/tui-editor/bower.json +59 -0
  841. data/vendor/assets/components/tui-editor/dist/tui-editor-Editor-all.js +36850 -0
  842. data/vendor/assets/components/tui-editor/dist/tui-editor-Editor-all.min.js +13 -0
  843. data/vendor/assets/components/tui-editor/dist/tui-editor-Editor.js +24646 -0
  844. data/vendor/assets/components/tui-editor/dist/tui-editor-Editor.min.js +7 -0
  845. data/vendor/assets/components/tui-editor/dist/tui-editor-Viewer-all.js +14768 -0
  846. data/vendor/assets/components/tui-editor/dist/tui-editor-Viewer-all.min.js +13 -0
  847. data/vendor/assets/components/tui-editor/dist/tui-editor-Viewer.js +3686 -0
  848. data/vendor/assets/components/tui-editor/dist/tui-editor-Viewer.min.js +7 -0
  849. data/vendor/assets/components/tui-editor/dist/tui-editor-contents.css +239 -0
  850. data/vendor/assets/components/tui-editor/dist/tui-editor-contents.min.css +1 -0
  851. data/vendor/assets/components/tui-editor/dist/tui-editor-extChart.js +7040 -0
  852. data/vendor/assets/components/tui-editor/dist/tui-editor-extChart.min.js +13 -0
  853. data/vendor/assets/components/tui-editor/dist/tui-editor-extColorSyntax.js +472 -0
  854. data/vendor/assets/components/tui-editor/dist/tui-editor-extColorSyntax.min.js +7 -0
  855. data/vendor/assets/components/tui-editor/dist/tui-editor-extScrollSync.js +1241 -0
  856. data/vendor/assets/components/tui-editor/dist/tui-editor-extScrollSync.min.js +7 -0
  857. data/vendor/assets/components/tui-editor/dist/tui-editor-extTable.js +3930 -0
  858. data/vendor/assets/components/tui-editor/dist/tui-editor-extTable.min.js +7 -0
  859. data/vendor/assets/components/tui-editor/dist/tui-editor-extUML.js +212 -0
  860. data/vendor/assets/components/tui-editor/dist/tui-editor-extUML.min.js +7 -0
  861. data/vendor/assets/components/tui-editor/dist/tui-editor.css +1166 -0
  862. data/vendor/assets/components/tui-editor/dist/tui-editor.min.css +1 -0
  863. data/vendor/assets/components/tui-editor/docs/COMMIT_MESSAGE_CONVENTION.md +49 -0
  864. data/vendor/assets/components/tui-editor/docs/PULL_REQUEST_TEMPLATE.md +41 -0
  865. data/vendor/assets/components/tui-editor/docs/README.md +13 -0
  866. data/vendor/assets/components/tui-editor/docs/getting-started-with-bower.md +93 -0
  867. data/vendor/assets/components/tui-editor/docs/getting-started.md +76 -0
  868. data/vendor/assets/components/tui-editor/docs/using-extensions.md +91 -0
  869. data/vendor/assets/components/tui-editor/docs/writing-your-own-extension.md +167 -0
  870. data/vendor/assets/components/tui-editor/examples/example00-demo.html +85 -0
  871. data/vendor/assets/components/tui-editor/examples/example01-basic.html +37 -0
  872. data/vendor/assets/components/tui-editor/examples/example02-viewer-basic.html +68 -0
  873. data/vendor/assets/components/tui-editor/examples/example03-jquery.html +36 -0
  874. data/vendor/assets/components/tui-editor/examples/example04-viewer-jquery.html +67 -0
  875. data/vendor/assets/components/tui-editor/examples/example05-scrollsync.html +77 -0
  876. data/vendor/assets/components/tui-editor/examples/example06-colorsyntax.html +44 -0
  877. data/vendor/assets/components/tui-editor/examples/example07-table.html +48 -0
  878. data/vendor/assets/components/tui-editor/examples/example08-uml.html +69 -0
  879. data/vendor/assets/components/tui-editor/examples/example09-multiple-extensions.html +85 -0
  880. data/vendor/assets/components/tui-editor/examples/example10-viewer-multiple-extensions.html +86 -0
  881. data/vendor/assets/components/tui-editor/examples/example11-chart.html +60 -0
  882. data/vendor/assets/components/tui-editor/examples/example12-writing-extension.html +66 -0
  883. data/vendor/assets/components/tui-editor/examples/examples.json +41 -0
  884. data/vendor/assets/components/tui-editor/examples/explain.css +7 -0
  885. data/vendor/assets/components/tui-editor/package-lock.json +13289 -0
  886. data/vendor/assets/components/tui-editor/package.json +90 -0
  887. metadata +956 -0
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * tui-chart.min
3
+ * @fileoverview tui-chart
4
+ * @author NHN Ent. FE Development Lab <dl_javascript@nhnent.com>
5
+ * @version 2.15.0
6
+ * @license MIT
7
+ * @link https://github.com/nhnent/tui.chart
8
+ * bundle created at "Fri Feb 02 2018 11:24:48 GMT+0900 (KST)"
9
+ */
10
+ .tui-chart{position:relative;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart,.tui-chart *{box-sizing:border-box;line-height:1}.tui-chart .tui-chart-title{position:absolute;top:0;left:0;width:100%;text-align:center;padding:10px 0;z-index:350}.tui-chart .tui-chart-axis-area{z-index:300;position:absolute}.tui-chart .tui-chart-axis-area *{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart .tui-chart-axis-area .tui-chart-title-area{position:absolute}.tui-chart .tui-chart-axis-area .tui-chart-label-area,.tui-chart .tui-chart-axis-area .tui-chart-tick-area{position:absolute;top:0;width:100%;height:100%}.tui-chart .tui-chart-axis-area .tui-chart-tick-area .tui-chart-tick{position:absolute;background-color:#000}.tui-chart .tui-chart-axis-area .tui-chart-label-area .tui-chart-label{position:absolute}.tui-chart .tui-chart-axis-area .tui-chart-label-area .tui-chart-label>span{line-height:1.2}.tui-chart .tui-chart-axis-area.vertical{top:10px}.tui-chart .tui-chart-axis-area.vertical .tui-chart-title-area{text-align:center;white-space:nowrap;top:0}.tui-chart .tui-chart-axis-area.vertical .tui-chart-title-area.rotation{-webkit-transform-origin:top left;transform-origin:top left;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.tui-chart .tui-chart-axis-area.vertical .tui-chart-tick-area{right:0}.tui-chart .tui-chart-axis-area.vertical .tui-chart-tick-area .tui-chart-tick{right:1px;width:5px;height:1px}.tui-chart .tui-chart-axis-area.vertical .tui-chart-tick-area .tui-chart-tick-line{left:auto;right:0;width:1px;background-color:#000;position:absolute}.tui-chart .tui-chart-axis-area.vertical .tui-chart-label-area{right:10px}.tui-chart .tui-chart-axis-area.vertical .tui-chart-label-area .tui-chart-label{left:0;width:100%;text-align:right;white-space:nowrap}.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-title-area{text-align:center;white-space:nowrap;top:0}.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-title-area.rotation{-webkit-transform-origin:top left;transform-origin:top left;-webkit-transform:rotate(90deg);transform:rotate(90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-label-area,.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-tick-area{left:0}.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-label-area .tui-chart-label{text-align:left;padding-right:0;padding-left:10px}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-title-area{width:100%!important;-webkit-transform:rotate(0deg);transform:rotate(0deg);filter:none;top:auto}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-label-area{left:0;width:100%!important}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-label-area .tui-chart-label{text-align:center}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-tick-area.opposite-side,.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-tick-area{border-right:none}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-tick-area.opposite-side .tui-chart-tick,.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-tick-area .tui-chart-tick{left:1px}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-tick-area.opposite-side .tui-chart-tick-line,.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-tick-area .tui-chart-tick-line{right:auto;left:0}.tui-chart .tui-chart-axis-area.horizontal{right:10px}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-title-area{bottom:0;width:100%;text-align:center}.tui-chart .tui-chart-axis-area.horizontal.division .tui-chart-title-area{left:0;width:auto}.tui-chart .tui-chart-axis-area.horizontal.division .tui-chart-title-area.right{left:auto;right:0}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area,.tui-chart .tui-chart-axis-area.horizontal .tui-chart-tick-area{left:0}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-tick-area .tui-chart-tick-line{top:0;height:1px;background-color:#000;position:absolute}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-tick-area .tui-chart-ticks{width:100%;position:absolute;left:0;top:0}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-tick-area .tui-chart-tick{top:0;width:1px;height:6px}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label{top:10px;text-align:center;word-wrap:break-word;word-break:keep-all}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation{text-align:right;white-space:nowrap}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation span{position:absolute;right:0;top:0}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation25{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation25 span{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.9063077870366499, M12=0.42261826174069944, M21=-0.42261826174069944, M22=0.9063077870366499)"}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation45{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation45 span{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=0.7071067811865475, M21=-0.7071067811865475, M22=0.7071067811865476)"}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation65{-webkit-transform:rotate(-65deg);transform:rotate(-65deg)}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation65 span{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.42261826174069944, M12=0.9063077870366499, M21=-0.9063077870366499, M22=0.42261826174069944)"}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation85{-webkit-transform:rotate(-85deg);transform:rotate(-85deg)}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation85 span{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.08715574274765814, M12=0.9961946980917455, M21=-0.9961946980917455, M22=0.08715574274765814)"}.tui-chart .tui-chart-plot-area{position:absolute;right:10px;top:10px;z-index:-100}.tui-chart .tui-chart-plot-area .tui-chart-plot-optional-lines-area{left:0;top:0;width:100%;height:100%;position:absolute}.tui-chart .tui-chart-plot-area .tui-chart-plot-lines-area{width:100%;height:100%;position:relative}.tui-chart .tui-chart-plot-area .tui-chart-plot-line{background-color:#ccc;position:absolute}.tui-chart .tui-chart-plot-area .tui-chart-plot-line.vertical{top:0;width:1px}.tui-chart .tui-chart-plot-area .tui-chart-plot-line.horizontal{left:0;height:1px}.tui-chart .tui-chart-series-area{z-index:200;position:absolute;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart .tui-chart-series-area:first-child{overflow:visible}.tui-chart .tui-chart-series-area .tui-chart-series-block-area{position:absolute;left:10px;top:10px}.tui-chart .tui-chart-series-area .tui-chart-series-block-area .tui-chart-series-block{position:absolute}.tui-chart .tui-chart-series-area .tui-chart-series-label-area{position:absolute;overflow:visible;left:0;top:0;display:none;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0);opacity:0}.tui-chart .tui-chart-series-area .tui-chart-series-label-area .tui-chart-series-label{position:absolute;cursor:default;text-align:center;white-space:nowrap;text-shadow:#fff 0 0 3px}.tui-chart .tui-chart-series-area .tui-chart-series-label-area.show{display:block}.tui-chart .tui-chart-series-area .tui-chart-series-label-area.opacity{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1}.tui-chart .tui-chart-series-area .tui-chart-series-graph-area{position:absolute;left:0;top:0}.tui-chart .tui-chart-zoom-area{z-index:1500;position:absolute;border:1px solid #ccc;background-color:#ccc;border-radius:4px;background-clip:padding-box}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn{width:21px;height:21px;display:block;background-color:#fff;cursor:pointer;position:relative}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn:first-child{margin-bottom:1px;border-radius:4px 4px 0 0;background-clip:padding-box}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn:last-child{border-radius:0 0 4px 4px;background-clip:padding-box}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn:hover{background-color:#efefef}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn>div{font-szie:0;background-color:#555;position:absolute}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn>div.horizontal-line{width:9px;height:1px;left:6px;top:10px}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn>div.vertical-line{width:1px;height:9px;left:10px;top:6px}.tui-chart .tui-chart-series-custom-event-area{z-index:1000;position:absolute;left:0;top:0}.tui-chart .tui-chart-series-custom-event-area.hide{display:none}.tui-chart .tui-chart-series-custom-event-area.drag{cursor:move}.tui-chart .tui-chart-series-custom-event-area .tui-chart-drag-selection{top:10px;height:100%;background-color:gray;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:.3;position:absolute;display:none}.tui-chart .tui-chart-series-custom-event-area .tui-chart-drag-selection.show{display:block}.tui-chart .tui-chart-series-custom-event-area .tui-chart-reset-zoom-btn{position:absolute;left:20px;top:20px;font-size:11px;padding:5px;border:1px solid #ccc;background-color:#efefef;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart .tui-chart-legend-rect{margin-top:2px;width:12px;height:12px}.tui-chart .tui-chart-legend-rect.line{height:2px}.tui-chart .tui-chart-legend-rect.area,.tui-chart .tui-chart-legend-rect.bubble{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";filter:alpha(opacity=50);opacity:.5}.tui-chart .tui-chart-chartExportMenu-area{z-index:900;position:absolute;font-family:Verdana;margin:0;padding:10px 0 0;z-index:5000}.tui-chart .tui-chart-chartExportMenu-area .tui-chart-chartExportMenu-button{position:absolute;width:26px;height:20px;right:0;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPCAYAAADkmO9VAAAAKklEQVQ4EWMsKCj4z0BFwERFs8BGUd1AajtwCJjHOBrLQyCWKHXiCIxlAM/yBv2WsAlAAAAAAElFTkSuQmCC) 0 0 no-repeat;border:0;font-size:12px;padding:3px 5px;margin:0;cursor:pointer}.tui-chart .tui-chart-chartExportMenu-area ul{display:none;position:absolute;top:30px;right:0;width:120px;background:#fff;border:.5px solid #000;font-size:.8em;padding:0;margin:0;box-shadow:3px 3px 5px #888}.tui-chart .tui-chart-chartExportMenu-area ul>li{margin:0;padding:7px 3px;border-collapse:collapse;text-align:center;list-style-type:none;line-height:1;cursor:pointer}.tui-chart .tui-chart-chartExportMenu-area ul>li:hover{background-color:#91ade5}.tui-chart .tui-chart-legend-area{z-index:400;position:absolute;padding:10px;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart .tui-chart-legend-area .tui-chart-legend{clear:both}.tui-chart .tui-chart-legend-area .tui-chart-legend>div{float:left}.tui-chart .tui-chart-legend-area .tui-chart-legend .tui-chart-legend-checkbox-area{width:20px;height:20px;position:relative;box-sizing:border-box}.tui-chart .tui-chart-legend-area .tui-chart-legend .tui-chart-legend-checkbox-area input{left:2px;top:2px;*left:-2px;*top:-2px;position:absolute;padding:0;margin:0}.tui-chart .tui-chart-legend-area .tui-chart-legend .tui-chart-legend-label{padding:2px 0 2px 4px;cursor:pointer;box-sizing:content-box;line-height:1}.tui-chart .tui-chart-legend-area .tui-chart-legend.unselected .tui-chart-legend-label,.tui-chart .tui-chart-legend-area .tui-chart-legend.unselected .tui-chart-legend-rect{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:.3}.tui-chart .tui-chart-legend-area .tui-chart-legend-tick-area{position:absolute;left:10px;top:10px}.tui-chart .tui-chart-legend-area .tui-chart-legend-tick-area .tui-chart-map-legend-tick{width:15px;height:1px;background-color:#ccc;position:absolute;left:0}.tui-chart .tui-chart-legend-area .tui-chart-legend-tick-area .tui-chart-map-legend-tick-label{position:absolute;left:30px;text-align:left}.tui-chart .tui-chart-legend-area .tui-chart-legend-tick-area.horizontal .tui-chart-map-legend-tick{top:0;width:1px;height:15px}.tui-chart .tui-chart-legend-area .tui-chart-legend-tick-area.horizontal .tui-chart-map-legend-tick-label{top:30px}.tui-chart .tui-chart-legend-area .tui-chart-map-legend-wedge{position:absolute;width:19px;height:4px;border-left:2px solid #777;border-right:2px solid #777;left:8px;top:30px;display:none}.tui-chart .tui-chart-legend-area .tui-chart-map-legend-wedge.show{display:block}.tui-chart .tui-chart-legend-area.horizontal{padding-left:0;padding-right:0}.tui-chart .tui-chart-legend-area.horizontal .tui-chart-legend{clear:none;float:left;white-space:nowrap}.tui-chart .tui-chart-circle-legend-area{position:absolute;z-index:400}.tui-chart .tui-chart-circle-legend-area .tui-chart-circle-legend-label-area{position:absolute;left:0;top:0}.tui-chart .tui-chart-circle-legend-area .tui-chart-circle-legend-label-area .tui-chart-circle-legend-label{position:absolute;font-size:9px;white-space:nowrap;text-shadow:#fff 0 0 3px}.tui-chart .tui-chart-tooltip-area{position:absolute;z-index:500}.tui-chart .tui-chart-tooltip-area *{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip{z-index:100;position:absolute;display:none;user-select:none}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip.show{display:block}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip{padding:4px 0;font-size:12px;min-width:100px;color:#fff;border-radius:5px;background-clip:padding-box;background-color:rgba(0,0,0,.7);background-color:#555\9}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>*{padding:2px 7px;text-align:center;white-space:nowrap}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>:first-child{backgound-color:#fff;font-weight:700}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>*{text-align:left;position:relative;padding-left:20px;padding-top:4px;padding-bottom:4px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip .tui-chart-legend-rect{position:absolute;left:7px;top:2px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip .tui-chart-legend-rect.line{top:7px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>:first-child{padding-left:7px;padding-top:6px;padding-bottom:6px;text-align:center}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>.tui-chart-tooltip-type{padding-left:7px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip .hide{display:none}.tui-chart .tui-chart-tooltip-area .tui-chart-group-tooltip-sector{z-index:50;position:absolute;background-color:#aaa;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:.3;display:none}.tui-chart .tui-chart-tooltip-area .tui-chart-group-tooltip-sector.show{display:block}.tui-chart.tui-map-chart .tui-chart-series-area{overflow:hidden}.tui-chart.tui-map-chart .tui-chart-tooltip-area .tui-chart-default-tooltip>:first-child{font-weight:400}.tui-chart-size-check-element{clear:both;position:absolute;word-wrap:break-word;word-break:keep-all;top:100000px;left:100000px;width:1000px;height:100px;padding:0;line-height:1}.tui-chart-size-check-element>span{display:inline-block;box-sizing:border-box;text-align:center;padding:0}:root .tui-chart .tui-chart-axis-area.horizontal .tui-chart-label.tui-chart-xaxis-rotation25 span,:root .tui-chart .tui-chart-axis-area.horizontal .tui-chart-label.tui-chart-xaxis-rotation45 span,:root .tui-chart .tui-chart-axis-area.horizontal .tui-chart-label.tui-chart-xaxis-rotation65 span,:root .tui-chart .tui-chart-axis-area.horizontal .tui-chart-label.tui-chart-xaxis-rotation85 span,:root .tui-chart .tui-chart-axis-area.vertical .tui-chart-title-area{filter:none \0}
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * tui-chart.min
3
+ * @fileoverview tui-chart
4
+ * @author NHN Ent. FE Development Lab <dl_javascript@nhnent.com>
5
+ * @version 2.15.0
6
+ * @license MIT
7
+ * @link https://github.com/nhnent/tui.chart
8
+ * bundle created at "Fri Feb 02 2018 11:24:48 GMT+0900 (KST)"
9
+ */
10
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("raphael"),require("tui-code-snippet")):"function"==typeof define&&define.amd?define(["raphael","tui-code-snippet"],e):"object"==typeof exports?exports.chart=e(require("raphael"),require("tui-code-snippet")):(t.tui=t.tui||{},t.tui.chart=e(t.Raphael,t.tui&&t.tui.util))}(this,function(__WEBPACK_EXTERNAL_MODULE_3__,__WEBPACK_EXTERNAL_MODULE_6__){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};return e.m=t,e.c=i,e.p="/dist/",e(0)}([function(t,e,i){"use strict";var n=i(2),o=i(29);i(147),o.registerPlugin(n.name,n.plugins,n.callback),o.renderUtil=i(7),o.arrayUtil=i(10),o.colorutil=i(138),t.exports=o},,function(t,e,i){"use strict";function n(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feFlood"),o=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),a=document.createElementNS("http://www.w3.org/2000/svg","feMorphology"),r=document.createElementNS("http://www.w3.org/2000/svg","feMerge"),s=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode"),h=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");e.id="glow",n.setAttribute("result","flood"),n.setAttribute("flood-color","#ffffff"),n.setAttribute("flood-opacity","0.5"),o.setAttribute("in","flood"),o.setAttribute("result","mask"),o.setAttribute("in2","SourceGraphic"),o.setAttribute("operator","in"),a.setAttribute("in","mask"),a.setAttribute("result","dilated"),a.setAttribute("operator","dilate"),a.setAttribute("radius","2"),i.setAttribute("in","dilated"),i.setAttribute("result","blurred"),i.setAttribute("stdDeviation","1"),s.setAttribute("in","blurred"),h.setAttribute("in","SourceGraphic"),e.appendChild(n),e.appendChild(o),e.appendChild(a),e.appendChild(i),e.appendChild(r),r.appendChild(s),r.appendChild(h),t.defs.appendChild(e)}var o=i(3),a=i(4),r=i(12),s=i(13),h=i(14),l=i(16),u=i(18),c=i(19),d=i(20),p=i(21),f=i(22),m=i(23),g=i(24),_=i(25),T=i(26),v=i(27),y=i(28),x={bar:a,boxplot:r,bullet:s,column:a,line:h,area:l,pie:u,bubble:d,scatter:d,heatmap:p,treemap:p,map:f,radial:c,legend:m,mapLegend:g,circleLegend:_,radialPlot:y,title:T,axis:v},A=function(t,e){var i=o(t,e.width,e.height),a=i.rect(0,0,e.width,e.height);return i.raphael.svg&&n(i),i.pushDownBackgroundToBottom=function(){a.toBack()},i.changeChartBackgroundColor=function(t){a.attr({fill:t})},i.changeChartBackgroundOpacity=function(t){a.attr({"fill-opacity":t})},i.resizeBackground=function(t,e){a.attr({width:t,height:e})},a.attr({fill:"#fff","stroke-width":0}),i};t.exports={name:"Raphael",plugins:x,callback:A}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_3__},function(t,e,i){"use strict";var n=i(5),o=i(6),a=i(3),r=700,s=1,h=.3,l=.2,u=o.defineClass({render:function(t,e){var i=e.groupBounds;return i?(this.paper=t,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.chartType=e.chartType,this.paper.setStart(),this.options=e.options,this.theme=e.theme,this.groupBars=this._renderBars(i),this.groupBorders=this._renderBarBorders(i),this.overlay=this._renderOverlay(),this.groupBounds=i,this.paper.setFinish()):null},_renderOverlay:function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0};return this._renderBar(t,"#fff",e)},_renderBar:function(t,e,i){var a;return t.width<0||t.height<0?null:a=n.renderRect(this.paper,t,o.extend({fill:e,stroke:"none"},i))},_renderBars:function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,a=o.map(t,function(t,a){return o.map(t,function(t,o){var r,s,h;return t?(h=e.seriesDataModel.getSeriesItem(a,o),r=n?i[a]:i[o],s=e._renderBar(t.start,r),{rect:s,color:r,bound:t.end,item:h,groupIndex:a,index:o,isRange:h.isRange}):null})});return a},_makeRectPoints:function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},_makeTopLinePath:function(t,e,i){var a,r=null,s=i.value;return("bar"===e||s>=0||i.isRange)&&(a=o.extend({},t.leftTop),a.left-="column"===e||s<0?1:0,r=n.makeLinePath(a,t.rightTop).join(" ")),r},_makeRightLinePath:function(t,e,i){var o=null;return("column"===e||i.value>=0||i.isRange)&&(o=n.makeLinePath(t.rightTop,t.rightBottom).join(" ")),o},_makeBottomLinePath:function(t,e,i){var o=null;return("bar"===e||i.value<0||i.isRange)&&(o=n.makeLinePath(t.leftBottom,t.rightBottom).join(" ")),o},_makeLeftLinePath:function(t,e,i){var o=null;return("column"===e||i.value<0||i.isRange)&&(o=n.makeLinePath(t.leftTop,t.leftBottom).join(" ")),o},_makeBorderLinesPaths:function(t,e,i){var n=this._makeRectPoints(t),a={top:this._makeTopLinePath(n,e,i),right:this._makeRightLinePath(n,e,i),bottom:this._makeBottomLinePath(n,e,i),left:this._makeLeftLinePath(n,e,i)};return o.filter(a,function(t){return t})},_renderBorderLines:function(t,e,i,a){var r=this,s=this._makeBorderLinesPaths(t,i,a),h={};return o.forEach(s,function(t,i){h[i]=n.renderLine(r.paper,t,e,1)}),h},_renderBarBorders:function(t){var e,i=this,n=this.theme.borderColor;return n?e=o.map(t,function(t,e){return o.map(t,function(t,o){var a;return t?(a=i.seriesDataModel.getSeriesItem(e,o),i._renderBorderLines(t.start,n,i.chartType,a)):null})}):null},_animateRect:function(t,e){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},r,">")},_animateBorders:function(t,e,i,n){var a=this._makeBorderLinesPaths(e,i,n);o.forEach(t,function(t,e){t.animate({path:a[e]},r,">")})},animate:function(t){var e=this,i=this.groupBorders||[];n.forEach2dArray(this.groupBars,function(t,n,o){var a=i[n]&&i[n][o];t&&(e._animateRect(t.rect,t.bound),a&&e._animateBorders(a,t.bound,e.chartType,t.item))}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},r))},showAnimation:function(t){var e=this.groupBars[t.groupIndex][t.index],i=e.bound;this.overlay.attr({width:i.width,height:i.height,x:i.left,y:i.top,"fill-opacity":.3})},hideAnimation:function(){this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0})},_updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},resize:function(t){var e=this,i=this.groupBorders||[],o=t.dimension,a=t.groupBounds;this.groupBounds=a,this.paper.setSize(o.width,o.height),n.forEach2dArray(this.groupBars,function(t,o,r){var s,h;t&&(s=i[o]&&i[o][r],h=a[o][r].end,t.bound=h,n.updateRectBound(t.rect,h),s&&e._updateBordersPath(s,h,e.chartType,t.item))})},_changeBordersColor:function(t,e){o.forEach(t,function(t){t.attr({stroke:e})})},_changeBarColor:function(t,e,i){var n,o=this.groupBars[t.groupIndex][t.index];o.rect.attr({fill:e}),i&&(n=this.groupBorders[t.groupIndex][t.index],this._changeBordersColor(n,i))},selectSeries:function(t){var e,i=this.groupBars[t.groupIndex][t.index],o=a.color(i.color),r=this.theme.selectionColor,s=r||n.makeChangedLuminanceColor(o.hex,l),h=this.theme.borderColor;h&&(e=a.color(h),h=n.makeChangedLuminanceColor(e.hex,l)),this._changeBarColor(t,s,h)},unselectSeries:function(t){var e=this.groupBars[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBarColor(t,e.color,i)},selectLegend:function(t){var e=this.groupBorders||[],i=o.isNull(t);n.forEach2dArray(this.groupBars,function(n,a,r){var l,u;n&&(l=e[a]&&e[a][r],u=i||t===r?s:h,n.rect.attr({"fill-opacity":u}),l&&o.forEach(l,function(t){t.attr({"stroke-opacity":u})}))})},renderSeriesLabel:function(t,e,i,a,r){var s=r||"column"===this.chartType?"middle":"start",h={"font-size":a.fontSize,"font-family":a.fontFamily,"font-weight":a.fontWeight,fill:a.color,opacity:0,"text-anchor":s},l=t.set();return o.forEach(i,function(i,a){o.forEach(i,function(i,o){var r,s=e[a][o],u=n.renderText(t,s.end,i.end,h);u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),l.push(u),s.start&&(r=n.renderText(t,s.start,i.start,h),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("filter","url(#glow)"),l.push(r))})}),l}});t.exports=u},function(t,e,i){"use strict";function n(t){return o.isExisty(t)&&"number"==typeof t}var o=i(6),a=i(7),r=i(3),s={makeLinePath:function(t,e,i){var n,a=[t.left,t.top],r=[e.left,e.top];return i=i||1,n=i%2/2,o.forEachArray(a,function(t,e){t===r[e]&&(a[e]=r[e]=Math.round(t)-n)}),["M"].concat(a).concat("L").concat(r)},renderLine:function(t,e,i,n){var o=t.path([e]),a={stroke:i,"stroke-width":n||2};return"transparent"===i&&(a.stroke="#fff",a["stroke-opacity"]=0),o.attr(a),o},getEllipsisText:function(t,e,i){for(var n=t.split(""),o=n.length,a=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,r=2*a,s="",h=0;h<o;h+=1){if(r+=this.getRenderedTextSize(n[h],i.fontSize,i.fontFamily).width,r>=e){s+="..";break}s+=n[h]}return s},renderText:function(t,e,i,n){var a=t.text(e.left,e.top,o.decodeHTMLEntity(String(i)));return n&&(n["dominant-baseline"]?a.node.setAttribute("dominant-baseline",n["dominant-baseline"]):a.node.setAttribute("dominant-baseline","central"),a.attr(n)),a},renderArea:function(t,e,i){var n=t.path(e);return i=o.extend({"stroke-opacity":0},i),n.attr(i),n},renderCircle:function(t,e,i,n){var o=t.circle(e.left,e.top,i);return n&&o.attr(n),o},renderRect:function(t,e,i){var n=t.rect(e.left,e.top,e.width,e.height);return i&&n.attr(i),n},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&o.forEachArray(t,function(t,i){o.forEachArray(t,function(t,n){e(t,i,n)})})},makeChangedLuminanceColor:function(t,e){var i;return t=t.replace("#",""),e=e||0,i=o.map(o.range(3),function(i){var n=parseInt(t.substr(2*i,2),16),o=n+n*e;return o=Math.round(Math.min(Math.max(0,o),255)).toString(16),a.formatToZeroFill(o,2)}).join(""),"#"+i},getRenderedTextSize:function(t,e,i){var n=r(document.body,100,100),o=n.text(0,0,t).attr({"font-size":e,"font-family":i}),a=o.getBBox();return o.remove(),n.remove(),{width:a.width,height:a.height}},animateOpacity:function(t,e,i,o){var a=n(o)?o:600,s=n(e)?e:0,h=n(i)?i:1,l=r.animation({opacity:h},a);t.attr({opacity:s}),t.animate(l)}};t.exports=s},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_6__},function(t,e,i){"use strict";function n(t,e){t=h.isArray(t)?t:[t],h.forEachArray(t,e)}function o(t){return"alpha(opacity="+t*a.OLD_BROWSER_OPACITY_100+")"}var a=i(8),r=i(9),s=i(10),h=i(6),l=i(11),u=Array.prototype.concat,c=h.browser,d=c.msie&&7===c.version,p=c.msie&&c.version<=8,f=window.getComputedStyle||!1,m=0,g="clipRectForAnimation",_={concatStr:function(){return String.prototype.concat.apply("",arguments)},makeFontCssText:function(t){var e=[];return t?(t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.join(";")):""},checkEl:null,_createSizeCheckEl:function(){var t,e;return this.checkEl?this.checkEl.style.cssText="":(t=r.create("DIV","tui-chart-size-check-element"),e=r.create("SPAN"),t.appendChild(e),this.checkEl=t),this.checkEl},_makeCachingKey:function(t,e,i){var n=[t,i];return h.forEach(e,function(t,e){n.push(t+e)}),n.join("-")},_addCssStyle:function(t,e){t.style.fontSize=(e.fontSize||a.DEFAULT_LABEL_FONT_SIZE)+"px",e.fontFamily&&(t.style.fontFamily=e.fontFamily),e.fontWeight&&(t.style.fontWeight=e.fontWeight),e.cssText&&(t.style.cssText+=e.cssText)},sizeCache:{},_getRenderedLabelSize:function(t,e,i){var n,o,a,r;return e=e||{},(t=h.isExisty(t)?String(t):"")?(n=this._makeCachingKey(t,e,i),r=this.sizeCache[n],r||(o=this._createSizeCheckEl(),a=o.firstChild,a.innerHTML=t,this._addCssStyle(o,e),document.body.appendChild(o),r=a[i],document.body.removeChild(o),this.sizeCache[n]=r),r):0},getRenderedLabelWidth:function(t,e){var i=this._getRenderedLabelSize(t,e,"offsetWidth");return i},getRenderedLabelHeight:function(t,e){var i=this._getRenderedLabelSize(t,e,"offsetHeight");return i},_getRenderedLabelsMaxSize:function(t,e,i){var n,o=0;return t&&t.length&&(n=h.map(t,function(t){return i(t,e)}),o=s.max(n)),o},getRenderedLabelsMaxWidth:function(t,e){var i=h.bind(this.getRenderedLabelWidth,this),n=this._getRenderedLabelsMaxSize(t,e,i);return n},getRenderedLabelsMaxHeight:function(t,e){var i=h.bind(this.getRenderedLabelHeight,this),n=this._getRenderedLabelsMaxSize(t,e,i);return n},renderDimension:function(t,e){t.style.cssText=[this.concatStr("width:",e.width,"px"),this.concatStr("height:",e.height,"px")].join(";")},renderPosition:function(t,e){h.isUndefined(e)||h.forEachArray(["top","bottom","left","right"],function(i){var n=e[i];h.isNumber(n)&&(t.style[i]=e[i]+"px")})},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,i){var n,o;return t?(n=r.create("DIV",i),n.innerHTML=t,o=_.makeFontCssText(e),e.background&&(o+=";"+this.concatStr("background:",e.background)),n.style.cssText=o,n):null},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*a.SERIES_EXPAND_SIZE,height:e.height+2*a.SERIES_EXPAND_SIZE},position:{left:i.left-a.SERIES_EXPAND_SIZE,top:i.top-a.SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,i){return t+this._properCase(e)+this._properCase(i)},formatValue:function(t){var e=t.value,i=t.formatFunctions,n=t.valueType||"value",o=t.areaType,a=t.chartType,r=t.legendName,s=[String(e)].concat(i||[]);return h.reduce(s,function(t,e){return e(t,a,o,n,r)})},formatValues:function(t,e,i,n,o){var a;return e&&e.length?a=h.map(t,function(t){return _.formatValue({value:t,formatFunctions:e,chartType:i,areaType:n,valueType:o})}):t},formatDate:function(t,e){var i=h.isDate(t)?t:new Date(t);return e=e||a.DEFAULT_DATE_FORMAT,h.formatDate(e,i)||t},formatDates:function(t,e){var i=this.formatDate;return e=e||a.DEFAULT_DATE_FORMAT,h.map(t,function(t){return i(t,e)})},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,i){function n(){var r=(new Date).getTime()-o,s=Math.min(r/t,1);e(s),1===s?(delete a.id,i&&i()):a.id=requestAnimationFrame(n)}var o,a={};return o=(new Date).getTime(),a.id=requestAnimationFrame(n),a},isIE7:function(){return d},isOldBrowser:function(){return p},formatToZeroFill:function(t,e){var i="0";if(t=String(t),t.length>=e)return t;for(;t.length<e;)t=i+t;return t},formatToDecimal:function(t,e){var i,n=10;return 0===e?Math.round(t):(i=Math.pow(n,e),t=Math.round(t*i)/i,t=parseFloat(t).toFixed(e))},formatToComma:function(t){var e,i,n,o,a=",",r="",s=3,l=t;return t=String(t),e=t.indexOf("-")>-1?"-":"",t.indexOf(".")>-1?(i=t.split("."),t=String(Math.abs(i[0])),r="."+i[1]):t=String(Math.abs(t)),t.length<=s?o=l:(i=t.split("").reverse(),n=i.length-1,i=h.map(i,function(t,e){var i=[t];return e<n&&(e+1)%s===0&&i.push(a),i}),o=e+u.apply([],i).reverse().join("")+r),o},makeCssTextFromMap:function(t){return h.map(t,function(t,e){return _.concatStr(e,":",t)}).join(";")},_perseString:function(t){return"string"==typeof t||"number"==typeof t?String(t):""},addPrefixSuffix:function(t,e,i){return e=this._perseString(e),i=this._perseString(i),""!==e||""!==i?h.map(t,function(t){return e+t+i}):t},getStyle:function(t){var e;return e=f?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=g+m;return m+=1,t},getDefaultSeriesTopAreaHeight:function(t,e){return l.isBarTypeChart(t)||l.isLineTypeChart(t)||l.isComboChart(t)||l.isBulletChart(t)?this.getRenderedLabelHeight(a.MAX_HEIGHT_WORD,e)+a.SERIES_LABEL_PADDING:0}};p?(_.makeOpacityCssText=function(t){var e="";return h.isExisty(t)&&(e=";filter:"+o(t)),e},_.setOpacity=function(t,e){var i=o(e);n(t,function(t){t.style.filter=i})}):(_.makeOpacityCssText=function(t){var e="";return h.isExisty(t)&&(e=";opacity:"+t),e},_.setOpacity=function(t,e){n(t,function(t){t.style.opacity=e})}),t.exports=_},function(t,e){"use strict";var i={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_LABEL_PADDING:5,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ccc",EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},DOT_RADIUS:4,SCATTER_RADIUS:5,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:100,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:10,LEGEND_AREA_PADDING:10,LEGEND_CHECKBOX_WIDTH:10,LEGEND_ICON_WIDTH:40,LEGEND_ICON_HEIGHT:15,LEGEND_LABEL_LEFT_PADDING:5,MIN_LEGEND_WIDTH:100,MAP_LEGEND_SIZE:200,MAP_LEGEND_GRAPH_SIZE:25,MAP_LEGEND_LABEL_PADDING:10,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_LABEL_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_COMPARE_MARGIN:20,XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,LABEL_PADDING_TOP:3,LINE_MARGIN_TOP:5,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,FF_WHEELDELTA_ADJUSTING_VALUE:-40,IE7_ROTATION_FILTER_STYLE_MAP:{25:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.9063077870366499, M12=0.42261826174069944, M21=-0.42261826174069944, M22=0.9063077870366499)\"",45:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=0.7071067811865475, M21=-0.7071067811865475, M22=0.7071067811865476)\"",65:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.42261826174069944, M12=0.9063077870366499, M21=-0.9063077870366499, M22=0.42261826174069944)\"",85:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.08715574274765814, M12=0.9961946980917455, M21=-0.9961946980917455, M22=0.08715574274765814)\""},PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3};t.exports=i},function(t,e,i){"use strict";var n=i(6),o=Array.prototype.slice,a={create:function(t,e){var i=document.createElement(t);return e&&this.addClass(i,e),i},_getClassNames:function(t){var e,i;return t.classList?i=o.call(t.classList):(e=t.className||"",i=e&&n.isString(e)?e.split(" "):[]),i},addClass:function(t,e){var i,o;t&&e&&(i=this._getClassNames(t),o=n.inArray(e,i),o>-1||(i.push(e),t.className=i.join(" ")))},removeClass:function(t,e){var i=this._getClassNames(t),o=n.inArray(e,i);o!==-1&&(i.splice(o,1),t.className=i.join(" "))},hasClass:function(t,e){var i=this._getClassNames(t),o=n.inArray(e,i);return o>-1},findParentByClass:function(t,e,i){var n,o=t.parentNode;return n=o?this.hasClass(o,e)?o:"BODY"===o.nodeName||this.hasClass(o,i)?null:this.findParentByClass(o,e,i):null},append:function(t,e){t&&e&&(e=n.isArray(e)?e:[e],n.forEachArray(e,function(e){e&&t.appendChild(e)}))}};t.exports=a},function(t,e,i){"use strict";var n=i(6),o=function(t,e,i){var o,a,r;return e?(o=t[0],a=e.call(i,o,0),r=t.slice(1),n.forEachArray(r,function(t,n){var r=e.call(i,t,n+1);r<a&&(a=r,o=t)})):o=Math.min.apply(null,t),o},a=function(t,e,i){var o,a,r;return e?(o=t[0],a=e.call(i,o,0),r=t.slice(1),n.forEachArray(r,function(t,n){var r=e.call(i,t,n+1);r>a&&(a=r,o=t)})):o=Math.max.apply(null,t),o},r=function(t,e,i){var o=!1;return n.forEach(t,function(n,a){return e.call(i,n,a,t)&&(o=!0),!o}),o},s=function(t,e,i){var o=!!(t||[]).length;return n.forEach(t,function(n,a){return e.call(i,n,a,t)||(o=!1),o!==!1}),o},h=function(t,e,i,o){var a,r=[];return n.isBoolean(e)||(o=i,i=e,e=!1),i=i||function(t){return t},e?n.forEachArray(t,function(e,n){e=i.call(o,e,n,t),n&&a===e||r.push(e),a=e}):n.forEachArray(t,function(e,a){e=i.call(o,e,a,t),n.inArray(e,r)===-1&&r.push(e)}),r},l=function(t){var e,i=[],o=a(n.map(t,function(t){return t.length}));return n.forEachArray(t,function(t){for(e=0;e<o;e+=1)i[e]||(i[e]=[]),i[e].push(t[e])}),i},u={min:o,max:a,any:r,all:s,unique:h,pivot:l};t.exports=u},function(t,e,i){"use strict";var n=i(8),o=i(10),a={isBarChart:function(t){return t===n.CHART_TYPE_BAR},isColumnChart:function(t){return t===n.CHART_TYPE_COLUMN},isBarTypeChart:function(t){return a.isBarChart(t)||a.isColumnChart(t)},isBoxplotChart:function(t){return t===n.CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===n.CHART_TYPE_BULLET},isRadialChart:function(t){return t===n.CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var i=a.isAllowedStackOption(t),n=a.isNormalStack(e);return i&&n},isPercentStackChart:function(t,e){var i=a.isAllowedStackOption(t),n=a.isPercentStack(e);return i&&n},isComboChart:function(t){return t===n.CHART_TYPE_COMBO},isPieDonutComboChart:function(t,e){var i=o.all(e,function(t){return a.isPieChart(t)});return a.isComboChart(t)&&i},isLineChart:function(t){return t===n.CHART_TYPE_LINE},isAreaChart:function(t){return t===n.CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var i=o.all(e||[],function(t){return a.isLineChart(t)||a.isAreaChart(t)});return a.isComboChart(t)&&i},hasLineChart:function(t,e){var i=o.any(e||[],function(t){return a.isLineChart(t)});return a.isComboChart(t)&&i},isLineScatterComboChart:function(t,e){var i=o.all(e||[],function(t){return a.isLineChart(t)||a.isScatterChart(t)});return a.isComboChart(t)&&i},isLineTypeChart:function(t,e){return a.isLineChart(t)||a.isAreaChart(t)||a.isLineAreaComboChart(t,e)},isBubbleChart:function(t){return t===n.CHART_TYPE_BUBBLE},isScatterChart:function(t){return t===n.CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===n.CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===n.CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return a.isHeatmapChart(t)||a.isTreemapChart(t)},isPieChart:function(t){return t&&t.indexOf(n.CHART_TYPE_PIE)!==-1},isMapChart:function(t){return t===n.CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return a.isBubbleChart(t)||a.isScatterChart(t)},allowMinusPointRender:function(t){return a.isLineTypeChart(t)||a.isCoordinateTypeChart(t)||a.isBoxTypeChart(t)||a.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return a.isPieChart(t)||a.isMapChart(t)||a.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===n.LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return a.isShowLabel(t)&&a.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===n.LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===n.LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===n.LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return a.isLegendAlignTop(t)||a.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!a.isHorizontalLegend(t)},isAllowedStackOption:function(t){return a.isBarChart(t)||a.isColumnChart(t)||a.isAreaChart(t)},isNormalStack:function(t){return t===n.NORMAL_STACK_TYPE},isPercentStack:function(t){return t===n.PERCENT_STACK_TYPE},isValidStackOption:function(t){return t&&(a.isNormalStack(t)||a.isPercentStack(t))},isAllowRangeData:function(t){return a.isBarTypeChart(t)||a.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===n.YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===n.TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===n.AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)}};t.exports=a},function(t,e,i){"use strict";var n=i(5),o=i(6),a=i(3),r=700,s=1,h=.3,l=.2,u=1,c=2,d=2,p=1,f=o.defineClass({render:function(t,e){var i=e.groupBounds;return i?(this.paper=t,this.theme=e.theme,this.options=e.options,this.seriesDataModel=e.seriesDataModel,this.chartType=e.chartType,this.paper.setStart(),this.groupWhiskers=[],this.groupMedians=[],this.groupBoxes=this._renderBoxplots(i),this.groupBorders=this._renderBoxBorders(i),this.rectOverlay=this._renderRectOverlay(),this.circleOverlay=this._renderCircleOverlay(),this.groupBounds=i,this.paper.setFinish()):null},_renderRectOverlay:function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0};return n.renderRect(this.paper,t,o.extend({"stroke-width":0},e))},_renderCircleOverlay:function(){var t={left:0,top:0},e={"fill-opacity":0};return n.renderCircle(this.paper,t,0,o.extend({"stroke-width":0},e))},_renderBox:function(t,e,i){var a;return t.width<0||t.height<0?null:a=n.renderRect(this.paper,t,o.extend({fill:"#fff",stroke:e,"stroke-width":u},i))},_renderBoxes:function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint;return o.map(t,function(t,a){return o.map(t,function(t,o){var r,s,h;return t?(h=e.seriesDataModel.getSeriesItem(a,o),r=n?i[a]:i[o],t.start&&(s=e._renderBox(t.start,r)),{rect:s,color:r,bound:t.end,item:h,groupIndex:a,index:o}):null})})},_renderBoxplots:function(t){var e=this._renderBoxes(t);return this.groupWhiskers=this._renderWhiskers(t),this.groupMedians=this._renderMedianLines(t),this.groupOutliers=this._renderOutliers(t),e},_renderWhisker:function(t,e,i){var o=this.paper,a=e.top-t.top,r=a>0?1:-1,s=t.width,h=t.left,l=s/4,u="M"+(h+l)+","+t.top+"H"+(h+3*l),d="M"+(h+2*l)+","+t.top+"V"+(t.top+Math.abs(a)*r),f=n.renderLine(o,u,i,c),m=n.renderLine(o,d,i,p),g=[];return f.attr({opacity:0}),m.attr({opacity:0}),g.push(f),g.push(m),g},_renderWhiskers:function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,a=[];return o.forEach(t,function(t,r){var s=[];o.forEach(t,function(t,o){var a=n?i[r]:i[o];t&&(s=s.concat(e._renderWhisker(t.min,t.start,a)),s=s.concat(e._renderWhisker(t.max,t.end,a)))}),a.push(s)}),a},_renderMedianLine:function(t,e){var i=t.width,o="M"+t.left+","+t.top+"H"+(t.left+i),a=n.renderLine(this.paper,o,e,d);return a.attr({opacity:0}),a},_renderMedianLines:function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,a=[];return o.forEach(t,function(t,r){var s=[];o.forEach(t,function(t,o){var a=n?i[r]:i[o];t&&s.push(e._renderMedianLine(t.median,a))}),a.push(s)}),a},_renderOutlier:function(t,e){var i=n.renderCircle(this.paper,{left:t.left,top:t.top},3,{stroke:e});return i.attr({opacity:0}),i},_renderOutliers:function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,a=[];return o.forEach(t,function(t,r){var s=[];o.forEach(t,function(t,a){var h=n?i[r]:i[a],l=[];t&&(t.outliers.length&&o.forEach(t.outliers,function(t){l.push(e._renderOutlier(t,h))}),s.push(l))}),a.push(s)}),a},_makeRectPoints:function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},_renderBorderLines:function(t,e,i,a){var r=this,s=this._makeBorderLinesPaths(t,i,a),h={};return o.forEach(s,function(t,i){h[i]=n.renderLine(r.paper,t,e,1)}),h},_renderBoxBorders:function(t){var e,i=this,n=this.theme.borderColor;return n?e=o.map(t,function(t,e){return o.map(t,function(t,o){var a;return t?(a=i.seriesDataModel.getSeriesItem(e,o),i._renderBorderLines(t.start,n,i.chartType,a)):null})}):null},_animateRect:function(t,e){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},r,">")},animate:function(t){var e=this,i=a.animation({opacity:1},r);n.forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound)}),n.forEach2dArray(e.groupWhiskers,function(t){t.animate(i.delay(r))}),n.forEach2dArray(e.groupMedians,function(t){t.animate(i.delay(r))}),n.forEach2dArray(e.groupOutliers,function(t){o.forEach(t,function(t){t.animate(i.delay(r))})}),t&&(this.callbackTimeout=setTimeout(function(){
11
+ t(),delete e.callbackTimeout},r))},showAnimation:function(t){o.isNumber(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},showRectAnimation:function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=e.bound;this.rectOverlay.attr({width:i.width,height:i.height,x:i.left,y:i.top,fill:e.color,"fill-opacity":.3})},showOutlierAnimation:function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":.3,stroke:e.stroke,"stroke-width":2})},hideAnimation:function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":0}),this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0})},_updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},resize:function(t){var e=t.dimension,i=t.groupBounds;this.groupBounds=i,this.paper.setSize(e.width,e.height),n.forEach2dArray(this.groupBoxes,function(t,e,o){var a;t&&(a=i[e][o].end,t.bound=a,n.updateRectBound(t.rect,a))})},_changeBordersColor:function(t,e){o.forEach(t,function(t){t.attr({stroke:e})})},_changeBoxColor:function(t,e,i){var n,o=this.groupBoxes[t.groupIndex][t.index];o.rect.attr({stroke:e}),i&&(n=this.groupBorders[t.groupIndex][t.index],this._changeBordersColor(n,i))},selectSeries:function(t){var e,i=this.groupBoxes[t.groupIndex][t.index],o=a.color(i.color),r=this.theme.selectionColor,s=r||n.makeChangedLuminanceColor(o.hex,l),h=this.theme.borderColor;h&&(e=a.color(h),h=n.makeChangedLuminanceColor(e.hex,l)),this._changeBoxColor(t,s,h)},unselectSeries:function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBoxColor(t,e.color,i)},selectLegend:function(t){var e=o.isNull(t);n.forEach2dArray(this.groupBoxes,function(i,n,o){var a;i&&(a=e||t===o?s:h,i.rect.attr({"stroke-opacity":a}))}),n.forEach2dArray(this.groupWhiskers,function(i,n,o){var a=e||t===o?s:h;i.attr({"stroke-opacity":a})}),n.forEach2dArray(this.groupMedians,function(i,n,o){var a=e||t===o?s:h;i.attr({"stroke-opacity":a})})},renderSeriesLabel:function(t,e,i,a,r){var s={"font-size":a.fontSize,"font-family":a.fontFamily,"font-weight":a.fontWeight,fill:a.color,opacity:0,"text-anchor":r?"middle":"start"},h=t.set();return o.forEach(i,function(i,a){o.forEach(i,function(i,o){var r,l=e[a][o],u=n.renderText(t,l.end,i.end,s);u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),h.push(u),l.start&&(r=n.renderText(t,l.start,i.start,s),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("filter","url(#glow)"),h.push(r))})}),h}});t.exports=f},function(t,e,i){"use strict";function n(t,e,i,n){var o=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),a=t.rect(e.left,e.top,i.width,i.height);return a.id=n+"_rect",o.id=n,o.appendChild(a.node),t.defs.appendChild(o),a}var o=i(5),a=i(8),r=i(6),s=i(7),h=r.browser,l=h.msie&&h.version<=8,u=700,c=700,d=1,p=.3,f=20,m=r.defineClass({render:function(t,e){var i=e.groupBounds,n=e.seriesDataModel;return i&&i.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.seriesDataModel=n,this.maxRangeCount=n.maxRangeCount,this.maxMarkerCount=n.maxMarkerCount,this.rangeOpacities={},this.paper.setStart(),this._renderBounds(i),this.paper.setFinish()):null},_getRangeOpacity:function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t<e&&!this.rangeOpacities[t]&&(this.rangeOpacities[t]=1-this.opacityStep*(t+1)),this.rangeOpacities[t]},_updateOpacityStep:function(t){this.rangeOpacities={},this.opacityStep=Number(1/(t+1)).toFixed(2),this.prevMaxRangeCount=t},_renderBounds:function(t){var e=this.theme.ranges,i=this.paper;this.groupBars=[],this.groupLines=[],r.forEach(t,function(t,n){var o=this.theme.colors[n],s=0,h=i.set(),l=i.set();r.forEach(t,function(t){var i=t.type;i===a.BULLET_TYPE_ACTUAL?h.push(this._renderActual(t,o)):i===a.BULLET_TYPE_RANGE?(h.push(this._renderRange(t,o,s,e[s])),s+=1):i===a.BULLET_TYPE_MARKER&&l.push(this._renderMarker(t,o))},this),this.groupBars.push(h),this.groupLines.push(l)},this)},_renderActual:function(t,e){return t?this._renderBar(t,e):null},_renderRange:function(t,e,i,n){var o=e,a=this._getRangeOpacity(i),r={opacity:a};return t?(n&&(o=n.color||o,r.opacity=n.opacity||a),this._renderBar(t,o,r)):null},_renderBar:function(t,e,i){return t.width<0||t.height<0?null:o.renderRect(this.paper,t,r.extend({fill:e,stroke:"none"},i))},_renderMarker:function(t,e){return t?this._renderLine(t,e):null},_renderLine:function(t,e){var i=t.top,n=t.left,r=t.length,s=this.isVertical?"L"+(n+r)+","+i:"L"+n+","+(i+r),h="M"+n+","+i+s;return o.renderLine(this.paper,h,e,a.BULLET_MARKER_STROKE_TICK)},animate:function(t,e){var i=this.paper,o=this.dimension,a=this.position,r=this.clipRect,s=this._getClipRectId(),h=o.width-f,d=o.height-f,p={},m={};this.isVertical?(p.width=h,p.height=0,m.height=d):(p.width=0,p.height=d,m.width=h),!l&&o&&(r?(r.attr({x:a.left,y:a.top}),r.attr(p)):(r=n(i,a,p,s),this.clipRect=r),e.forEach(function(t){"set"===t.type?t.forEach(function(t){t.node.setAttribute("clip-path","url(#"+s+")")}):t.node.setAttribute("clip-path","url(#"+s+")")}),r.animate(m,u,">",t)),t&&(this.callbackTimeout=setTimeout(function(){t(),delete self.callbackTimeout},c))},resize:function(t){var e=t.dimension,i=t.groupBounds,n=e.width,o=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(n,o),this.paper.setSize(n,o),this._renderBounds(i)},resizeClipRect:function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},setClipRectPosition:function(t){var e=this.paper.getById(this._getClipRectId()+"_rect");e.attr({x:t.left,y:t.top})},_getClipRectId:function(){return this.clipRectId||(this.clipRectId=s.generateClipRectId()),this.clipRectId},_changeBordersColor:function(t,e){r.forEach(t,function(t){t.attr({stroke:e})})},selectLegend:function(t){var e=r.isNull(t);r.forEachArray(this.groupBars,function(i,n){var o=e||t===n?d:p;this.groupBars[n].attr({"fill-opacity":o}),this.groupLabels[n].attr({opacity:o}),r.forEachArray(this.groupLabels[n],function(t){t.attr({opacity:o})})},this)},renderSeriesLabel:function(t,e,i,n){var o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},a=t.set();return this.groupLabels=r.map(i,function(i,n){var s=t.set();return r.forEach(i,function(i,r){var h=this._renderLabel(t,e[n][r],o,i);s.push(h),a.push(h)},this),s},this),a},_renderLabel:function(t,e,i,n){var a=o.renderText(t,e,n,i),r=a.node,s=r.style;return s.userSelect="none",s.cursor="default",r.setAttribute("filter","url(#glow)"),a},getGraphColors:function(){return r.map(this.groupBars,function(t,e){var i,n=[],o=this.groupLines[e].length,a=0;for(t.forEach(function(t){n.push(t.attrs.fill)}),i=n[n.length-1];a<=o;a+=1)n.push(i);return n},this)}});t.exports=m},function(t,e,i){"use strict";var n=i(15),o=i(5),a=i(6),r=1,s=.3,h=a.defineClass(n,{init:function(){this.selectedLegendIndex=null,this.chartType="line",this.lineWidth=2},render:function(t,e){var i,n=e.dimension,o=e.groupPositions,r=e.theme,s=r.colors,h=e.options,l=h.showDot?1:0,u=h.spline,c=this.lineWidth=a.isNumber(h.pointWidth)?h.pointWidth:this.lineWidth,d=this.makeBorderStyle(r.borderColor,l),p=this.makeOutDotStyle(l,d);return i=u?this._getSplineLinesPath(o,h.connectNulls):this._getLinesPath(o,h.connectNulls),this.paper=t,this.theme=e.theme,this.isSpline=u,this.dimension=n,this.position=e.position,t.setStart(),this.groupLines=this._renderLines(t,i,s,c),this.tooltipLine=this._renderTooltipLine(t,n.height),this.groupDots=this._renderDots(t,o,s,l),h.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor),this.colors=s,this.borderStyle=d,this.outDotStyle=p,this.groupPositions=o,this.groupPaths=i,this.dotOpacity=l,delete this.pivotGroupDots,t.setFinish()},_getLinesPath:function(t,e){var i=this;return a.map(t,function(t){return i._makeLinesPath(t,null,e)})},_getSplineLinesPath:function(t,e){var i=this;return a.map(t,function(t){return i._makeSplineLinesPath(t,e)})},_renderLines:function(t,e,i,n){return a.map(e,function(e,a){var r=i[a]||"transparent";return o.renderLine(t,e.join(" "),r,n)})},resize:function(t){var e=this,i=t.dimension,n=t.groupPositions;this.resizeClipRect(i.width,i.height),this.groupPositions=n,this.groupPaths=this.isSpline?this._getSplineLinesPath(n):this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),a.forEachArray(this.groupPaths,function(t,i){e.groupLines[i].attr({path:t.join(" ")}),a.forEachArray(e.groupDots[i],function(t,o){t.endDot&&e._moveDot(t.endDot.dot,n[i][o])})})},selectLegend:function(t){var e=this,i=a.isNull(t);this.selectedLegendIndex=t,a.forEachArray(this.groupLines,function(n,o){var h=i||t===o?r:s;n.attr({"stroke-opacity":h}),a.forEachArray(e.groupDots[o],function(t){t.opacity=h,e.dotOpacity&&t.endDot.dot.attr({"fill-opacity":h})})})},animateForAddingData:function(t,e,i,n){var o=this,r=t.options.spline,s=r?this._getSplineLinesPath(i):this._getLinesPath(i),h=0;i.length&&(n&&(h=1),a.forEachArray(this.groupLines,function(t,r){var l=o.groupDots[r],u=i[r];n&&o._removeFirstDot(l),a.forEachArray(l,function(t,i){var n=u[i+h];o._animateByPosition(t.endDot.dot,n,e)}),o._animateByPath(t,s[r],e)}))},renderSeriesLabel:function(t,e,i,n){var r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,"text-anchor":"middle",opacity:0},s=t.set();return a.forEach(i,function(i,n){a.forEach(i,function(i,a){var h,l=e[n][a],u=o.renderText(t,l.end,i.end,r);s.push(u),u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),l.start&&(h=o.renderText(t,l.start,i.start,r),h.node.style.userSelect="none",h.node.style.cursor="default",h.node.setAttribute("filter","url(#glow)"),s.push(h))})}),s}});t.exports=h},function(t,e,i){"use strict";function n(t,e,i,n){var o=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),a=t.rect(e.left-10,e.top-10,0,i.height);return a.id=n+"_rect",o.id=n,o.appendChild(a.node),t.defs.appendChild(o),a}var o=i(5),a=i(7),r=i(6),s=i(10),h=r.browser,l=h.msie&&h.version<=8,u=700,c=3,d=7,p=.3,f=300,m=Array.prototype.concat,g=r.defineClass({_makeLinesPath:function(t,e,i){var n=[],o=!1;return e=e||"top",r.map(t,function(t){var a=o&&!i?"M":"L";t?(n.push([a,t.left,t[e]]),o&&(o=!1)):o=!0}),n=m.apply([],n),n.length>0&&(n[0]="M"),n},_getAnchor:function(t,e,i){var n,o,a,r,s,h=(e.left-t.left)/2,l=(i.left-e.left)/2,u=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),c=Math.atan((i.left-e.left)/Math.abs(e.top-i.top));return u=t.top<e.top?Math.PI-u:u,c=i.top<e.top?Math.PI-c:c,n=Math.PI/2-(u+c)%(2*Math.PI)/2,o=h*Math.sin(n+u),a=h*Math.cos(n+u),r=l*Math.sin(n+c),s=l*Math.cos(n+c),{x1:e.left-o,y1:e.top+a,x2:e.left+r,y2:e.top+s}},_getSplinePositionsGroups:function(t,e){var i=[],n=[];return r.forEach(t,function(o,a){var r=a===t.length-1;o&&n.push(o),(!o&&n.length>0&&!e||r)&&(i.push(n),n=[])}),i},_getSplinePartialPaths:function(t){var e,i,n,o,a,s,h,l=this,u=[];return r.forEach(t,function(t){h=e=t[0],n=t.length,o=e,i=t[n-1],a=t.slice(1).slice(0,n-2),s=r.map(a,function(e,i){var n=t[i+2],a=l._getAnchor(o,e,n);return o=e,Math.abs(a.y1-h.top)>Math.abs(h.top-e.top)&&(a.y1=e.top),Math.abs(a.y2-n.top)>Math.abs(n.top-e.top)&&(a.y2=e.top),h=e,[a.x1,a.y1,e.left,e.top,a.x2,a.y2]}),s.push([i.left,i.top,i.left,i.top]),s.unshift(["M",e.left,e.top,"C",e.left,e.top]),u.push(s)}),u},_makeSplineLinesPath:function(t,e){var i=[],n=this._getSplinePositionsGroups(t,e),o=this._getSplinePartialPaths(n);return r.forEach(o,function(t){i=i.concat(t)}),i},_renderTooltipLine:function(t,e){var i=o.makeLinePath({left:10,top:e},{left:10,top:0});return o.renderLine(t,i,"transparent",1)},makeBorderStyle:function(t,e){var i;return t&&(i={stroke:t,"stroke-width":1,"stroke-opacity":e}),i},makeOutDotStyle:function(t,e){var i={"fill-opacity":t,"stroke-opacity":0,r:c};return e&&r.extend(i,e),i},renderDot:function(t,e,i,n){var o,a,s,h=this.theme&&this.theme.dot||{dot:{}};return e&&(o=t.circle(e.left,e.top,h.radius||c),a={fill:h.fillColor||i,"fill-opacity":r.isNumber(n)?n:h.fillOpacity,stroke:h.strokeColor||i,"stroke-opacity":r.isNumber(n)?n:h.strokeOpacity,"stroke-width":h.strokeWidth},o.attr(a),s={dot:o,color:i}),s},_moveDotsToFront:function(t){o.forEach2dArray(t,function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},_renderDots:function(t,e,i,n,o){var a,s=this;return a=r.map(e,function(e,a){var h=i[a];return r.map(e,function(e){var i,a={endDot:s.renderDot(t,e,h,n)};return s.hasRangeData&&(i=r.extend({},e),i.top=i.startTop,a.startDot=s.renderDot(t,i,h,n)),o&&(o.push(a.endDot.dot),a.startDot&&o.push(a.startDot.dot)),a})})},_getCenter:function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},_showDot:function(t,e){var i=this.theme.dot.hover,n={"fill-opacity":i.fillOpacity,stroke:i.strokeColor||t.color,"stroke-opacity":i.strokeOpacity,"stroke-width":i.strokeWidth,r:i.radius};this._setPrevDotAttributes(e,t.dot),i.fillColor&&(n.fill=i.fillColor),t.dot.attr(n)},_setPrevDotAttributes:function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},_updateLineStrokeWidth:function(t,e){t.attr({"stroke-width":e})},showAnimation:function(t){var e,i,n=t.groupIndex,o=t.index,a=this.groupLines?this.groupLines[o]:this.groupAreas[o],r=this.groupDots[o][n];r&&("area"===this.chartType?(e=2*this.lineWidth,i=a.startLine,a=a.line):e=2*this.lineWidth,this._updateLineStrokeWidth(a,e),i&&this._updateLineStrokeWidth(i,e),this._showDot(r.endDot,o),r.startDot&&this._showDot(r.startDot,o))},_getPivotGroupDots:function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=s.pivot(this.groupDots)),this.pivotGroupDots},_showGroupDots:function(t){var e=this,i=this._getPivotGroupDots();i&&i[t]&&r.forEachArray(i[t],function(t,i){t.endDot&&e._showDot(t.endDot,i),t.startDot&&e._showDot(t.startDot,i)})},showGroupTooltipLine:function(t,e){var i=Math.max(t.position.left,11),n=o.makeLinePath({left:i,top:e.position.top+t.dimension.height},{left:i,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:n,stroke:"#999","stroke-opacity":1})},showGroupAnimation:function(t){this._showGroupDots(t)},_hideDot:function(t,e,i){var n=this._prevDotAttributes[e],o=this.outDotStyle;n&&!r.isUndefined(i)&&(o=r.extend({r:n.r,stroke:n.stroke,fill:n.fill,"stroke-opacity":n["stroke-opacity"],"stroke-width":n["stroke-width"]},{"fill-opacity":i})),t.attr(o)},hideAnimation:function(t){var e,i,n,o,a=t.groupIndex,s=t.index,h=this.dotOpacity,l=this.groupDots[s];l&&l[a]&&(e=this.groupLines?this.groupLines[s]:this.groupAreas[s],i=l[a],"area"===this.chartType?(n=this.lineWidth,o=e.startLine,e=e.line):n=this.lineWidth,h&&!r.isNull(this.selectedLegendIndex)&&this.selectedLegendIndex!==s&&(h=p),e&&this._updateLineStrokeWidth(e,n),o&&this._updateLineStrokeWidth(o,n),i&&(this._hideDot(i.endDot.dot,s,h),i.startDot&&this._hideDot(i.startDot.dot,s,h)))},_hideGroupDots:function(t){var e=this,i=!r.isNull(this.selectedLegendIndex),n=this.dotOpacity,o=this._getPivotGroupDots();o&&o[t]&&r.forEachArray(o[t],function(t,o){var a=n;a&&i&&e.selectedLegendIndex!==o&&(a=p),t.endDot&&e._hideDot(t.endDot.dot,o,a),t.startDot&&e._hideDot(t.startDot.dot,o,a)})},hideGroupTooltipLine:function(){this.tooltipLine.attr({"stroke-opacity":0})},hideGroupAnimation:function(t){this._hideGroupDots(t)},_moveDot:function(t,e){var i={cx:e.left,cy:e.top};this.dotOpacity&&(i=r.extend({"fill-opacity":this.dotOpacity},i,this.borderStyle)),t.attr(i)},animate:function(t,e){var i=this.paper,o=this.dimension,a=this.position,r=this.clipRect,s=this._getClipRectId();!l&&o&&(r?r.attr({width:0,height:o.height}):(r=n(i,a,o,s),this.clipRect=r),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+s+")")}),r.animate({width:o.width},u,">",t))},_makeSelectionDot:function(t){var e=t.circle(0,0,d);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},selectSeries:function(t){var e=this.groupDots[t.index][t.groupIndex],i=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:i.left,cy:i.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:i.left,cy:i.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},unselectSeries:function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},setSize:function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},_animateByPosition:function(t,e,i){var n={cx:e.left,cy:e.top};r.isExisty(i)&&(n.transform="t-"+i+",0"),t.animate(n,f)},_animateByPath:function(t,e,i){var n={path:e.join(" ")};r.isExisty(i)&&(n.transform="t-"+i+",0"),t.animate(n,f)},_removeFirstDot:function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},clear:function(){delete this.paper.dots,this.paper.clear()},resizeClipRect:function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},_getClipRectId:function(){return this.clipRectId||(this.clipRectId=a.generateClipRectId()),this.clipRectId}});t.exports=g},function(t,e,i){"use strict";var n=i(15),o=i(5),a=i(6),r=1,s=.3,h=Array.prototype.concat,l=i(8).GUIDE_AREACHART_AREAOPACITY_TYPE,u=i(17),c=a.defineClass(n,{init:function(){this.selectedLegendIndex=null,this.chartType="area",this.lineWidth=1},render:function(t,e){var i=e.dimension,n=e.groupPositions,o=e.theme,r=o.colors,s=e.options,h=this._isAreaOpacityNumber(s.areaOpacity)?s.areaOpacity:.5,l=s.showDot?1:0,u=this.makeBorderStyle(o.borderColor,l),c=this.makeOutDotStyle(l,u),d=this.lineWidth=a.isNumber(s.pointWidth)?s.pointWidth:this.lineWidth;return this.paper=t,this.theme=e.theme,this.isSpline=s.spline,this.dimension=i,this.position=e.position,this.zeroTop=e.zeroTop,this.hasRangeData=e.hasRangeData,t.setStart(),this.groupPaths=this._getAreaChartPath(n,null,s.connectNulls),this.groupAreas=this._renderAreas(t,this.groupPaths,r,d,h),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,n,r,l),s.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=o.selectionColor,this.hasRangeData&&(this.selectionStartDot=this._makeSelectionDot(t))),this.outDotStyle=c,this.groupPositions=n,this.dotOpacity=l,this.pivotGroupDots=null,t.setFinish()},_getAreaChartPath:function(t,e,i){var n;return n=this.isSpline?this._makeSplineAreaChartPath(t,e):this._makeAreaChartPath(t,e,i)},_renderAreas:function(t,e,i,n,r){var s;return i=i.slice(0,e.length),i.reverse(),e.reverse(),s=a.map(e,function(e,a){var s=i[a]||"transparent",h=s,l={area:o.renderArea(t,e.area.join(" "),{fill:s,opacity:r,stroke:s}),line:o.renderLine(t,e.line.join(" "),h,n)};return e.startLine&&(l.startLine=o.renderLine(t,e.startLine.join(" "),h,1)),l}),s.reverse()},_makeHeight:function(t,e){return Math.abs(t-e)},_makeAreasPath:function(t,e){var i,n=[],o=[],r=!1,s=t.length,l=[],u=[];return a.forEachArray(t,function(t,e){var i;t?(r?(i="M",r=!1):i="L",l.push([i,t.left,t.top]),u.unshift(["L",t.left,t.startTop])):(r=!0,u.push(["z"])),t&&e!==s-1||(o.push(l.concat(u)),l=[],u=[])}),a.forEachArray(o,function(t){n=n.concat(t)}),e!==!1&&(i=t.length-1,n.splice(i+1,0,n[i],n[i+1])),n=h.apply([],n),n[0]="M",n},_makeAreaChartPath:function(t,e,i){var n=this;return a.map(t,function(t){var o;return o={area:n._makeAreasPath(t,e),line:n._makeLinesPath(t,null,i)},n.hasRangeData&&(o.startLine=n._makeLinesPath(t,"startTop")),o})},_makeSplineAreaBottomPath:function(t){var e=this;return a.map(t,function(t){return["L",t.left,e.zeroTop]}).reverse()},_makeSplineAreaChartPath:function(t,e){var i=this;return a.map(t,function(t){var n,o=i._makeSplineLinesPath(t),a=JSON.parse(JSON.stringify(o)),r=i._makeSplineAreaBottomPath(t);return e!==!1&&(n=t[t.length-1],a.push(["L",n.left,n.top]),r.unshift(["L",n.left,i.zeroTop])),{area:a.concat(r),line:o}})},resize:function(t){var e=this,i=t.dimension,n=t.groupPositions;this.resizeClipRect(i.width,i.height),this.zeroTop=t.zeroTop,this.groupPositions=n,this.groupPaths=this._getAreaChartPath(n),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),a.forEachArray(this.groupPaths,function(t,i){var o=e.groupAreas[i];o.area.attr({path:t.area.join(" ")}),o.line.attr({path:t.line.join(" ")}),o.startLine&&o.startLine.attr({path:t.startLine.join(" ")}),a.forEachArray(e.groupDots[i],function(t,o){var r,s=n[i][o];t.endDot&&e._moveDot(t.endDot.dot,s),t.startDot&&(r=a.extend({},s),r.top=r.startTop,e._moveDot(t.startDot.dot,r))})})},selectLegend:function(t){var e=this,i=a.isNull(t);this.selectedLegendIndex=t,a.forEachArray(this.groupAreas,function(n,o){var h=i||t===o?r:s;n.area.attr({"fill-opacity":h}),n.line.attr({"stroke-opacity":h}),n.startLine&&n.startLine.attr({"stroke-opacity":h}),a.forEachArray(e.groupDots[o],function(t){e.dotOpacity&&(t.endDot.dot.attr({"fill-opacity":h}),t.startDot&&t.startDot.dot.attr({"fill-opacity":h}))})})},animateForAddingData:function(t,e,i,n,o){var r=this,s=this._getAreaChartPath(i,!1),h=0;i.length&&(n&&(h=1),this.zeroTop=o,a.forEachArray(this.groupAreas,function(t,o){var l=r.groupDots[o],u=i[o],c=s[o];n&&r._removeFirstDot(l),a.forEachArray(l,function(t,i){var n=u[i+h];r._animateByPosition(t.endDot.dot,n,e),t.startDot&&r._animateByPosition(t.startDot.dot,{left:n.left,top:n.startTop},e)}),r._animateByPath(t.area,c.area,e),r._animateByPath(t.line,c.line,e),t.startLine&&r._animateByPath(t.startLine,c.startLine,e)}))},renderSeriesLabel:function(t,e,i,n){var r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,"text-anchor":"middle",opacity:0},s=t.set();return a.forEach(i,function(i,n){a.forEach(i,function(i,a){var h,l=e[n][a],u=o.renderText(t,l.end,i.end,r);s.push(u),u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),l.start&&(h=o.renderText(t,l.start,i.start,r),h.node.style.userSelect="none",h.node.style.cursor="default",h.node.setAttribute("filter","url(#glow)"),s.push(h))})}),s},_isAreaOpacityNumber:function(t){var e=a.isNumber(t);return e?(t<0||t>1)&&u.print(l,"warn"):a.isUndefined(t)||u.print(l,"error"),e}});t.exports=c},function(t,e){"use strict";t.exports={print:function(t,e){e=e||"log",window.console&&window.console[e](t)}}},function(t,e,i){"use strict";var n=i(5),o=i(6),a=i(3),r=180,s=360,h=.01,l=Math.PI/r,u=700,c=1,d=.3,p=.3,f=.2,m="overlay",g=20,_=o.defineClass({render:function(t,e,i){var n=t.set();return this.paper=t,this.holeRatio=e.options.radiusRange[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=i,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,n),this.overlay=this._renderOverlay(),this.prevPosition=null,this.prevHoverSector=null,n},clear:function(){this.legendLines=null,this.paper.clear()},_makeSectorPath:function(t,e,i,n,o){var a=n*l,s=o*l,h=t+i*Math.sin(a),u=e-i*Math.cos(a),c=t+i*Math.sin(s),d=e-i*Math.cos(s),p=o-n>r?1:0,f=["M",t,e,"L",h,u,"A",i,i,0,p,1,c,d,"Z"];return{path:f}},_makeDonutSectorPath:function(t,e,i,n,o,a){var s=n*l,h=o*l,u=a||i*this.holeRatio,c=t+i*Math.sin(s),d=e-i*Math.cos(s),p=t+u*Math.sin(s),f=e-u*Math.cos(s),m=t+i*Math.sin(h),g=e-i*Math.cos(h),_=t+u*Math.sin(h),T=e-u*Math.cos(h),v=o-n>r?1:0,y=["M",c,d,"A",i,i,0,v,1,m,g,"L",_,T,"A",u,u,0,v,0,p,f,"Z"];return{path:y}},_setSectorAttr:function(){var t;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=o.bind(t,this))},_renderOverlay:function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.data("id",m),e.data("chartType",this.chartType),{inner:e,outer:this._renderSector(t)}},_renderSector:function(t){var e=t.circleBound,i=t.angles,n=t.attrs;return n[this.sectorName]=[e.cx,e.cy,e.r,i.startAngle,i.endAngle],t.paper.path().attr(n)},_renderPie:function(t,e,i,n){var a=this,r=this.circleBound,s=this.chartBackground,h=[];return o.forEachArray(t,function(t,o){var l=t.ratio,u=e[o],c=a._renderSector({paper:a.paper,circleBound:r,angles:t.angles.start,attrs:{fill:s.color,stroke:s.color,"stroke-width":1}});c.data("index",o),c.data("legendIndex",o+i),c.data("chartType",a.chartType),h.push({sector:c,color:u,angles:t.angles.end,ratio:l}),n.push(c)}),h},renderLegendLines:function(t){var e,i=this.paper;this.legendLines||(e=this._makeLinePaths(t),this.legendLines=o.map(e,function(t){return n.renderLine(i,t,"transparent",1)}))},_makeLinePaths:function(t){return o.map(t,function(t){return[n.makeLinePath(t.start,t.middle),n.makeLinePath(t.middle,t.end),"Z"].join("")})},_showOverlay:function(t,e){var i,n=this.overlay,o=this.sectorInfos[t],a=o.angles.startAngle,r=o.angles.endAngle,s=this.circleBound;i={fill:"#fff",opacity:d},i[this.sectorName]=[s.cx,s.cy,s.r,a,r,s.r*this.holeRatio],n.inner.attr(i),n.inner.data("index",t),n.inner.data("legendIndex",e),n.outer.attr({path:this._makeDonutSectorPath(s.cx,s.cy,s.r+10,a,r,s.r).path,fill:o.color,opacity:d})},_hideOverlay:function(){var t=this.overlay,e={fill:"none",opacity:0};t.inner.attr(e),t.outer.attr(e)},animate:function(t){var e=0,i=this.sectorName,n=this.circleBound,r=[n.cx,n.cy,n.r];o.forEachArray(this.sectorInfos,function(t){var n,o=t.angles,l={fill:t.color},c=u*t.ratio;0===o.startAngle&&o.endAngle===s&&(o.endAngle=s-h),l[i]=r.concat([o.startAngle,o.endAngle]),n=a.animation(l,c,">"),t.sector.animate(n.delay(e)),e+=c}),t&&setTimeout(t,e)},animateLegendLines:function(t){var e;this.legendLines&&(e=o.isNull(t),o.forEachArray(this.legendLines,function(i,n){var o=e||t===n?c:p;i.animate({stroke:"black","stroke-opacity":o})}))},resize:function(t){var e=t.dimension,i=t.circleBound,n=this.sectorName,a=this.labelSet;this.circleBound=i,this.paper.setSize(e.width,e.height),o.forEachArray(this.sectorInfos,function(t,e){var o,r=t.angles,s={};s[n]=[i.cx,i.cy,i.r,r.startAngle,r.endAngle],t.sector.attr(s),a&&a.length&&(o=t.sector.getBBox(),a[e].attr({x:o.x+o.width/2,y:o.y+o.height/2}))})},moveLegendLines:function(t){var e;this.legendLines&&(e=this._makeLinePaths(t),o.forEachArray(this.legendLines,function(t,i){return t.attr({path:e[i]}),t}))},findSectorInfo:function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={legendIndex:o.isExisty(e.data("legendIndex"))?e.data("legendIndex"):-1,index:o.isExisty(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),i},_isChangedPosition:function(t,e){return!t||t.left!==e.left||t.top!==e.top},_showTooltip:function(t,e){var i=[{},0,t.data("index"),{left:e.left-g,top:e.top-g}];this.callbacks.showTooltip.apply(null,i)},_isValidSector:function(t){return t&&t.data("chartType")===this.chartType},moveMouseOnSeries:function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},selectSeries:function(t){var e,i,o,r=this.sectorInfos[t.index];r&&(i=a.color(r.color),e=n.makeChangedLuminanceColor(i.hex,f),o=this.selectionColor||e,r.sector.attr({fill:o}))},unselectSeries:function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},selectLegend:function(t){var e=o.isNull(t),i=this.legendLines;o.forEachArray(this.sectorInfos,function(n,o){var a=e||t===o?c:p;n.sector.attr({"fill-opacity":a}),i&&i[o].attr({"stroke-opacity":a})})},getRenderedLabelWidth:function(t,e){return n.getRenderedTextSize(t,e.fontSize,e.fontFamily).width},getRenderedLabelHeight:function(t,e){return n.getRenderedTextSize(t,e.fontSize,e.fontFamily).height},renderLabels:function(t,e,i,a){var r=t.set(),s={"font-size":a.fontSize,"font-family":a.fontFamily,"font-weight":a.fontWeight,"text-anchor":"middle",fill:a.color,opacity:0};return o.forEach(e,function(e,o){var a;e&&(a=n.renderText(t,e,i[o],s),a.node.style.userSelect="none",a.node.style.cursor="default",a.node.setAttribute("filter","url(#glow)")),r.push(a)}),this.labelSet=r,r}});t.exports=_},function(t,e,i){"use strict";var n=i(15),o=i(5),a=i(6),r=1,s=.3,h=a.defineClass(n,{init:function(){this.selectedLegendIndex=null,this.chartType="radial",this.lineWidth=2},render:function(t,e){var i=e.dimension,n=e.groupPositions,o=e.theme,a=o.colors,r=e.options.showDot?1:0,s=e.options.showArea,h=this._getLinesPath(n),l=this.makeBorderStyle(o.borderColor,r),u=this.makeOutDotStyle(r,l),c=t.set(),d=this.lineWidth=e.options.pointWidth?e.options.pointWidth:this.lineWidth;return this.paper=t,this.theme=e.theme,this.dimension=i,this.position=e.position,s&&(this.groupAreas=this._renderArea(t,h,a,c)),this.groupLines=this._renderLines(t,h,a,d,c),this.groupDots=this._renderDots(t,n,a,r,c),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=o.selectionColor),this.colors=a,this.borderStyle=l,this.outDotStyle=u,this.groupPositions=n,this.groupPaths=h,this.dotOpacity=r,c},_getLinesPath:function(t){var e=this;return a.map(t,function(t){return e._makeLinesPath(t)})},_renderLines:function(t,e,i,n,r){return a.map(e,function(e,a){var s=i[a]||"transparent",h=o.renderLine(t,e.join(" "),s,n);return r.push(h),h})},_renderArea:function(t,e,i,n){return a.map(e,function(e,a){var r=i[a]||"transparent",s=o.renderArea(t,e,{fill:r,opacity:.4,"stroke-width":0,stroke:r});return n.push(s),s})},resize:function(t){var e=this,i=t.dimension,n=t.groupPositions;this.groupPositions=n,this.groupPaths=this._getLinesPath(n),this.paper.setSize(i.width,i.height),a.forEachArray(this.groupPaths,function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupAreas[i].attr({path:t.join(" ")}),a.forEachArray(e.groupDots[i],function(t,o){e._moveDot(t.endDot.dot,n[i][o])})})},selectLegend:function(t){var e=this,i=a.isNull(t);this.selectedLegendIndex=t,a.forEachArray(this.groupLines,function(n,o){var h=i||t===o?r:s;n.attr({"stroke-opacity":h}),a.forEachArray(e.groupDots[o],function(t){t.opacity=h,e.dotOpacity&&t.endDot.dot.attr({"fill-opacity":h})})})}});t.exports=h},function(t,e,i){"use strict";var n=i(5),o=i(6),a=i(3),r=700,s=.5,h=.3,l=.5,u=.3,c=.2,d=2,p=20,f=o.defineClass({render:function(t,e,i){var n=t.set();return this.paper=t,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=i,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(n),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,n},_renderOverlay:function(){var t={left:0,top:0},e={fill:"none",stroke:"#fff","stroke-opacity":h,"stroke-width":2},i=n.renderCircle(this.paper,t,0,e);return i},_renderCircles:function(t){var e=this,i=this.theme.colors;return o.map(this.groupBounds,function(a,r){return o.map(a,function(o,a){var s,h,l=null;return o&&(s=i[a],h=n.renderCircle(e.paper,o,0,{fill:s,opacity:0,stroke:"none"}),t.push(h),h.data("groupIndex",r),h.data("index",a),l={circle:h,color:s,bound:o}),l})})},_animateCircle:function(t,e){t.animate({r:e,opacity:s},r,">")},animate:function(){var t=this;n.forEach2dArray(this.groupCircleInfos,function(e){e&&t._animateCircle(e.circle,e.bound.radius);
12
+ })},_updatePosition:function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},resize:function(t){var e=this,i=t.dimension,o=t.groupBounds;this.groupBounds=o,this.paper.setSize(i.width,i.height),n.forEach2dArray(this.groupCircleInfos,function(t,i,n){var a=o[i][n];t&&(t.bound=a,e._updatePosition(t.circle,a))})},findIndexes:function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={index:e.data("index"),groupIndex:e.data("groupIndex")}),i},_isChangedPosition:function(t,e){return!t||t.left!==e.left||t.top!==e.top},showAnimation:function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],i=e.bound;this.overlay.attr({cx:i.left,cy:i.top,r:i.radius+d,stroke:e.color,opacity:1})},hideAnimation:function(){this.overlay.attr({cx:0,cy:0,r:0,opacity:0})},_findCircle:function(t){for(var e,i,n=[],a=this.paper;o.isUndefined(e);)i=a.getElementByPoint(t.left,t.top),i?i.attrs.opacity>u?e=i:(n.push(i),i.hide()):e=null;return e||(e=n[0]),o.forEachArray(n,function(t){t.show()}),e},moveMouseOnSeries:function(t){var e,i,n,a=this._findCircle(t);a&&o.isExisty(a.data("groupIndex"))?(e=a.data("groupIndex"),i=a.data("index"),n=[{},e,i,{left:t.left-p,top:t.top-p}],this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,n),this.prevOverCircle=a)):this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null),this.prevPosition=t},selectSeries:function(t){var e=t.groupIndex,i=t.index,o=this.groupCircleInfos[e][i],r=a.color(o.color),s=this.theme.selectionColor,h=s||n.makeChangedLuminanceColor(r.hex,c);o.circle.attr({fill:h})},unselectSeries:function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i];n.circle.attr({fill:n.color})},selectLegend:function(t){var e=o.isNull(t);n.forEach2dArray(this.groupCircleInfos,function(i,n,o){var a;i&&(a=e||t===o?l:u,i.circle.attr({opacity:a}))})}});t.exports=f},function(t,e,i){"use strict";var n=i(5),o=i(6),a=100,r=1,s=3,h=o.defineClass({render:function(t,e){var i=t.set();return this.paper=t,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,i),i},_bindGetBoundFunction:function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},_bindGetColorFunction:function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this.zoomable?this._getColor=this._getColorFromColorsWhenZoomable:this._getColor=this._getColorFromColors},_getBoundFromGroupBounds:function(t){return this.groupBounds[t.groupIndex][t.index].end},_getBoundFromBoundMap:function(t){return this.boundMap[t.id]},_getColorFromSpectrum:function(t){var e;return e=t.hasChild?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},_getColorFromColors:function(t){return t.hasChild?"none":this.theme.colors[t.group]},_getColorFromColorsWhenZoomable:function(t,e){return t.depth===e?this.theme.colors[t.group]:"none"},_renderRect:function(t,e,i){return n.renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":i})},_getStrokeWidth:function(t,e){var i;return i=this.borderWidth?this.borderWidth:o.isExisty(t)?Math.max(r,s-(t-e)):r},_renderBoxes:function(t,e,i,n){var o,a=this;return o=this.colorSpectrum||!this.zoomable?function(t){t.toBack()}:function(){},t.map(function(t,i){return t.map(function(t,r){var s,h,l=null,u=a._getStrokeWidth(t.depth,e);return t.groupIndex=i,t.index=r,s=a._getBound(t),s&&(h=a._getColor(t,e),l={rect:a._renderRect(s,h,u),seriesItem:t,color:h},o(l.rect),n&&n.push(l.rect)),l})},i)},_animateChangingColor:function(t,e,i){var n={"fill-opacity":o.isExisty(i)?i:1};e&&(n.fill=e),t.animate(n,a,">")},showAnimation:function(t,e,i){var n,a=this.boxesSet[t.groupIndex][t.index];a&&(e=!!o.isUndefined(e)||e,n=e?this.theme.overColor:a.color,a.seriesItem.hasChild&&(e&&a.rect.attr({"fill-opacity":0}),a.rect.toFront()),this._animateChangingColor(a.rect,n,i))},hideAnimation:function(t,e){var i,n,o=this.colorSpectrum,r=this.boxesSet[t.groupIndex][t.index],s=1;r&&(n=r.rect.paper,r.seriesItem.hasChild?(i=null,e&&(s=0)):i=r.color,this._animateChangingColor(r.rect,i,s),setTimeout(function(){!o&&r.seriesItem.hasChild&&(r.rect.toBack(),n.pushDownBackgroundToBottom())},a))},resize:function(t){var e=this,i=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(i.width,i.height),n.forEach2dArray(this.boxesSet,function(t,i,o){var a;t&&(a=e._getBound(t.seriesItem,i,o),a&&n.updateRectBound(t.rect,a))})},renderSeriesLabel:function(t,e,i,a){var r=t.set(),s={"font-size":a.fontSize,"font-family":a.fontFamily,"font-weight":a.fontWeight,fill:a.color,opacity:0};return o.forEach(i,function(i,a){o.forEach(i,function(i,o){var h=n.renderText(t,e[a][o].end,i,s);h.node.style.userSelect="none",h.node.style.cursor="default",h.node.setAttribute("filter","url(#glow)"),r.push(h)})}),r},renderSeriesLabelForTreemap:function(t,e,i,a){var r=t.set(),s={"font-size":a.fontSize,"font-family":a.fontFamily,"font-weight":a.fontWeight,fill:a.color,opacity:0};return o.forEach(i,function(i,o){var a=n.renderText(t,e[o],i,s);a.node.style.userSelect="none",a.node.style.cursor="default",a.node.setAttribute("filter","url(#glow)"),r.push(a)}),r}});t.exports=h},function(t,e,i){"use strict";function n(t,e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.id=i,e.forEach(function(t){a.append(n,t.node)}),t.canvas.appendChild(n),n}var o=i(5),a=i(9),r=i(6),s=r.browser,h=s.msie&&s.version<=8,l="gray",u=100,c="tui-chart-series-group",d=r.defineClass({render:function(t,e){var i=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,i),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),h||(this.g=n(t,this.sectorSet,c)),this.overColor=e.theme.overColor},_getDimensionRatio:function(t,e){return Math.min(t.height/e.height,t.width/e.width)},_renderMap:function(t,e){var i=this.sectorSet,n=t.layout.position,a=this.paper,s=t.colorSpectrum;return r.map(t.mapModel.getMapData(),function(t,r){var h=t.ratio||0,u=s.getColor(h),c=o.renderArea(a,t.path,{fill:u,opacity:1,stroke:l,"stroke-opacity":1,transform:"s"+e+","+e+",0,0t"+n.left/e+","+n.top/e});return c.data("index",r),i.push(c),{sector:c,color:u,ratio:t.ratio}})},findSectorIndex:function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=e&&e.data("index"),n=!r.isUndefined(i)&&this.sectors[i];return n&&!r.isUndefined(n.ratio)?i:null},changeColor:function(t){var e=this.sectors[t];e.sector.animate({fill:this.overColor},u,">")},restoreColor:function(t){var e=this.sectors[t];e.sector.animate({fill:e.color},u,">")},scaleMapPaths:function(t,e,i,n,o){var a,r,s=this.g.transform.baseVal,h=this.paper.canvas.createSVGTransform(),l=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),c=s.numberOfItems?s.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},d=o.width-this.dimension.width,p=o.height-this.dimension.height,f=c.e/c.a,m=c.f/c.d,g=-d/c.a,_=-p/c.d;u.scale(t,t,e.left*i-f*t,e.top*i-m*t),a=u.e/u.a+f,r=u.f/u.d+m,a>=0?u.e=-f*u.a:a<g&&(u.e=g-f),r>=0?u.f=-m*u.a:r<_&&(u.f=_-m),l.a=u.a,l.b=u.b,l.c=u.c,l.d=u.d,l.e=u.e,l.f=u.f,h.setMatrix(l),s.appendItem(h),s.initialize(s.consolidate())},moveMapPaths:function(t,e){var i,n,o,a,r=this.paper.canvas.createSVGMatrix(),s=this.paper.raphael.matrix(),h=this.g.transform.baseVal,l=this.paper.canvas.createSVGTransform(),u=e.width-this.dimension.width,c=e.height-this.dimension.height,d=h.numberOfItems?h.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0};s.translate(t.x,t.y),o=s.e/s.a,a=s.f/s.d,i=o+d.e/d.a,n=a+d.f/d.d,i>=0&&o>0?s.e=0:i<0&&i<-u/d.a&&o<0&&(s.e=0),n>=0&&a>0?s.f=0:n<0&&n<-c/d.d&&a<0&&(s.f=0),r.a=s.a,r.b=s.b,r.c=s.c,r.d=s.d,r.e=s.e,r.f=s.f,l.setMatrix(r),h.appendItem(l),h.initialize(h.consolidate())},renderSeriesLabels:function(t,e,i){var n={"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color,"text-anchor":"middle",opacity:0,transform:"s"+this.ratio+","+this.ratio+",0,0t"+this.position.left/this.ratio+","+this.position.top/this.ratio},a=t.set(),s=this;return r.forEach(e,function(e){var i=e.labelPosition,r=o.renderText(t,i,e.name||e.code,n);a.push(r),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("filter","url(#glow)"),h||s.g.appendChild(r.node)}),a}});t.exports=d},function(t,e,i){"use strict";function n(){return a.LEGEND_ICON_WIDTH+a.LEGEND_LABEL_LEFT_PADDING}var o,a=i(8),r=i(5),s=i(10),h=i(6),l=.5;o=h.defineClass({init:function(){this._checkBoxWidth=0,this._checkBoxHeight=0,this._iconHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0},_renderLegendItems:function(t){var e=this,i=a.LEGEND_LABEL_LEFT_PADDING,n=h.extend({},this.basePosition);h.forEach(t,function(t,o){var r=t.iconType,s=t.index,h=t.colorByPoint?"#aaa":t.theme.color,l=t.isUnselected,u=t.labelHeight,c=t.checkbox,d=n.left+e._calculateSingleLegendWidth(s,r),p=d>=e.paper.width;e.isHorizontal&&p&&(n.top+=e._legendItemHeight+a.LABEL_PADDING_TOP,n.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(n,{isChecked:c.checked,legendIndex:s,legendSet:e.legendSet}),n.left+=e._checkBoxWidth+i),e._renderIcon(n,{legendColor:h,iconType:r,labelHeight:u,isUnselected:l,legendIndex:s,legendSet:e.legendSet}),n.left+=a.LEGEND_ICON_WIDTH+i,e._renderLabel(n,{labelText:t.label,labelHeight:u,isUnselected:l,legendIndex:s,legendSet:e.legendSet}),e.isHorizontal?n.left+=e.labelWidths[o]+i:(n.left=e.basePosition.left,n.top+=e._legendItemHeight+a.LINE_MARGIN_TOP)})},_getLegendData:function(t,e){var i,n,o,r=this.basePosition.top,s=this.dimension.height,h=this.paper.height,l=t;return!this.isHorizontal&&s+2*r>h&&(i=h-2*r,this._legendItemHeight=Math.max(t[0].labelHeight,a.LEGEND_ICON_HEIGHT),n=this._legendItemHeight+a.LINE_MARGIN_TOP,o=Math.floor(i/n),l=t.slice((e-1)*o,e*o)),l},render:function(t){var e,i;return this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData,this.originalLegendData.length&&(this._showCheckbox=h.isExisty(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight),t.dimension.width=this._calculateLegendWidth(t.legendData[0].labelHeight),e=this._getLegendData(t.legendData,this._currentPageCount),this._renderLegendItems(e),!this.isHorizontal&&e&&e.length<t.legendData.length&&(i=this.paper.height-2*this.basePosition.top,this.availablePageCount=Math.ceil(t.dimension.height/i),this._renderPaginationArea(this.basePosition,{width:t.dimension.width,height:i}))),this.legendSet},_paginateLegendAreaTo:function(t){var e=this._currentPageCount;this._removeLegendItems(),"next"===t?e+=1:e-=1,this._renderLegendItems(this._getLegendData(this.originalLegendData,e))},_removeLegendItems:function(){this.legendSet.forEach(function(t){h.forEach(t.events,function(t){t.unbind()}),t.remove()})},_renderPaginationArea:function(t,e){var i=this,n=10,o=5,s=t.top+e.height-a.CHART_PADDING,h=t.left-a.CHART_PADDING,l=h+e.width-n,u=l-(o+n),c=["M",l,",",s+3,"L",l+5,",",s+8,"L",l+10,",",s+3].join(""),d=["M",u,",",s+8,"L",u+5,",",s+3,"L",u+10,",",s+8].join("");this.upperButton=r.renderLine(this.paper,d,"#555",3),this.lowerButton=r.renderLine(this.paper,c,"#555",3),this.upperButton.click(function(){i._currentPageCount>1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),this.lowerButton.click(function(){i._currentPageCount<i.availablePageCount&&(i._paginateLegendAreaTo("next"),i._currentPageCount+=1)})},makeLabelWidths:function(t,e,i){return h.map(t,function(t){var n=r.getRenderedTextSize(t.label,e.fontSize,e.fontFamily).width;return i&&n>i&&(n=i),n+a.LEGEND_AREA_PADDING})},getRenderedLabelHeight:function(t,e){return r.getRenderedTextSize(t,e.fontSize,e.fontFamily).height},_renderLabel:function(t,e){var i=this.eventBus,n=this.labelTheme,o={left:t.left,top:t.top+this._iconHeight/2},a={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,opacity:e.isUnselected?l:1,"text-anchor":"start"},s=r.renderText(this.paper,o,e.labelText,a);s.data("index",e.legendIndex),s.node.style.userSelect="none",s.node.style.cursor="pointer",e.legendSet.push(s),s.click(function(){i.fire("labelClicked",e.legendIndex)})},_renderCheckbox:function(t,e){var i,n=this,o=t.left,a=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,r="M"+(.3*this._checkBoxWidth+o)+","+(.5*this._checkBoxHeight+a)+"L"+(.5*this._checkBoxWidth+o)+","+(.7*this._checkBoxHeight+a)+"L"+(.8*this._checkBoxWidth+o)+","+(.2*this._checkBoxHeight+a);i=this.paper.set(),i.push(this.paper.rect(o,a,this._checkBoxWidth,this._checkBoxHeight,2).attr({fill:"#fff"})),e.isChecked&&i.push(this.paper.path(r)),i.data("index",e.legendIndex),i.click(function(){n.eventBus.fire("checkboxClicked",e.legendIndex)}),i.forEach(function(t){e.legendSet.push(t)})},_renderIcon:function(t,e){var i,n,o=this;this.paper.setStart(),"line"===e.iconType?(n="M"+t.left+","+(t.top+this._legendItemHeight/2)+"H"+(t.left+a.LEGEND_ICON_WIDTH),i=r.renderLine(this.paper,n,e.legendColor,3),i.attr("stroke-opacity",e.isUnselected?l:1)):i=r.renderRect(this.paper,{left:t.left,top:t.top,width:a.LEGEND_ICON_WIDTH,height:this._iconHeight},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?l:1}),i.data("icon",e.iconType),i.data("index",e.legendIndex),i.click(function(){o.eventBus.fire("labelClicked",e.legendIndex)}),e.legendSet.push(i)},selectLegend:function(t,e){e.forEach(function(e){var i=e.data("index"),n="line"===e.data("icon")?"stroke-opacity":"opacity";h.isNull(i)||h.isUndefined(i)?e.attr(n,1):h.isUndefined(i)||(h.isNumber(t)&&i!==t?e.attr(n,l):e.attr(n,1))})},_getCheckboxWidth:function(){return this._showCheckbox?this._checkBoxWidth+a.LEGEND_LABEL_LEFT_PADDING:0},_getLabelWidth:function(t){var e;return e=t?this.labelWidths[t]||0:s.max(this.labelWidths),e+a.LEGEND_LABEL_LEFT_PADDING},_calculateLegendWidth:function(){return this._calculateSingleLegendWidth()},_calculateSingleLegendWidth:function(t){return a.LEGEND_AREA_PADDING+this._getCheckboxWidth()+n()+this._getLabelWidth(t)+a.LEGEND_AREA_PADDING},_setComponentDimensionsBaseOnLabelHeight:function(t){this._legendItemHeight=Math.max(t,a.LEGEND_ICON_HEIGHT),this._iconHeight=this._legendItemHeight,this._checkBoxWidth=this._checkBoxHeight=t}}),t.exports=o},function(t,e,i){"use strict";var n=i(5),o=i(8),a=i(6),r=o.LEGEND_AREA_PADDING,s=360,h=270,l=35,u=15,c=3,d=a.defineClass({render:function(t,e,i,n,o){var a;e.position.left+=2*r,e.position.top+=r,a=this._renderGradientBar(t,e,i,n),o.push(a),this.wedge=this._renderWedge(t,e.position),o.push(this.wedge),this.gradientBar=a},renderTicksAndLabels:function(t,e,i,o,r){a.forEach(i,function(i,s){var h=e.step*s,c=a.extend({},e.position),d="M";o?(c.left+=h,d+=c.left+","+(c.top-l)+"V"+(c.top-l+u)):(c.top+=h,d+=c.left-l+","+c.top+"H"+(c.left-l+u)),r.push(n.renderLine(t,d,"#ccc",1)),r.push(n.renderText(t,c,i))})},_renderGradientBar:function(t,e,i,o){var a,l,u=e.dimension.height,c=e.position.left;return o?(u-=r,a=s,this._makeWedghPath=this._makeHorizontalWedgePath):(a=h,this._makeWedghPath=this._makeVerticalWedgePath),l={left:c,top:e.position.top,width:e.dimension.width-r,height:u},n.renderRect(t,l,{fill:a+"-"+i.start+"-"+i.end,stroke:"none"})},_renderWedge:function(t,e){return t.path(this.verticalBasePath).attr({fill:"gray",stroke:"none",opacity:0,transform:"t"+e.left+","+e.top})},verticalBasePath:["M",16,6,"L",24,3,"L",24,9],_makeVerticalWedgePath:function(t){var e=this.verticalBasePath;return e[2]=t,e[5]=t-c,e[8]=t+c,e},horizontalBasePath:["M",5,16,"L",8,24,"L",2,24],_makeHorizontalWedgePath:function(t){var e=this.horizontalBasePath;return e[1]=t,e[4]=t+c,e[7]=t-c,e},showWedge:function(t){var e=this._makeWedghPath(t);this.wedge.attr({path:e,opacity:1})},hideWedge:function(){this.wedge.attr({opacity:0})},removeLocationURLFromFillAttribute:function(){var t=this.gradientBar,e=t.node.getAttribute("fill");this.locationURL=/url\('?([^#]+)#[^#]+'?\)/.exec(e)[1],t.node.setAttribute("fill",e.replace(this.locationURL,""))},restoreLocationURLToFillAttribute:function(){var t=this.gradientBar,e=t.node.getAttribute("fill");t.node.setAttribute("fill",e.replace("#",this.locationURL+"#"))}});t.exports=d},function(t,e,i){"use strict";var n=i(5),o=i(6),a=o.defineClass({render:function(t,e,i,a,r){var s=e.position.left+e.dimension.width/2,h=t.set();return o.forEachArray(a,function(o,a){var l=i*o,u=e.position.top+e.dimension.height-l,c=n.renderCircle(t,{left:s,top:u},l,{fill:"none",opacity:1,stroke:"#888","stroke-width":1});h.push(c),h.push(n.renderText(t,{left:s,top:u-l-5},r[a]))}),h}});t.exports=a},function(t,e,i){"use strict";var n=i(5),o=i(8),a=i(6),r=a.defineClass({render:function(t,e,i,a){var r=a.fontSize,s=a.fontFamily,h=n.getRenderedTextSize(e,r,s),l={left:t.width/2,top:(h.height+o.TITLE_PADDING)/2},u=t.set();return i&&(i.x?l.left+=i.x:i.y&&(l.top+=i.y)),u.push(n.renderText(t,l,e,{"font-family":a.fontFamily,"font-size":a.fontSize,"font-weight":a.fontWeight,fill:a.color,"text-anchor":"middle"})),u},resize:function(t,e){e.attr({x:t/2})}});t.exports=r},function(t,e,i){"use strict";function n(t,e){var i=h.getRenderedTextSize(t,e.fontSize,e.fontFamily);return i.height}function o(t){return!u.isExisty(t.rotateTitle)||t.rotateTitle===!0}function a(t,e,i){var n=t?e.height:e.width,o=t?i.top:i.left;return n/2+o}function r(t,e){e&&(e.x&&(t.left+=e.x),e.y&&(t.top+=e.y))}function s(t,e){var i="none";return t.isPositionRight?i="r90,"+e.left+","+e.top:t.isVertical&&o(t)&&(i="r-90,"+e.left+","+e.top),i}var h=i(5),l=4,u=i(6),c=u.defineClass({init:function(){this.ticks=[]},renderBackground:function(t,e,i,n){var o=n&&n.background||{},a=o.color||"#fff",r=o.opacity||1;return h.renderRect(t,{left:0,top:e.top,width:i.width+e.left-l,height:i.height},{fill:a,opacity:r,"stroke-width":0})},renderTitle:function(t,e){var i,n=e.theme,o={"dominant-baseline":"auto","font-family":n.fontFamily,"font-size":n.fontSize,"font-weight":n.fontWeight,fill:n.color,"text-anchor":"middle"},a=this.calculatePosition(t,e);o.transform=s(e.rotationInfo,a),i=h.renderText(t,a,e.text,o),i.node.style.userSelect="none",i.node.style.cursor="default",e.set.push(i)},renderLabel:function(t){var e,i=t.positionTopAndLeft,n=t.labelText,o=t.paper,a=t.isVertical,r=t.isPositionRight,s=t.theme,l={"dominant-baseline":"central","font-family":s.fontFamily,"font-size":s.fontSize,"font-weight":s.fontWeight,fill:s.color};r?l["text-anchor"]="start":a?l["text-anchor"]="end":l["text-anchor"]="middle",e=h.renderText(o,i,n,l),e.node.style.userSelect="none",e.node.style.cursor="default",t.set.push(e),this.ticks.push(e)},renderRotatedLabel:function(t){var e=t.positionTopAndLeft,i=t.labelText,n=t.paper,o=t.theme,a=h.renderText(n,e,i,{"dominant-baseline":"central","font-family":o.fontFamily,"font-size":o.fontSize,"font-weight":o.fontWeight,fill:o.color,"text-anchor":"end",transform:"r"+-t.degree+","+(e.left+20)+","+e.top});a.node.style.userSelect="none",a.node.style.cursor="arrow",t.set.push(a),this.ticks.push(a)},renderTicks:function(t){var e,i=this,n=t.paper,o=t.positions,a=t.additionalSize,r=t.isVertical,s=t.isCenter,h=t.isPositionRight,l=t.tickColor,c=t.layout,d=c.position.left+c.dimension.width,p=c.position.top,f=c.position.left,m=function(t){var e=r?"height":"width";return t>c.dimension[e]};u.forEach(o,function(o){var u="M";o+=a,m(o)||(r?s?(u+=f+","+(p+o),u+="H"+(f+5),u+="M"+d+","+(p+o),u+="H"+(d-5)):h?(u+=f+","+(p+o),u+="H"+(f+5)):(u+=d+","+(p+o),u+="H"+(d-5)):(u+=f+o+","+p,u+="V"+(p+5)),isNaN(o)||(e=n.path(u).attr({stroke:l}),t.set.push(e),i.ticks.push(e)))})},renderTickLine:function(t){var e,i,n,o=t.areaSize,a=o,r=t.paper,s=t.layout,h=t.isNotDividedXAxis,l=t.additionalSize,u=t.isPositionRight,c=t.isCenter,d=t.isVertical,p=t.tickColor,f="M",m=s.position.top,g=s.position.left,_=s.dimension.height+m,T=g+s.dimension.width;u?(f+=g+","+m,f+="V"+_):d?(e=m,f+=T+","+e,c?(f+="V"+_,f+="M"+g+","+e,f+="V"+_):(n=m+a,f+="V"+n)):(f+=h?g:g+l,f+=","+m+"H",i=g+a,h||(i+=l),f+=i),t.set.push(r.path(f).attr({"stroke-width":1,stroke:p}))},animateForAddingData:function(t){u.forEach(this.ticks,function(e){e.animate({transform:"t-"+t+",0"},300)})},calculatePosition:function(t,e){var i=e.rotationInfo,o=n(e.text,e.theme),s=e.layout,h=a(i.isVertical,s.dimension,s.position),l={};return i.isCenter?(l.top=t.height-o/2,l.left=s.position.left+s.dimension.width/2):i.isPositionRight?(l.top=h,l.left=s.position.left+s.dimension.width):i.isVertical?(l.top=h,l.left=s.position.left+o/2):(l.top=s.position.top+s.dimension.height,l.left=h),i.isCenter||r(l,e.offset),l}});t.exports=c},function(t,e,i){"use strict";var n=i(5),o=i(10),a=i(6),r=8,s=3,h=a.defineClass({render:function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},_renderPlot:function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCatergoryLines(t)},_renderSpiderwebPlot:function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},_renderCirclePlot:function(t){var e,i,o,a=this.plotPositions,r=a[0][0],s=this.theme.lineColor;for(e=1;e<a.length;e+=1)i=a[e][0],o=r.top-i.top,t.push(n.renderCircle(this.paper,r,o,{stroke:s}))},_renderCatergoryLines:function(t){var e=this._getLinesPath(o.pivot(this.plotPositions));this._renderLines(e,this.theme.lineColor,t)},_renderLabels:function(t){var e=this.paper,i=this.theme,o=this.labelData,h={fill:i.lineColor,"font-size":i.label.fontSize,"font-family":i.label.fontFamily,"text-anchor":"end","font-weight":"100","dominant-baseline":"middle"};a.forEachArray(o.category,function(i){var o=a.extend({},h,{"text-anchor":i.position.anchor}),r=n.renderText(e,i.position,i.text,o);r.node.style.userSelect="none",r.node.style.cursor="default",t.push(r)}),a.forEachArray(o.step,function(i){var o=n.renderText(e,i.position,i.text,h);i.position.top-=r,i.position.left-=s,o.node.style.userSelect="none",o.node.style.cursor="default",t.push(o)})},_renderLines:function(t,e,i){var o=this.paper;return a.map(t,function(t){var a=n.renderLine(o,t.join(" "),e,1);return i.push(a),a})},_getLinesPath:function(t){var e=this;return a.map(t,function(t){return e._makeLinesPath(t)})},_makeLinesPath:function(t,e,i){var n=[],o=!1;return e=e||"top",a.map(t,function(t){var a=o&&!i?"M":"L";t?(n.push([a,t.left,t[e]]),o&&(o=!1)):o=!0}),n=Array.prototype.concat.apply([],n),n[0]="M",n}});t.exports=h},function(t,e,i){"use strict";function n(t,e,i,n){var o,a,r;return e||(e={}),e.table&&(e=S.makeDataWithTable(e.table)),e.series||(e.series=[]),e=L.deepCopy(e),"combo"!==n&&(r=e.series,e.series={},e.series[n]=r),i=i?L.deepCopy(i):{},i.chartType=n,i.theme=i.theme||x.DEFAULT_THEME_NAME,o=E.get(i.theme,n,e.series),a=A.get(i.chartType,e,o,i),a.render(t),a.animateChart(),a}function o(t,e,i){return n(t,e,i,x.CHART_TYPE_BAR)}function a(t,e,i){return n(t,e,i,x.CHART_TYPE_COLUMN)}function r(t,e,i){return n(t,e,i,x.CHART_TYPE_LINE)}function s(t,e,i){return n(t,e,i,x.CHART_TYPE_AREA)}function h(t,e,i){return n(t,e,i,x.CHART_TYPE_BUBBLE)}function l(t,e,i){return n(t,e,i,x.CHART_TYPE_SCATTER)}function u(t,e,i){return n(t,e,i,x.CHART_TYPE_HEATMAP)}function c(t,e,i){return n(t,e,i,x.CHART_TYPE_TREEMAP)}function d(t,e,i){return n(t,e,i,x.CHART_TYPE_COMBO)}function p(t,e,i){return n(t,e,i,x.CHART_TYPE_PIE)}function f(t,e,i){return n(t,e,i,x.CHART_TYPE_MAP)}function m(t,e,i){return n(t,e,i,x.CHART_TYPE_RADIAL)}function g(t,e,i){return n(t,e,i,x.CHART_TYPE_BOXPLOT)}function _(t,e,i){return n(t,e,i,x.CHART_TYPE_BULLET)}function T(t,e){E.register(t,e)}function v(t,e){C.register(t,e)}function y(t,e,i){D.register(t,e),M.addRendererType(t,i)}var x=i(8),A=i(30),D=i(32),E=i(33),C=i(35),L=i(36),S=i(37),M=i(38);i(39),i(40),i(146),t.exports={barChart:o,columnChart:a,lineChart:r,areaChart:s,bubbleChart:h,scatterChart:l,heatmapChart:u,treemapChart:c,comboChart:d,pieChart:p,mapChart:f,radialChart:m,boxplotChart:g,bulletChart:_,registerTheme:T,registerMap:v,registerPlugin:y}},function(t,e,i){"use strict";var n=i(8),o=i(31),a=i(11),r={},s={_findKey:function(t,e){var i,r=null;return a.isComboChart(t)?(i=o.getChartTypeMap(e),i[n.CHART_TYPE_COLUMN]&&i[n.CHART_TYPE_LINE]?r=n.CHART_TYPE_COLUMN_LINE_COMBO:i[n.CHART_TYPE_LINE]&&i[n.CHART_TYPE_SCATTER]?r=n.CHART_TYPE_LINE_SCATTER_COMBO:i[n.CHART_TYPE_AREA]&&i[n.CHART_TYPE_LINE]?r=n.CHART_TYPE_LINE_AREA_COMBO:i[n.CHART_TYPE_PIE]&&(r=n.CHART_TYPE_PIE_DONUT_COMBO)):r=t,r},get:function(t,e,i,n){var o,a=this._findKey(t,e),s=r[a];if(!s)throw new Error("Not exist "+t+" chart.");return o=new s(e,i,n)},register:function(t,e){r[t]=e}};t.exports=s},function(t,e,i){"use strict";var n=i(8),o=i(11),a=i(10),r=i(6),s={pickStacks:function(t,e){var i,o,s;return i=r.map(t,function(t){return t.stack}),o=a.unique(i),e&&(o=o.slice(0,2)),s=r.filter(o,function(t){return!!t}),s.length<o.length&&s.push(n.DEFAULT_STACK),s},_sortSeriesData:function(t,e){var i=[];return e||(e=this.pickStacks(t)),r.forEachArray(e,function(e){var o=r.filter(t,function(t){return(t.stack||n.DEFAULT_STACK)===e});i=i.concat(o)}),i},removeSeriesStack:function(t){r.forEachArray(t,function(t){delete t.stack})},findChartType:function(t,e){var i;return t&&(i=t[e]),i||e},getChartTypeMap:function(t){var e=this,i={};return r.isObject(t.series)&&r.forEach(t.series,function(n,o){i[e.findChartType(t.seriesAlias,o)]=!0}),i},_createMinusValues:function(t){return r.map(t,function(t){return t<0?0:-t})},_createPlusValues:function(t){return r.map(t,function(t){return t<0?0:t})},_makeNormalDivergingRawSeriesData:function(t){return t.length=Math.min(t.length,2),t[0].data=this._createMinusValues(t[0].data),t[1]&&(t[1].data=this._createPlusValues(t[1].data)),t},_makeRawSeriesDataForStackedDiverging:function(t){var e=this,i=this.pickStacks(t,!0),o=[],a=i[0],s=i[1];return t=this._sortSeriesData(t,i),r.forEachArray(t,function(t){var i=t.stack||n.DEFAULT_STACK;i===a?(t.data=e._createMinusValues(t.data),o.push(t)):i===s&&(t.data=e._createPlusValues(t.data),o.push(t))}),o},_makeRawSeriesDataForDiverging:function(t,e){return t=o.isValidStackOption(e)?this._makeRawSeriesDataForStackedDiverging(t):this._makeNormalDivergingRawSeriesData(t)},updateRawSeriesDataByOptions:function(t,e){var i=this;e=e||{},o.isValidStackOption(e.stackType)&&r.forEach(t.series,function(e,n){t.series[n]=i._sortSeriesData(t.series[n])}),e.diverging&&r.forEach(t.series,function(n,o){t.series[o]=i._makeRawSeriesDataForDiverging(n,e.stackType)})},appendOutliersToSeriesData:function(t){var e=t.series.boxplot;r.forEach(e,function(t){var e=t.outliers;e&&e.length&&r.forEach(e,function(e){t.data[e[0]].push(e[1])})})},filterCheckedRawData:function(t,e){var i,n=JSON.parse(JSON.stringify(t));return e&&r.forEach(n.series,function(t,i){e[i]?e[i].length&&(n.series[i]=r.filter(t,function(t,n){return e[i][n]})):n.series[i]=[]}),n.series.bullet&&(i=[],r.forEach(e.bullet,function(e,n){e&&i.push(t.categories[n])}),n.categories=i),n},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet;t.categories=t.categories||[],t.categories=r.map(e,function(t){return t.name||""})}};t.exports=s},function(t,e,i){"use strict";var n=i(8),o={},a={get:function(t,e){var i,a,r=o[t||n.DEFAULT_PLUGIN];if(!r)throw new Error("Not exist "+t+" plugin.");if(i=r[e],!i)throw new Error("Not exist "+e+" chart renderer.");return a=new i},register:function(t,e){o[t]=e}};t.exports=a},function(t,e,i){"use strict";var n=i(8),o=i(11),a=i(34),r=i(6),s={};t.exports={register:function(t,e){e=JSON.parse(JSON.stringify(e)),s[t]=e},_pickSeriesNames:function(t,e){var i=[];return o.isComboChart(t)?r.forEach(e,function(t,e){i.push(e)}):i.push(t),i},_overwriteTheme:function(t,e){var i=this;r.forEach(e,function(n,o){var a=t[o];(a||0===a)&&(r.isArray(a)?e[o]=a.slice():r.isObject(a)?i._overwriteTheme(a,n):e[o]=a)})},_pickValidTheme:function(t,e){var i={};return r.forEachArray(n.THEME_PROPS_MAP[e],function(e){r.isExisty(t[e])&&(i[e]=t[e])}),i},_createComponentThemeWithSeriesName:function(t,e,i,n){var o=this,s={};return e=e||{},r.forEachArray(t,function(t){var h=e[t]||o._pickValidTheme(e,n);r.keys(h).length?(s[t]=JSON.parse(JSON.stringify(a[n])),o._overwriteTheme(h,s[t])):s[t]=JSON.parse(JSON.stringify(i))}),s},_makeEachSeriesColors:function(t,e,i){var n,o=[],a=t.length,r=i||0;for(n=0;n<e;n+=1)o.push(t[r]),r+=1,r>=a&&(r=0);return o},_setSeriesColors:function(t,e,i,n){var o,s,h,l=0;i=i||{},r.forEachArray(t,function(t){i[t]?(o=i[t].colors,h=!0):(o=i.colors||a.series.colors,h=!1),s=this._getSeriesThemeColorCount(n[t]),e[t].colors=this._makeEachSeriesColors(o,s,!h&&l),h||(l=(s+l)%o.length)},this)},_getSeriesThemeColorCount:function(t){var e=0;return t&&t.length&&(e=t.colorLength?t.colorLength:t[0]&&t[0].data&&t[0].data.length?Math.max(t.length,t[0].data.length):t.length),e},_initTheme:function(t,e,i,o){var r;return t!==n.DEFAULT_THEME_NAME?(r=JSON.parse(JSON.stringify(a)),this._overwriteTheme(e,r)):r=JSON.parse(JSON.stringify(e)),r.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,r.yAxis,"yAxis"),r.series=this._createComponentThemeWithSeriesName(i,e.series,r.series,"series"),this._setSeriesColors(i,r.series,e.series,o),r},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label];return r.forEach(t.yAxis,function(t){e.push(t.title,t.label)}),r.forEach(t.series,function(t){e.push(t.label)}),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),i=t.chart.fontFamily;r.forEachArray(e,function(t){t.fontFamily||(t.fontFamily=i)})},_copySeriesColorTheme:function(t,e,i){e[i]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;r.forEach(t.series,function(i,n){e._copySeriesColorTheme(i,t.legend,n),e._copySeriesColorTheme(i,t.tooltip,n)})},get:function(t,e,i){var n,o,a=s[t];if(!a)throw new Error("Not exist "+t+" theme.");return o=this._pickSeriesNames(e,i),n=this._initTheme(t,a,o,i),this._inheritThemeFont(n,o),this._copySeriesColorThemeToOther(n),n}}},function(t,e){"use strict";var i="#000000",n="#ffffff",o="normal",a="",r={tickColor:i,title:{fontSize:12,fontFamily:a,color:i,fontWeight:o},label:{fontSize:12,fontFamily:a,color:i,fontWeight:o}},s={chart:{background:{color:n,opacity:1},fontFamily:"Verdana"},title:{fontSize:18,fontFamily:a,color:i,fontWeight:o},yAxis:r,xAxis:r,plot:{lineColor:"#dddddd",background:"#ffffff",label:{fontSize:11,fontFamily:a,color:"#888"}},series:{label:{fontSize:11,fontFamily:a,color:i,fontWeight:o},colors:["#ac4142","#d28445","#f4bf75","#90a959","#75b5aa","#6a9fb5","#aa759f","#8f5536"],borderColor:a,borderWidth:a,selectionColor:a,startColor:"#F4F4F4",endColor:"#345391",overColor:"#F0C952",dot:{fillColor:a,fillOpacity:1,strokeColor:a,strokeOpacity:1,strokeWidth:2,radius:2,hover:{fillColor:a,fillOpacity:1,strokeColor:a,strokeOpacity:.8,strokeWidth:3,radius:4}},ranges:[]},legend:{label:{fontSize:12,fontFamily:a,color:i,fontWeight:o}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}};t.exports=s},function(t,e){"use strict";var i={};t.exports={get:function(t){var e=i[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){i[t]=e}}},function(t,e,i){"use strict";var n=i(6),o=function(t){var e;return n.isArray(t)?(e=[],n.forEachArray(t,function(t,i){e[i]=o(t)})):n.isFunction(t)||n.isDate(t)?e=t:n.isObject(t)?(e={},n.forEach(t,function(t,i){e[i]=o(t);
13
+ })):e=t,e},a={deepCopy:o};t.exports=a},function(t,e,i){"use strict";function n(t){var e;return t.length>0&&(e={},e.categories=[],e.series=[],e.categories=t.shift().slice(1),s.forEach(t,function(t){var i={};i.name=t[0],i.data=t.slice(1),e.series.push(i)})),e}function o(t){var e=[],i=[],n=[];return t&&(e=s.toArray(t.getElementsByTagName("TR")),s.forEach(e,function(t,e){var n=0===e?"TH":"TD",o=s.toArray(t.getElementsByTagName(n)),a=s.pluck(o,"innerText");i.push(a)}),i[0].length<i[1].length&&i[0].unshift(""),n=r.pivot(i)),n}function a(t){var e,i;return t.element&&"TABLE"===t.element.tagName?e=t.element:t.elementId&&(e=document.getElementById(t.elementId)),i=n(o(e))}var r=i(10),s=i(6);t.exports={makeDataWithTable:a}},function(t,e,i){"use strict";var n=i(9),o=i(6),a={DOM:function(t){var e=n.create("DIV");return n.append(t,e),e}},r=o.defineClass({initDimension:function(t){this.dimension=t},getPaper:function(t,e){var i=this[e+"Paper"],r=o.isExisty(t)&&i&&n.findParentByClass(i.canvas,"tui-chart")!==t;return i&&!r||(i=a[e].call(this,t,this.dimension),"DOM"!==e&&(this[e+"Paper"]=i)),i}});r.addRendererType=function(t,e){a[t]=e},t.exports=r},function(module,exports){window.JSON||(window.JSON={parse:function(sJSON){return eval("("+sJSON+")")},stringify:function(){var t=Object.prototype.toString,e=Array.isArray||function(e){return"[object Array]"===t.call(e)},i={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},n=function(t){return i[t]||"\\u"+(t.charCodeAt(0)+65536).toString(16).substr(1)},o=/[\\"\u0000-\u001F\u2028\u2029]/g;return function a(i){if(null==i)return"null";if("number"==typeof i)return isFinite(i)?i.toString():"null";if("boolean"==typeof i)return i.toString();if("object"==typeof i){if("function"==typeof i.toJSON)return a(i.toJSON());if(e(i)){for(var r="[",s=0;s<i.length;s++)r+=(s?", ":"")+a(i[s]);return r+"]"}if("[object Object]"===t.call(i)){var h=[];for(var l in i)i.hasOwnProperty(l)&&h.push(a(l)+": "+a(i[l]));return"{"+h.join(", ")+"}"}}return'"'+i.toString().replace(o,n)+'"'}}()}),"function"!=typeof Object.create&&(Object.create=function(t){var e=function(){};return function(i,n){if(i!==Object(i)&&null!==i)throw TypeError("Argument must be an object, or null");e.prototype=i||{},n!==t&&Object.defineProperties(e.prototype,n);var o=new e;return e.prototype=null,null===i&&(o.__proto__=null),o}}()),function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i<e.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[e[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[i]+"CancelAnimationFrame"]||window[e[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var i=(new Date).getTime(),n=Math.max(0,16-(i-t)),o=window.setTimeout(function(){e(i+n)},n);return t=i+n,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}()},function(t,e,i){"use strict";var n=i(8),o=i(30),a=i(41),r=i(124),s=i(125),h=i(127),l=i(128),u=i(130),c=i(131),d=i(132),p=i(133),f=i(134),m=i(135),g=i(136),_=i(139),T=i(140),v=i(143),y=i(144),x=i(145);o.register(n.CHART_TYPE_BAR,a),o.register(n.CHART_TYPE_COLUMN,r),o.register(n.CHART_TYPE_LINE,s),o.register(n.CHART_TYPE_AREA,h),o.register(n.CHART_TYPE_COLUMN_LINE_COMBO,l),o.register(n.CHART_TYPE_LINE_SCATTER_COMBO,u),o.register(n.CHART_TYPE_LINE_AREA_COMBO,c),o.register(n.CHART_TYPE_PIE_DONUT_COMBO,d),o.register(n.CHART_TYPE_PIE,p),o.register(n.CHART_TYPE_BUBBLE,f),o.register(n.CHART_TYPE_SCATTER,m),o.register(n.CHART_TYPE_HEATMAP,g),o.register(n.CHART_TYPE_TREEMAP,_),o.register(n.CHART_TYPE_MAP,T),o.register(n.CHART_TYPE_RADIAL,v),o.register(n.CHART_TYPE_BOXPLOT,y),o.register(n.CHART_TYPE_BULLET,x)},function(t,e,i){"use strict";var n=i(42),o=i(8),a=i(31),r=i(11),s=i(6),h=s.defineClass(n,{className:"tui-bar-chart",init:function(t,e,i){a.updateRawSeriesDataByOptions(t,i.series),this._updateOptionsRelatedDiverging(i),n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0})},_updateOptionsRelatedDiverging:function(t){var e;t.series=t.series||{},this.hasRightYAxis=!1,t.series.diverging&&(t.yAxis=t.yAxis||{},t.xAxis=t.xAxis||{},t.plot=t.plot||{},t.series.stackType=t.series.stackType||o.NORMAL_STACK_TYPE,this.hasRightYAxis=s.isArray(t.yAxis)&&t.yAxis.length>1,e=r.isYAxisAlignCenter(this.hasRightYAxis,t.yAxis.align),t.yAxis.isCenter=e,t.xAxis.divided=e,t.series.divided=e,t.plot.divided=e)},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("barSeries","barSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},getScaleOption:function(){return{xAxis:!0}},onChangeCheckedLegends:function(t){var e;this.hasRightYAxis&&(e={optionChartTypes:["bar","bar"]}),n.prototype.onChangeCheckedLegends.call(this,t,null,e)},addDataRatios:function(t){var e=this.options.series||{},i=this.chartType,n=(e[i]||e).stackType;this.dataProcessor.addDataRatios(t[i],n,i)}});t.exports=h},function(t,e,i){"use strict";var n=i(8),o=i(43),a=i(101),r=i(31),s=i(9),h=i(7),l=i(112),u=i(11),c=i(6),d=c.defineClass({init:function(t){this.theme=t.theme,this._initializeOptions(t.options),this.chartType=this.options.chartType,this.hasAxes=t.hasAxes,this.isVertical=!!t.isVertical,this.dataProcessor=this._createDataProcessor(t),this.eventBus=new c.CustomEvents,this.prevXAxisData=null,this.componentManager=this._createComponentManager(),this.addComponents(),this._attachToEventBus()},_attachToEventBus:function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},_setOffsetProperty:function(t,e,i){c.isExisty(t[e])&&(t.offset=t.offset||{},t.offset[i]=t[e],delete t[e])},_initializeOffset:function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},_initializeTitleOptions:function(t){var e,i=this;t&&(e=c.isArray(t)?t:[t],c.forEachArray(e,function(t){var e=t.title;c.isString(e)&&(t.title={text:e}),i._initializeOffset(t.title)}))},_initializeTooltipOptions:function(t){var e=t.position;t.grouped=!!t.grouped,this._initializeOffset(t),!t.offset&&e&&(t.offset={x:e.left,y:e.top}),delete t.position},_initializeOptions:function(t){t.chartTypes=this.charTypes,t.xAxis=t.xAxis||{},t.series=t.series||{},t.tooltip=t.tooltip||{},t.legend=t.legend||{},t.chartExportMenu=t.chartExportMenu||{},this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),c.isUndefined(t.legend.visible)&&(t.legend.visible=!0),c.isUndefined(t.chartExportMenu.visible)&&(t.chartExportMenu.visible=!0),this._initializeTooltipOptions(t.tooltip),this.options=t},_createDataProcessor:function(t){var e,i;return e=t.DataProcessor||a,i=new e(t.rawData,this.chartType,t.options,this.seriesTypes)},_createComponentManager:function(){return new o({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},addComponents:function(){},getScaleOption:function(){},_buildBoundsAndScaleData:function(t,e){return l.build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null,prevXAxisData:t,addingDataMode:e})},addDataRatios:function(){},readyForRender:function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},render:function(t){var e,i=s.create("DIV","tui-chart "+this.className),o=this.componentManager,a=this.dataProcessor,l=a.getLegendVisibility(),u=r.filterCheckedRawData(a.rawData,l),c=o.drawingToolPicker.getPaper(i,n.COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(u),c.changeChartBackgroundColor(this.theme.chart.background.color),c.changeChartBackgroundOpacity(this.theme.chart.background.opacity),h.renderFontFamily(i,this.theme.chart.fontFamily),s.append(t,i),e=this.readyForRender(),h.renderDimension(i,e.dimensionMap.chart),o.render("render",e,{checkedLegends:l},i),this.chartContainer=i,this.paper=c},rerender:function(t,e){var i,n=this.dataProcessor;e||(e=r.filterCheckedRawData(n.getZoomedRawData(),t)),this.dataProcessor.initData(e),i=this.readyForRender(),this.componentManager.render("rerender",i,{checkedLegends:t},this.chartContainer)},onChangeCheckedLegends:function(t,e,i){this.rerender(t,e,i)},animateChart:function(){this.componentManager.execute("animateComponent")},on:function(t,e){n.PUBLIC_EVENT_MAP[t]&&this.eventBus.on(n.PUBLIC_EVENT_PREFIX+t,e)},off:function(t,e){n.PUBLIC_EVENT_MAP[t]&&this.eventBus.off(n.PUBLIC_EVENT_PREFIX+t,e)},_updateChartDimension:function(t){var e=!1,i=this.options;return i.chart=i.chart||{},t.width&&t.width>0&&i.chart.width!==t.width&&(i.chart.width=t.width,e=!0),t.height&&t.height>0&&i.chart.height!==t.height&&(i.chart.height=t.height,e=!0),e},resize:function(t){var e,i,n;t&&(e=this._updateChartDimension(t),e&&(i=this.readyForRender(),n=i.dimensionMap.chart,h.renderDimension(this.chartContainer,n),this.paper.resizeBackground(n.width,n.height),this.componentManager.render("resize",i)))},setTooltipAlign:function(t){this.componentManager.get("tooltip").setAlign(t)},setTooltipOffset:function(t){this.componentManager.get("tooltip").setOffset(t)},setTooltipPosition:function(t){this.componentManager.get("tooltip").setPosition(t)},resetTooltipAlign:function(){this.componentManager.get("tooltip").resetAlign()},resetTooltipOffset:function(){this.componentManager.get("tooltip").resetOffset()},resetTooltipPosition:function(){this.resetTooltipOffset()},showSeriesLabel:function(){var t=this.componentManager.where({componentType:"series"});c.forEachArray(t,function(t){t.showLabel()})},hideSeriesLabel:function(){var t=this.componentManager.where({componentType:"series"});c.forEachArray(t,function(t){t.hideLabel()})},addData:function(){},addPlotLine:function(){},addPlotBand:function(){},removePlotLine:function(){},removePlotBand:function(){},_getSeriesData:function(t,e,i){var n={index:t,seriesIndex:e,outlierIndex:i};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(n)},_findSeriesIndexByLabel:function(t,e){for(var i=this.dataProcessor.getLegendLabels(t),n=-1,o=0,a=i?i.length:0;o<a;o+=1)if(i[o]===e){n=o;break}return n},_findDataByIndexes:function(t,e){return this.componentManager.get("mouseEventDetector").findDataByIndexes(t,e)},showTooltip:function(t){var e,i,n,o;u.isSupportPublicShowTooptipAPI(this.chartType)&&(e=this.options.tooltip&&this.options.tooltip.grouped,i=this.componentManager.get("mouseEventDetector"),e?o={indexes:{groupIndex:t.index}}:(n=this._findSeriesIndexByLabel(t.chartType,t.legend),o=this._getSeriesData(t.index,n,t.outlierIndex)),o?(o.silent=!0,i._showTooltip(o)):this.hideTooltip())},hideTooltip:function(){var t,e;u.isSupportPublicShowTooptipAPI(this.chartType)&&(t=this.options.tooltip&&this.options.tooltip.grouped,e=this.componentManager.get("mouseEventDetector"),(t&&e.prevIndex>=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0}))}});t.exports=d},function(t,e,i){"use strict";var n=i(8),o=i(9),a=i(44),r=i(46),s=i(47),h=i(48),l=i(50),u=i(38),c=i(56),d=i(58),p=i(59),f=i(60),m=i(66),g=i(68),_=i(69),T=i(73),v=i(80),y=i(84),x=i(85),A=i(87),D=i(88),E=i(89),C=i(91),L=i(92),S=i(93),M=i(94),P=i(95),b=i(97),R=i(98),k=i(99),I=i(6),w={axis:a,plot:r,radialPlot:h,legend:c,spectrumLegend:d,circleLegend:p,tooltip:f,groupTooltip:m,mapChartTooltip:g,mapChartEventDetector:_,mouseEventDetector:T,barSeries:v,columnSeries:y,lineSeries:x,radialSeries:A,areaSeries:D,bubbleSeries:E,scatterSeries:C,mapSeries:L,pieSeries:S,heatmapSeries:M,treemapSeries:P,boxplotSeries:b,bulletSeries:R,zoom:k,chartExportMenu:l,title:s},B=I.defineClass({init:function(t){var e=t.options.chart,i=I.pick(e,"width")||n.CHART_DEFAULT_WIDTH,o=I.pick(e,"height")||n.CHART_DEFAULT_HEIGHT;this.components=[],this.componentMap={},this.theme=t.theme||{},this.options=t.options||{},this.dataProcessor=t.dataProcessor,this.hasAxes=t.hasAxes,this.isVertical=t.isVertical,this.eventBus=t.eventBus,this.drawingToolPicker=new u,this.drawingToolPicker.initDimension({width:i,height:o}),this.seriesTypes=t.seriesTypes},_makeComponentOptions:function(t,e,i,n){return t=t||this.options[e],t=I.isArray(t)?t[n]:t||{}},register:function(t,e,i){var n,o,a,r,s;i=i||{},i.name=t,n=i.index||0,r=w[e],a=r.componentType,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes,s="axis"===a?t:a,i.theme=this.theme[s],i.options=this.options[s],i.theme||"rightYAxis"!==s||(i.theme=this.theme.yAxis),i.options||"rightYAxis"!==s||(i.options=this.options.yAxis),"series"===s&&I.forEach(this.seriesTypes,function(e){return 0!==t.indexOf(e)||(i.options=i.options[e]||i.options,i.theme=i.theme[e],I.isArray(i.options)&&(i.options=i.options[n]||{}),!1)}),i.dataProcessor=this.dataProcessor,i.hasAxes=this.hasAxes,i.isVertical=this.isVertical,i.eventBus=this.eventBus,i.alternativeModel=this.alternativeModel,o=r(i),o&&(o.componentName=t,o.componentType=a,this.components.push(o),this.componentMap[t]=o)},_makeDataForRendering:function(t,e,i,n,o){var a=I.extend({paper:i},o);return n&&(I.extend(a,n),a.layout={dimension:a.dimensionMap[t]||a.dimensionMap[e],position:a.positionMap[t]||a.positionMap[e]}),a},render:function(t,e,i,n){var a,r,s=this,h=I.map(this.components,function(o){var h,l,u,c=null;return o[t]&&(a=o.componentName,r=o.componentType,u=s.drawingToolPicker.getPaper(n,o.drawingType),h=s._makeDataForRendering(a,r,u,e,i),l=o[t](h),l&&!l.paper&&(c=l)),c});n&&o.append(n,h)},where:function(t){return I.filter(this.components,function(e){var i=!0;return I.forEach(t,function(t,n){return e[n]!==t&&(i=!1),i}),i})},execute:function(t){var e=Array.prototype.slice.call(arguments,1);I.forEachArray(this.components,function(i){i[t]&&i[t].apply(i,e)})},get:function(t){return this.componentMap[t]},has:function(t){return!!this.get(t)}});t.exports=B},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.chartType,i=t.name;return t.isYAxis="yAxis"===i||"rightYAxis"===i,t.shifting=t.chartOptions.series.shifting,"combo"===e?t.isYAxis?t.theme=t.theme[t.seriesTypes[0]]:"rightYAxis"===i&&(t.componentType="yAxis",t.theme=t.theme[t.seriesTypes[1]],t.index=1):t.isYAxis?t.theme=t.theme[e]:t.theme=t.theme,new u(t)}var o=i(8),a=i(11),r=i(45),s=i(32),h=i(7),l=i(6),u=l.defineClass({init:function(t){this.className="tui-chart-axis-area",this.dataProcessor=t.dataProcessor,this.options=t.options||{},this.theme=l.extend({},t.theme,{background:t.chartTheme.chart.background}),this.isLabelAxis=!1,this.isYAxis=t.isYAxis,this.shifting=t.shifting,this.data={},this.layout=null,this.dimensionMap=null,this.axisDataMap=null,this.graphRenderer=s.get(o.COMPONENT_TYPE_RAPHAEL,"axis"),this.drawingType=o.COMPONENT_TYPE_RAPHAEL,this.paperAdditionalWidth=0,this.paperAdditionalHeight=0,this._elBg=null},_renderBackground:function(){var t=l.extend({},this.layout.dimension),e=l.extend({},this.layout.position);this.isYAxis&&(t.height=this.dimensionMap.chart.height,e.top=0),this._elBg&&this._elBg.remove(),this._elBg=this.graphRenderer.renderBackground(this.paper,e,t,this.theme.background)},_renderChildContainers:function(t,e,i,n){var o=this.isYAxis&&this.data.aligned;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(),this._renderLabelArea(t,e,i,n),o||this._renderTickArea(t,e,n)},_renderDividedAxis:function(t){var e=this.data,i=Math.round(t.width/2),n=t.width-i-1,o=e.tickCount,a=parseInt(o/2,10)+1,r=e.labels,s=r.slice(0,a),h=r.slice(a-1,o),l=i/a,u=i+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=l,this._renderChildContainers(i,a,s,0),this._renderChildContainers(n+1,a,h,u)},_renderNotDividedAxis:function(t){var e=this.data,i=this.isYAxis,n=i?t.height:t.width,o=0;e.positionRatio&&(o=n*e.positionRatio),this._renderChildContainers(n,e.tickCount,e.labels,o)},_renderAxisArea:function(){var t=this.layout.dimension,e=this.data;this.isLabelAxis=e.isLabelAxis,this.options.divided?(this.containerWidth=t.width+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),t.width=this.containerWidth):(t.width+=this.options.isCenter?1:0,this._renderNotDividedAxis(t))},_setDataForRendering:function(t){this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.data=t.axisDataMap[this.componentName],this.options=this.data.options},render:function(t){this.paper=t.paper,this.axisSet=t.paper.set(),this._setDataForRendering(t),this._renderAxisArea()},rerender:function(t){this.axisSet.remove(),this.render(t)},resize:function(t){this.rerender(t)},zoom:function(t){this.rerender(t)},_renderTitleArea:function(){var t=this.options.title||{};t.text&&this.graphRenderer.renderTitle(this.paper,{text:t.text,offset:t.offset,theme:this.theme.title,rotationInfo:{rotateTitle:this.options.rotateTitle,isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter},layout:this.layout,set:this.axisSet})},_renderTickLine:function(t,e,i){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:i,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},_renderTicks:function(t,e,i,n){var o=this.theme.tickColor,a=this.data,s=a.sizeRatio||1,h=this.isYAxis,l=this.data.options.isCenter,u=this.data.isPositionRight,c=r.makeTickPixelPositions(t*s,e),d=this.paperAdditionalHeight+1,p=this.paperAdditionalWidth;c.length=a.tickCount,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:c,isVertical:h,isCenter:l,additionalSize:n,additionalWidth:p,additionalHeight:d,isPositionRight:u,tickColor:o,set:this.axisSet})},_renderTickArea:function(t,e,i){var n=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,n,i||0),this._renderTicks(t,e,n,i||0)},_renderLabelArea:function(t,e,i,n){var o=this.data.sizeRatio||1,a=r.makeTickPixelPositions(t*o,e,0),s=a[1]-a[0];this._renderLabels(a,i,s,n||0)},_renderRotationLabels:function(t,e,i,n){var a=this,r=this.graphRenderer,s=this.isYAxis,h=this.theme.label,u=this.data.degree,c=i/2,d=this.layout.position.top+o.AXIS_LABEL_PADDING,p=this.layout.position.left,f=this.options.labelMargin||0;l.forEach(t,function(t,o){var l=t+(n||0),m={};s?(m.top=l+c,m.left=i+f):(m.top=d+f,m.left=p+l,a.isLabelAxis&&(m.left+=c)),r.renderRotatedLabel({degree:u,labelText:e[o],paper:a.paper,positionTopAndLeft:m,set:a.axisSet,theme:h})})},_renderNormalLabels:function(t,e,i,n){var r=this,s=this.graphRenderer,h=this.isYAxis,u=this.data.isPositionRight,c=this.isLabelAxis,d=this.theme.label,p=this.dataProcessor,f=a.isLineTypeChart(p.chartType,p.seriesTypes),m=f&&this.options.pointOnColumn,g=this.layout,_=this.options.labelMargin||0;l.forEach(t,function(t,a){var l,p,T=t+n,v=i/2,y={};T<0||(h?(l=T,c?l+=v+g.position.top:l=g.dimension.height+g.position.top-l,p=u?g.position.left+o.AXIS_LABEL_PADDING+_:g.position.left+g.dimension.width-o.AXIS_LABEL_PADDING-_):(l=g.position.top+o.CHART_PADDING+o.AXIS_LABEL_PADDING+_,p=T+g.position.left,c&&(f&&!m||(p+=v))),y.top=Math.round(l),y.left=Math.round(p),s.renderLabel({isPositionRight:u,isVertical:h,labelSize:i,labelText:e[a],paper:r.paper,positionTopAndLeft:y,set:r.axisSet,theme:d}))})},_renderLabels:function(t,e,i,n){var o,a=!this.isYAxis&&this.isLabelAxis&&this.options.rotateLabel===!1,r="xAxis"===this.componentName&&this.data.degree;o=a?this.data.multilineLabels:e,o.length&&(t.length=o.length),o=h.addPrefixSuffix(o,this.options.prefix,this.options.suffix),r?this._renderRotationLabels(t,o,i,n):this._renderNormalLabels(t,o,i,n)},animateForAddingData:function(t){this.isYAxis||this.graphRenderer.animateForAddingData(t.tickSize)}});n.componentType="axis",n.Axis=u,t.exports=n},function(t,e,i){"use strict";var n=i(6),o=i(10),a=100,r={calculateLimit:function(t,e){var i,n=0,o={};return t<0&&(n=t,e-=t,t=0),i=(e-t)/20,o.max=e+i+n,e/6>t?o.min=n:o.min=t-i+n,o},makeTickPixelPositions:function(t,e,i){var o=[];return i=i||0,e>0&&(o=n.map(n.range(0,e),function(n){var o=0===n?0:n/(e-1);return o*t+i}),o[o.length-1]-=1),o},makeLabelsFromLimit:function(t,e){var i=r.findMultipleNum(e),o=Math.round(t.min*i),a=Math.round(t.max*i),s=n.range(o,a+1,e*i);return n.map(s,function(t){return t/i})},calculateStepFromLimit:function(t,e){return r.divide(r.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=n.filter(t,function(t){return t>0});return r.sum(e)},sumMinusValues:function(t){var e=n.filter(t,function(t){return t<0});return r.sum(e)},makePercentageValue:function(t,e){return t/e*a},calculateRatio:function(t,e,i,n){return(t-i)/e*n}},s=function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},h=function(){var t=[].slice.call(arguments),e=n.map(t,function(t){return r.getDecimalLength(t)}),i=o.max(e);return Math.pow(10,i)},l=function(t,e){var i,n=r.findMultipleNum(e);return i=1===n?t%e:t*n%(e*n)/n},u=function(t,e){var i=r.findMultipleNum(t,e);return(t*i+e*i)/i},c=function(t,e){var i=r.findMultipleNum(t,e);return(t*i-e*i)/i},d=function(t,e){var i=r.findMultipleNum(t,e);return t*i*(e*i)/(i*i)},p=function(t,e){var i=r.findMultipleNum(t,e);return t*i/(e*i)},f=function(t){var e=t.slice();return e.unshift(0),n.reduce(e,function(t,e){return r.add(parseFloat(t),parseFloat(e))})};r.getDecimalLength=s,r.findMultipleNum=h,r.mod=l,r.add=u,r.subtract=c,r.multiply=d,r.divide=p,r.sum=f,t.exports=r},function(t,e,i){"use strict";function n(t,e){return t.start-e.start}function o(t){var e=t.chartOptions.chartType,i=t.seriesTypes,n=t.chartOptions.xAxis.type;return t.chartType=e,t.chartTypes=i,t.xAxisTypeOption=n,new u(t)}var a=i(8),r=i(11),s=i(45),h=i(6),l=h.map,u=h.defineClass({init:function(t){this.className="tui-chart-plot-area",this.dataProcessor=t.dataProcessor,this.options=t.options||{},this.options.showLine=!!h.isUndefined(this.options.showLine)||this.options.showLine,this.options.lines=this.options.lines||[],this.options.bands=this.options.bands||[],this.xAxisTypeOption=t.xAxisTypeOption,this.theme=t.theme||{},this.chartType=t.chartType,this.chartTypes=t.chartTypes,this.layout=null,this.axisDataMap=null,this.drawingType=a.COMPONENT_TYPE_RAPHAEL},_renderPlotArea:function(t){var e;e=this.layout.dimension,r.isLineTypeChart(this.chartType,this.chartTypes)&&this._renderOptionalLines(t,e),this.options.showLine&&this._renderPlotLines(t,e)},_setDataForRendering:function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap,this.paper=t.paper)},render:function(t){var e=t&&t.paper||this.paper;this.plotSet=e.set(),this.additionalPlotSet=e.set(),this._setDataForRendering(t),this._renderPlotArea(this.paper),this.additionalPlotSet.toBack(),this.plotSet.toBack(),e.pushDownBackgroundToBottom()},rerender:function(t){this.additionalPlotSet.remove(),this.plotSet.remove(),this.render(t)},resize:function(t){this.rerender(t)},zoom:function(t){this.rerender(t)},_makeVerticalLineTemplateParams:function(t){return h.extend({className:"vertical",positionType:"left",width:"1px"},t)},_makeHorizontalLineTemplateParams:function(t){return h.extend({className:"horizontal",positionType:"bottom",height:"1px"},t)},_renderLine:function(t,e){var i=this.layout.position.top,n=this.layout.dimension.height,o="M"+t+","+i+"V"+(i+n),a=this.paper.path(o);return a.attr({opacity:e.opacity||1,stroke:e.color}),this.additionalPlotSet.push(a),a},_renderBand:function(t,e,i){var n=this.layout.position,o=this.layout.dimension,a=o.width-t+n.left,r=e<0?a:e,s=this.paper.rect(t,n.top,r,o.height);return s.attr({fill:i.color,opacity:i.opacity||1,stroke:i.color}),this.additionalPlotSet.push(s),s},_createOptionalLineValueRange:function(t){var e=t.range||[t.value];return r.isDatetimeType(this.xAxisTypeOption)&&(e=l(e,function(t){var e=new Date(t);return e.getTime()||t})),e},_createOptionalLinePosition:function(t,e,i){var n=(i-t.dataMin)/t.distance,o=n*e;return 1===n&&(o-=1),o<0&&(o=null),o},_createOptionalLinePositionWhenLabelAxis:function(t,e){var i,n=this.dataProcessor,o=n.findCategoryIndex(e),a=null;return h.isNull(o)||(i=0===o?0:o/(n.getCategoryCount()-1),a=i*t),1===i&&(a-=1),a},_createOptionalLinePositionMap:function(t,e,i){var n,o,a=this.dataProcessor.getCategories(),r=this._createOptionalLineValueRange(t);return e.isLabelAxis?(n=this._createOptionalLinePositionWhenLabelAxis(i,r[0]),o=this._createOptionalLinePositionWhenLabelAxis(i,r[1])):(n=this._createOptionalLinePosition(e,i,r[0]),o=r[1]&&this._createOptionalLinePosition(e,i,r[1])),h.isNull(n)&&(n=this._isBeforeVisibleCategories(r[0],a[0])?0:-1),h.isNull(o)&&(o=this._isAfterVisibleCatgories(r[1],a[a.length-1])?i:-1),{start:n,end:o}},_isBeforeVisibleCategories:function(t,e){var i,n,o=this.dataProcessor;return!!h.isExisty(t)&&(r.isDatetimeType(this.xAxisTypeOption)?t<e:(i=o.findAbsoluteCategoryIndex(t),n=o.findAbsoluteCategoryIndex(e),i>=0&&i<n))},_isAfterVisibleCatgories:function(t,e){var i,n,o=this.dataProcessor;return!!h.isExisty(t)&&(r.isDatetimeType(this.xAxisTypeOption)?t>e:(i=o.findAbsoluteCategoryIndex(t),n=o.findAbsoluteCategoryIndex(e),i>=0&&i>n))},_renderOptionalLine:function(t,e,i,n){var o,a=this._createOptionalLinePositionMap(n,t,e);return a.start>=0&&a.start<=e&&(i.width=1,i.color=n.color||"transparent",i.opacity=n.opacity,o=this._renderLine(a.start+this.layout.position.left,i)),o},_makeOptionalBand:function(t,e,i,o){var a,r=o.range;return r&&r.length&&this._makeRangeTo2DArray(o),a=l(o.range,function(i){return this._createOptionalLinePositionMap({range:i},t,e)},this),o.mergeOverlappingRanges&&(a.sort(n),a=this._mergeOverlappingPositionMaps(a)),l(a,function(t){var n,a,r=t.start>=0&&t.start<=e;return r&&t.end>=0&&(i.color=o.color||"transparent",i.opacity=o.opacity,n=t.end-t.start,a=this._renderBand(t.start+this.layout.position.left,n,i)),a},this)},_makeOptionalLines:function(t,e){var i=e.width,n=this.axisDataMap.xAxis,o=this._makeVerticalLineTemplateParams({height:e.height+"px"}),a=h.bind(this._renderOptionalLine,this,n,i,o);return l(t,a)},_makeOptionalBands:function(t,e){var i=e.width,n=this.axisDataMap.xAxis,o=this._makeVerticalLineTemplateParams({height:e.height+"px"}),a=h.bind(this._makeOptionalBand,this,n,i,o);return l(t,a)},_renderOptionalLines:function(t,e){var i=[];i.concat(this._makeOptionalBands(this.options.bands,e)),i.concat(this._makeOptionalLines(this.options.lines,e)),this.optionalLines=i},_renderVerticalLines:function(t,e){var i=this._makeHorizontalPositions(t.width),n=this,o=this.layout,a=o.position.left,r=o.position.top;h.forEach(i,function(t){var i="M"+(t+a)+","+r+"V"+(r+o.dimension.height),s=n.paper.path(i);s.attr({stroke:e,"stroke-width":1}),n.plotSet.push(s)})},_renderHorizontalLines:function(t,e){var i=this._makeVerticalPositions(t.height),n=this,o=this.layout,a=o.position.left,r=o.position.top,s=i[1]-i[0];h.forEach(i,function(t,i){var h="M"+a+","+(s*i+r)+"H"+(a+o.dimension.width),l=n.paper.path(h);l.attr({stroke:e,"stroke-width":1}),n.plotSet.push(l)})},_renderPlotLines:function(t,e){var i=this.theme;r.isLineTypeChart(this.chartType)||this._renderVerticalLines(e,i.lineColor),this._renderHorizontalLines(e,i.lineColor)},_makeVerticalPositions:function(t){var e=this.axisDataMap,i=e.yAxis||e.rightYAxis,n=s.makeTickPixelPositions(t,i.validTickCount);return n.shift(),n},_makeDividedPlotPositions:function(t,e){var i,n,o,a,r=this.dimensionMap.yAxis.width;return e=parseInt(e/2,10)+1,t-=r,i=Math.round(t/2),n=t-i,o=s.makeTickPixelPositions(i,e),a=s.makeTickPixelPositions(n,e,i+r),o.pop(),a.shift(),o.concat(a)},_makeHorizontalPositions:function(t){var e,i=this.axisDataMap.xAxis.validTickCount;return this.options.divided?e=this._makeDividedPlotPositions(t,i):(e=s.makeTickPixelPositions(t,i),e.shift()),e},addPlotLine:function(t){this.options.lines.push(t),this.rerender()},addPlotBand:function(t){this.options.bands.push(t),this.rerender()},removePlotLine:function(t){this.options.lines=h.filter(this.options.lines,function(e){return e.id!==t}),this.rerender()},removePlotBand:function(t){this.options.bands=h.filter(this.options.bands,function(e){return e.id!==t}),this.rerender()},animateForAddingData:function(t){var e=this;this.dataProcessor.isCoordinateType()||t.shifting&&h.forEach(this.optionalLines,function(i){var n=i.getBBox();n.x-t.tickSize<e.layout.position.left?i.animate({transform:"T"+t.tickSize+","+n.y,opacity:0},300,"linear",function(){i.remove()}):i.animate({transform:"T"+t.tickSize+","+n.y},300)})},_makeRangeTo2DArray:function(t){var e=t.range,i=e&&h.isArray(e)&&(0===e.length||!h.isArray(e[0]));i&&(t.range=[e])},_mergeOverlappingPositionMaps:function(t){var e,i,n,o=1,a=t.length;for(a&&(e=[t[0]],i=e[0]);o<a;o+=1)n=t[o],n.start<=i.end?i.end=Math.max(n.end,i.end):(e.push(n),i=n);return e}});o.componentType="plot",o.Plot=u,t.exports=o},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.chart||{title:{}},i=null;return e.title&&e.title.text&&(t.text=e.title.text,t.offset=e.title.offset,i=new s(t)),i}var o=i(8),a=i(32),r=i(6),s=r.defineClass({init:function(t){this.theme=t.theme||{},this.titleText=t.text,this.offset=t.offset,this.graphRenderer=a.get(o.COMPONENT_TYPE_RAPHAEL,"title"),this.drawingType=o.COMPONENT_TYPE_RAPHAEL},render:function(t){this.titleSet=this._renderTitleArea(t.paper)},resize:function(t){var e=t.dimensionMap,i=e.legend?e.legend.width:0,n=e.series.width+i;this.graphRenderer.resize(n,this.titleSet)},rerender:function(t){this.titleSet.remove(),this.render(t)},_renderTitleArea:function(t){return this.graphRenderer.render(t,this.titleText,this.offset,this.theme)}});n.componentType="title",n.Title=s,t.exports=n},function(t,e,i){"use strict";function n(t){var e,i,n,o,a,s,h=t.width,l=t.height,u=t.centerX,c=t.centerY,d=t.angleStepCount,p=t.stepCount,f=Math.min(h,l)/2,m=360/d,g=[];for(o=f/(p-1),a=0;a<p;a+=1){for(e=[],i=c+o*a,s=0;s<d;s+=1)n=r.rotatePointAroundOrigin(u,c,u,i,m*s),e.push({left:n.x,top:l-n.y});e.push(e[0]),g[a]=e}return g}function o(t){var e,i,n,o,a,s=t.width,h=t.height,l=t.centerX,u=t.centerY,c=t.angleStepCount,d=Math.min(h,s)/2,p=360/c,f=[];for(o=u+d,n=0;n<c;n+=1)a=360-p*n,i=r.rotatePointAroundOrigin(l,u,l,o,a),e=a>0&&a<180?"end":a>180&&a<360?"start":"middle",f.push({left:i.x,top:h-i.y,anchor:e});return f}function a(t){return new u(t)}var r=i(49),s=i(8),h=i(32),l=i(6),u=l.defineClass({className:"tui-chart-plot-area",init:function(t){this.options=l.extend({type:"spiderweb"},t.options),this.theme=t.theme||{},this.graphRenderer=h.get(s.COMPONENT_TYPE_RAPHAEL,"radialPlot"),this.drawingType=s.COMPONENT_TYPE_RAPHAEL},_renderPlotArea:function(t,e,i,n){var o={paper:t,layout:e,plotPositions:i,labelData:n,theme:this.theme,options:this.options};return this.graphRenderer.render(o)},_makePositions:function(t,e){var i=e.dimension.width-s.RADIAL_PLOT_PADDING-s.RADIAL_MARGIN_FOR_CATEGORY,o=e.dimension.height-s.RADIAL_PLOT_PADDING-s.RADIAL_MARGIN_FOR_CATEGORY,a=i/2+s.RADIAL_PLOT_PADDING/2+s.RADIAL_MARGIN_FOR_CATEGORY/2+e.position.left,r=o/2-s.RADIAL_PLOT_PADDING/2-s.RADIAL_MARGIN_FOR_CATEGORY/2-e.position.top,h=t.yAxis.tickCount,l=t.xAxis.labels.length;return n({width:i,height:o,centerX:a,centerY:r,angleStepCount:l,stepCount:h})},_makeCategoryPositions:function(t,e){var i=e.dimension.width-s.RADIAL_PLOT_PADDING-s.RADIAL_CATEGORY_PADDING,n=e.dimension.height-s.RADIAL_PLOT_PADDING-s.RADIAL_CATEGORY_PADDING,a=i/2+s.RADIAL_PLOT_PADDING/2+s.RADIAL_CATEGORY_PADDING/2+e.position.left,r=n/2-s.RADIAL_PLOT_PADDING/2-s.RADIAL_CATEGORY_PADDING/2-e.position.top,h=t.xAxis.labels.length;
14
+ return o({width:i,height:n,centerX:a,centerY:r,angleStepCount:h})},_makeLabelData:function(t,e,i){var n,o,a=t.xAxis.labels,r=t.yAxis.labels,s=this._makeCategoryPositions(t,e),h=[],l=[];for(n=0;n<a.length;n+=1)h.push({text:a[n],position:s[n]});for(o=0;o<r.length-1;o+=1)l.push({text:r[o],position:i[o][0]});return{category:h,step:l}},render:function(t){var e=this._makePositions(t.axisDataMap,t.layout),i=this._makeLabelData(t.axisDataMap,t.layout,e);this.plotSet=this._renderPlotArea(t.paper,t.layout,e,i)},rerender:function(t){this.plotSet.remove(),this.render(t)},resize:function(t){this.rerender(t)}});a.componentType="plot",a.RadialPlot=u,t.exports=a},function(t,e,i){"use strict";function n(t,e,i,n,o){var a=o*(Math.PI/180),r=(i-t)*Math.cos(a)-(n-e)*Math.sin(a),s=(i-t)*Math.sin(a)+(n-e)*Math.cos(a);return r+=t,s+=e,{x:r,y:s}}function o(t,e){return Math.cos(t*h.RAD)*e}function a(t,e){return Math.sin(t*h.RAD)*e}function r(t,e,i){var n=o(t,e/2),a=o(h.ANGLE_90-t,i/2);return 2*(n+a)}function s(t,e,i){var n=a(t,e/2),o=a(h.ANGLE_90-t,i/2);return 2*(n+o)}var h=i(8);t.exports={rotatePointAroundOrigin:n,calculateAdjacent:o,calculateRotatedHeight:s,calculateRotatedWidth:r,calculateOpposite:a}},function(t,e,i){"use strict";function n(t){var e=t.options.visible,i=null,n=t.chartOptions.chart||{},o=t.chartOptions.chartExportMenu;return n.title&&(t.chartTitle=n.title.text),o&&o.filename&&(t.exportFilename=o.filename),e&&(i=new p(t)),i}var o=i(8),a=i(51),r=i(9),s=i(55),h=i(11),l=i(7),u=i(6),c=["xls","csv","png","jpeg"],d="menu-opened",p=u.defineClass({init:function(t){this.className="tui-chart-chartExportMenu-area",this.dataProcessor=t.dataProcessor,this.chartTitle=t.chartTitle||"tui-chart",this.exportFilename=t.exportFilename||this.chartTitle,this.chartType=t.chartType,this.layout=null,this.chartExportMenuContainer=null,this.chartExportMenu=null,this.options=t.options,this.eventBus=t.eventBus,this.drawingType=o.COMPONENT_TYPE_DOM,this.theme=t.theme||null},_createChartExportMenuButton:function(){var t=r.create("div",o.CLASS_NAME_CHART_EXPORT_MENU_BUTTON);return this.options.buttonClass&&r.addClass(t,this.options.buttonClass),t},_renderChartExportMenuArea:function(t){var e=this._createChartExportMenuButton(),i=this.layout.dimension;t.appendChild(e),l.renderDimension(t,i),l.renderPosition(t,this.layout.position)},_renderChartExportMenu:function(t){var e=this.dataProcessor.seriesDataModelMap,i=this.isDataDownloadAvailable(e),n=a.isDownloadSupported,s=a.isImageExtension,h=a.isImageDownloadAvailable,l=r.create("ul",o.CLASS_NAME_CHART_EXPORT_MENU),d=l.style,p=this.theme,f=[];n&&(i||h)?f=u.map(c,function(t){var e;return(!s(t)&&i||s(t)&&h)&&(e=r.create("li",o.CLASS_NAME_CHART_EXPORT_MENU_ITEM),e.id=t,e.innerHTML="Export to ."+t),e}):(d.width="200px",f[0]=r.create("li",o.CLASS_NAME_CHART_EXPORT_MENU_ITEM),f[0].innerHTML="Browser does not support client-side download."),p&&(p.borderWidth&&(d.borderWidth=p.borderWidth),p.borderRadius&&(d.borderRadius=p.borderRadius),p.backgroundColor&&(d.backgroundColor=p.backgroundColor),p.color&&(d.color=p.color)),this.options.menuClass&&r.addClass(l,this.options.menuClass),r.append(l,f),this.chartExportMenu=l,r.append(t,l)},_setDataForRendering:function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap)},render:function(t){var e=null;return a.isDownloadSupported&&(e=this.container=t.paper,r.addClass(e,this.className),this._setDataForRendering(t),this._renderChartExportMenuArea(e),this._renderChartExportMenu(e),this.chartExportMenuContainer=e,this._attachEvent()),e},rerender:function(){this._hideChartExportMenu()},resize:function(){},_showChartExportMenu:function(){r.addClass(this.chartExportMenuContainer,d),this.chartExportMenu.style.display="block"},_hideChartExportMenu:function(){this.chartExportMenuContainer&&(r.removeClass(this.chartExportMenuContainer,d),this.chartExportMenu.style.display="none")},_onClick:function(t){var e=t.target||t.srcElement,i=this.container.parentNode.getElementsByTagName("svg")[0];r.hasClass(e,o.CLASS_NAME_CHART_EXPORT_MENU_ITEM)?(e.id&&(this.eventBus.fire("beforeImageDownload"),a.exportChart(this.exportFilename,e.id,this.dataProcessor.rawData,i,this.options),this.eventBus.fire("afterImageDownload")),this._hideChartExportMenu()):r.hasClass(e,o.CLASS_NAME_CHART_EXPORT_MENU_BUTTON)&&this.chartExportMenuContainer===e.parentNode&&!r.hasClass(this.chartExportMenuContainer,d)?this._showChartExportMenu():this._hideChartExportMenu()},isDataDownloadAvailable:function(t){var e=!0;return h.isTreemapChart(this.chartType)?e=!1:u.forEach(t,function(t){return t.isCoordinateType&&(e=!1),!1}),e},_attachEvent:function(){s.on(this.chartExportMenuContainer.parentNode,"click",this._onClick,this)},_detachEvent:function(){s.off(this.chartExportMenuContainer.parentNode,"click",this._onClick)}});n.componentType="chartExportMenu",t.exports=n},function(t,e,i){"use strict";function n(t){return r.any(h.getExtensions(),function(e){return t===e})}function o(t){return r.any(s.getExtensions(),function(e){return t===e})}function a(t,e,i,a,r){var l=r&&r[e]?r[e]:{};n(e)?h.downloadImage(t,e,a):o(e)&&s.downloadData(t,e,i,l)}var r=i(10),s=i(52),h=i(54),l=i(6),u=l.browser,c=u.msie&&(10===u.version||11===u.version),d=!c||c&&document.createElement("canvas").getContext("2d").drawSvg,p=l.isExisty(document.createElement("a").download),f=window.Blob&&window.navigator.msSaveOrOpenBlob;t.exports={exportChart:a,isDownloadSupported:p||f,isImageDownloadAvailable:d,isImageExtension:n,addExtension:function(t,e){var i,n,o=e&&l.isString(e);"data"===t?i=s:"image"===t&&(i=h),i&&o&&(n=i.getExtensions(),n.push(e))}}},function(t,e,i){"use strict";function n(t){var e,i=[],n=t.categories&&m.isExisty(t.categories.x),o=t.series&&m.isExisty(t.series.bullet);if(t){if(n)return l(t);if(o)return s(t);t.categories&&(e=t.categories),i.push([""].concat(e)),m.forEach(t.series,function(t){m.forEach(t,function(t){var e=[t.name].concat(t.data);i.push(e)})})}return i}function o(t,e){for(var i=["",f.BULLET_TYPE_ACTUAL],n=0;n<t;n+=1)i.push(f.BULLET_TYPE_RANGE+n);for(n=0;n<e;n+=1)i.push(f.BULLET_TYPE_MARKER+n);return i}function a(t,e){for(var i,n=[],o=0;o<e;o+=1)i="",t&&t[o]&&(i=(t[o].length>0?t[o][0]:"")+"~"+(t[o].length>1?t[o][1]:"")),n.push(i);return n}function r(t,e){for(var i,n=[],o=0;o<e;o+=1)i=t&&t[o]?t[o]:"",n.push(i);return n}function s(t){var e=[],i=h(t.series.bullet),n=i.maxRangeCount,s=i.maxMarkerCount;return e.push(o(n,s)),m.forEach(t.series.bullet,function(t){var i=[t.name,t.data];i=i.concat(a(t.ranges,n)),i=i.concat(r(t.markers,s)),e.push(i)}),e}function h(t){var e=0,i=0;return m.forEach(t,function(t){e=Math.max(e,t.ranges.length),i=Math.max(i,t.markers.length)}),{maxRangeCount:e,maxMarkerCount:i}}function l(t){var e=[];return e.push([""].concat(t.categories.x)),m.forEach(t.series,function(i){m.forEach(i,function(i,n){var o=[t.categories.y[n]].concat(i);e.push(o)})}),e}function u(t){var e="<table>";return m.forEach(t,function(t,i){var n=0===i?"th":"td";e+="<tr>",m.forEach(t,function(t,o){var a=0!==i||0===o?' class="number"':"",r="<"+n+a+">"+t+"</"+n+">";e+=r}),e+="</tr>"}),e+="</table>"}function c(t){var e='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Ark1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><meta name=ProgId content=Excel.Sheet><meta charset=UTF-8></head><body>'+u(t)+"</body></html>";return window.btoa(unescape(encodeURIComponent(e)))}function d(t,e){var i="",n=e&&e.lineDelimiter||"\n",o=e&&e.itemDelimiter||",",a=t.length-1;return m.forEachArray(t,function(t,e){var r=t.length-1;m.forEachArray(t,function(t,e){var n=m.isNumber(t)?t:'"'+t+'"';i+=n,e<r&&(i+=o)}),e<a&&(i+=n)}),encodeURIComponent(i)}var p=i(53),f=i(8),m=i(6),g={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv,"},_={xls:c,csv:d},T=[].concat([],f.DATA_EXTENSIONS),v={downloadData:function(t,e,i,o){var a=n(i),r=g[e]+_[e](a,o);p.execDownload(t,e,r)},getExtensions:function(){return T}};v._makeCsvBodyWithRawData=d,v._makeXlsBodyWithRawData=c,v._get2DArrayFromRawData=n,v._get2DArrayFromBulletRawData=s,v._get2DArrayFromHeatmapRawData=l,v._makeTCellsFromBulletRanges=a,v._makeTCellsFromBulletMarkers=r,v._makeTHeadForBullet=o,t.exports=v},function(t,e,i){"use strict";function n(){var t,e=l.isExisty(document.createElement("a").download),i=window.Blob&&window.navigator.msSaveOrOpenBlob;return i?t="msSaveOrOpenBlob":e&&(t="downloadAttribute"),t}function o(t){var e,i,n,o,a,r,s=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),h=1024,l=atob(t.substr(t.indexOf(",")+1)),u=[];for(e=0;e<l.length;e+=h){for(i=l.slice(e,e+h),n=new Array(i.length),o=0;o<i.length;o+=1)n[o]=i.charCodeAt(o);a=new window.Uint8Array(n),u.push(a)}return r=new Blob(u,{type:s})}function a(t){return u.any(c.IMAGE_EXTENSIONS,function(e){return t===e})}function r(t,e,i){var n=a(e)?o(i):new Blob([i]);window.navigator.msSaveOrOpenBlob(n,t+"."+e)}function s(t,e,i){var n;i&&(n=document.createElement("a"),n.href=i,n.target="_blank",n.download=t+"."+e,document.body.appendChild(n),n.click(),n.remove())}function h(t,e,i){var o=n();o&&l.isString(i)&&d[o](t,e,i)}var l=i(6),u=i(10),c=i(8),d={downloadAttribute:s,msSaveOrOpenBlob:r};t.exports={execDownload:h}},function(t,e,i){"use strict";function n(t){var e,i=t.parentNode,n=document.createElement("DIV");return n.appendChild(t),e=n.innerHTML,i.appendChild(t),n=null,i=null,e}function o(t,e,i,n){var o=t.getContext("2d");u&&(e=e.replace(/xmlns:NS1=""/,""),e=e.replace(/NS1:xmlns:xlink="http:\/\/www\.w3\.org\/1999\/xlink"/,""),e=e.replace(/xmlns="http:\/\/www\.w3\.org\/2000\/svg"/,""),e=e.replace(/xmlns:xlink="http:\/\/www\.w3\.org\/1999\/xlink"/,"")),o.drawSvg(e,0,0),r.execDownload(i,n,t.toDataURL("image/"+n,1))}function a(t,e,i,n){var o=t.getContext("2d"),a=new Blob([e],{type:"image/svg+xml"}),s=c.createObjectURL(a),h=new Image;h.onload=function(){o.drawImage(h,0,0,t.width,t.height),r.execDownload(i,n,t.toDataURL("image/"+n,1)),c.revokeObjectURL(s)},h.src=s}var r=i(53),s=i(8),h=i(6),l=h.browser,u=l.msie&&(10===l.version||11===l.version),c=window.URL||window.webkitURL||window,d=[].concat([],s.IMAGE_EXTENSIONS);t.exports={downloadImage:function(t,e,i){var s,h,l;"svg"===i.tagName?(h=i.parentNode,l=document.createElement("canvas"),l.width=h.offsetWidth,l.height=h.offsetHeight,s=n(i),u?o(l,s,t,e):a(l,s,t,e)):"canvas"===i.tagName&&(l=i,r.execDownload(t,e,l.toDataURL("image/"+e,1)))},getExtensions:function(){return d}}},function(t,e,i){"use strict";var n=i(6),o={},a={_attachEvent:function(t,e,i,a){var r;r=a?n.bind(i,a):i,o[e+i]=r,t.attachEvent("on"+e,r)},_addEventListener:function(t,e,i,a){var r;r=a?n.bind(i,a):i,o[e+i]=r,t.addEventListener(e,r)},_bindEvent:function(t,e,i,n){var o;"addEventListener"in t?o=this._addEventListener:"attachEvent"in t&&(o=this._attachEvent),a._bindEvent=o,o(t,e,i,n)},on:function(t,e,i,o){var r={};n.isString(e)?r[e]=i:(r=e,o=i),n.forEach(r,function(e,i){a._bindEvent(t,i,e,o)})},_detachEvent:function(t,e,i){o[e+i]&&(t.detachEvent("on"+e,o[e+i]),delete o[e+i])},_removeEventListener:function(t,e,i){t.removeEventListener(e,o[e+i]),delete o[e+i]},_unbindEvent:function(t,e,i){var n;"removeEventListener"in t?n=a._removeEventListener:"detachEvent"in t&&(n=a._detachEvent),a._unbindEvent=n,n(t,e,i)},off:function(t,e,i){var o={};n.isString(e)?o[e]=i:o=e,n.forEach(o,function(e,i){a._unbindEvent(t,i,e)})}};t.exports=a},function(t,e,i){"use strict";function n(t){var e=!!l.isUndefined(t.options.visible)||t.options.visible,i=t.dataProcessor.seriesTypes,n=t.chartOptions.chartType,o=null;return e&&(t.seriesTypes=i,t.chartType=n,o=new c(t)),o}var o=i(8),a=i(57),r=i(32),s=i(11),h=i(5),l=i(6),u=o.LEGEND_ICON_HEIGHT,c=l.defineClass({init:function(t){this.theme=t.theme,this.options=t.options||{},this.chartType=t.chartType,this.seriesTypes=t.seriesTypes||[this.chartType],this.eventBus=t.eventBus,this.className="tui-chart-legend-area",this.dataProcessor=t.dataProcessor,this.legendModel=new a({theme:this.theme,labels:t.dataProcessor.getLegendLabels(),legendData:t.dataProcessor.getLegendData(),seriesTypes:this.seriesTypes,chartType:this.chartType}),this.layout=null,this.graphRenderer=r.get(o.COMPONENT_TYPE_RAPHAEL,"legend"),this.paper=null,this.drawingType=o.COMPONENT_TYPE_RAPHAEL},_setDataForRendering:function(t){t&&(this.layout=t.layout,this.paper=t.paper)},_render:function(t){this._setDataForRendering(t),this.legendSet=this._renderLegendArea(t.paper)},render:function(t){this._render(t),this._listenEvents()},rerender:function(t){this.legendSet.remove(),this._render(t)},resize:function(t){this.rerender(t)},_getLegendRenderingData:function(t,e,i){var n=this.options.maxWidth,o=(s.isBarTypeChart(this.chartType)||s.isBoxplotChart(this.chartType))&&this.dataProcessor.options.series.colorByPoint;return l.map(t,function(t,a){var r=this.options.showCheckbox===!1?null:{checked:this.legendModel.isCheckedIndex(a)},s=t.label;return n&&(s=h.getEllipsisText(s,n,this.theme.label)),{checkbox:r,iconType:t.chartType||"rect",colorByPoint:o,index:a,theme:t.theme,label:s,labelHeight:e,labelWidth:i[a],isUnselected:this.legendModel.isUnselectedIndex(a)}},this)},_renderLegendArea:function(t){var e=this.legendModel.getData(),i=this.graphRenderer,n=s.isHorizontalLegend(this.options.align),a=this.layout.position,r=i.makeLabelWidths(e,this.theme.label,this.options.maxWidth),h=e[0]?e[0].theme:{},l=i.getRenderedLabelHeight("DEFAULT_TEXT",h)-1,c=r.length,d=Math.max(u,l),p=(o.LINE_MARGIN_TOP+d)*(n?1:c);return i.render({paper:t,legendData:this._getLegendRenderingData(e,l,r),isHorizontal:n,position:{left:a.left+o.LEGEND_AREA_PADDING+o.CHART_PADDING,top:a.top+o.LEGEND_AREA_PADDING+o.CHART_PADDING},dimension:{height:p,width:0},labelTheme:this.theme.label,labelWidths:r,eventBus:this.eventBus})},_fireChangeCheckedLegendsEvent:function(){this.eventBus.fire("changeCheckedLegends",this.legendModel.getCheckedIndexes())},_fireSelectLegendEvent:function(t){var e=this.legendModel.getSelectedIndex(),i=l.isNull(e)?e:t.seriesIndex;this.eventBus.fire("selectLegend",t.chartType,i)},_fireSelectLegendPublicEvent:function(t){this.eventBus.fire(o.PUBLIC_EVENT_PREFIX+"selectLegend",{legend:t.label,chartType:t.chartType,index:t.index})},_selectLegend:function(t){var e=this.legendModel.getDatum(t);this.legendModel.toggleSelectedIndex(t),l.isNull(this.legendModel.getSelectedIndex())||this.legendModel.isCheckedSelectedIndex()||(this.legendModel.checkSelectedIndex(),this._fireChangeCheckedLegendsEvent()),this.graphRenderer.selectLegend(this.legendModel.getSelectedIndex(),this.legendSet),this._fireSelectLegendEvent(e),this._fireSelectLegendPublicEvent(e)},_getCheckedIndexes:function(){var t=[];return l.forEachArray(this.legendModel.checkedWholeIndexes,function(e,i){e&&t.push(i)}),t},_checkLegend:function(){var t=this.legendModel.getSelectedDatum();this.legendModel.isCheckedSelectedIndex()||this.legendModel.updateSelectedIndex(null),this._fireChangeCheckedLegendsEvent(),t&&this._fireSelectLegendEvent(t)},_checkboxClick:function(t){var e;this.legendModel.toggleCheckedIndex(t),e=this._getCheckedIndexes(),e.length>0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},_labelClick:function(t){this._selectLegend(t)},_listenEvents:function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)}});l.CustomEvents.mixin(c),n.componentType="legend",n.Legend=c,t.exports=n},function(t,e,i){"use strict";var n=i(6),o=Array.prototype.concat,a=n.forEachArray,r=n.defineClass({init:function(t){this.theme=t.theme,this.labels=t.labels,this.legendData=t.legendData,this.seriesTypes=t.seriesTypes||[],this.chartType=t.chartType,this.data=null,this.selectedIndex=null,this.checkedIndexesMap={},this.checkedWholeIndexes=[],this._setData(),this._initCheckedIndexes()},_initCheckedIndexes:function(){var t=this,e=[];a(this.legendData,function(i,n){i.visible&&e.push(n),t.checkedWholeIndexes[n]=i.visible}),this.updateCheckedLegendsWith(e)},_setThemeToLegendData:function(t,e,i){var o=0;a(t,function(t,a){var r={color:e.colors[a]};e.borderColor&&(r.borderColor=e.borderColor),t.theme=r,t.index=a,i&&n.isUndefined(i[a])?t.seriesIndex=-1:(t.seriesIndex=o,o+=1)})},_setData:function(){var t,e,i=this,a=this.theme,r=this.chartType,s=this.seriesTypes,h=this.legendData,l=this.checkedIndexesMap;!s||s.length<2?(this._setThemeToLegendData(h,a[r],l[r]),t=h):(e=0,t=o.apply([],n.map(s,function(t){var n,o,r=i.labels[t].length,s=e+r;return n=h.slice(e,s),o=l[t],e=s,i._setThemeToLegendData(n,a[t],o),n}))),this.data=t},getData:function(){return this.data},getDatum:function(t){return this.data[t]},getDatumByLabel:function(t){var e=null;return a(this.data,function(i){return i.label===t&&(e=i),!e}),e},getSelectedDatum:function(){return this.getDatum(this.selectedIndex)},updateSelectedIndex:function(t){this.selectedIndex=t},toggleSelectedIndex:function(t){var e;e=this.selectedIndex===t?null:t,this.updateSelectedIndex(e)},getSelectedIndex:function(){return this.selectedIndex},isUnselectedIndex:function(t){return!n.isNull(this.selectedIndex)&&this.selectedIndex!==t},isCheckedSelectedIndex:function(){return this.isCheckedIndex(this.selectedIndex)},toggleCheckedIndex:function(t){this.checkedWholeIndexes[t]=!this.checkedWholeIndexes[t]},_updateCheckedIndex:function(t){this.checkedWholeIndexes[t]=!0},isCheckedIndex:function(t){return!!this.checkedWholeIndexes[t]},_addSendingDatum:function(t){var e=this.getDatum(t);this.checkedIndexesMap[e.chartType]||(this.checkedIndexesMap[e.chartType]=[]),this.checkedIndexesMap[e.chartType][e.index]=!0},checkSelectedIndex:function(){this._updateCheckedIndex(this.selectedIndex),this._addSendingDatum(this.selectedIndex),this._setData()},getCheckedIndexes:function(){return this.checkedIndexesMap},_resetCheckedData:function(){this.checkedWholeIndexes=[],this.checkedIndexesMap={}},updateCheckedLegendsWith:function(t){var e=this;this._resetCheckedData(),a(t,function(t){e._updateCheckedIndex(t),e._addSendingDatum(t)}),this._setData()}});t.exports=r},function(t,e,i){"use strict";function n(t){var e=!!s.isUndefined(t.options.visible)||t.options.visible,i=t.chartOptions.chartType,n=null;return e&&(t.chartType=i,n=new h(t)),n}var o=i(8),a=i(11),r=i(32),s=i(6),h=s.defineClass({init:function(t){var e=t.libType;this.chartType=t.chartType,this.theme=t.theme,this.options=t.options||{},this.dataProcessor=t.dataProcessor,this.colorSpectrum=t.colorSpectrum,this.eventBus=t.eventBus,this.graphRenderer=r.get(e,"mapLegend"),this.isHorizontal=a.isHorizontalLegend(this.options.align),this.scaleData=null,this.drawingType=o.COMPONENT_TYPE_RAPHAEL,this._attachToEventBus()},_attachToEventBus:function(){this.eventBus.on({showWedge:this.onShowWedge,hideTooltip:this.onHideWedge},this),this.eventBus.on("beforeImageDownload",s.bind(this._removeLocationURLFromFillAttribute,this)),this.eventBus.on("afterImageDownload",s.bind(this._restoreLocationURLToFillAttribute,this))},_removeLocationURLFromFillAttribute:function(){this.graphRenderer.removeLocationURLFromFillAttribute()},_restoreLocationURLToFillAttribute:function(){this.graphRenderer.restoreLocationURLToFillAttribute()},_makeBaseDataToMakeTickArea:function(){var t=this.layout.dimension,e=this.scaleData,i=e.stepCount||e.tickCount-1,n={};return n.position=this.layout.position,this.isHorizontal?(n.step=t.width/i,n.position.top+=o.MAP_LEGEND_GRAPH_SIZE+o.MAP_LEGEND_LABEL_PADDING):(n.step=t.height/i,n.position.left+=o.MAP_LEGEND_GRAPH_SIZE+o.MAP_LEGEND_LABEL_PADDING),n},_renderTickArea:function(t){this.graphRenderer.renderTicksAndLabels(this.paper,this._makeBaseDataToMakeTickArea(),this.scaleData.labels,this.isHorizontal,t)},_makeVerticalGraphDimension:function(){return{width:o.MAP_LEGEND_GRAPH_SIZE,height:this.layout.dimension.height}},_makeHorizontalGraphDimension:function(){return{width:this.layout.dimension.width+10,height:o.MAP_LEGEND_GRAPH_SIZE}},_renderGraph:function(t){var e;e=this.isHorizontal?this._makeHorizontalGraphDimension():this._makeVerticalGraphDimension(),this.graphRenderer.render(this.paper,{dimension:e,position:this.layout.position},this.colorSpectrum,this.isHorizontal,t)},_renderLegendArea:function(){var t=this.paper.set();return this._renderGraph(t),this._renderTickArea(t),t},_setDataForRendering:function(t){this.layout=t.layout,this.paper=t.paper,this.scaleData=t.legendScaleData},render:function(t){this._setDataForRendering(t),this.legnedSet=this._renderLegendArea()},rerender:function(t){this.legnedSet.remove(),this.render(t)},resize:function(t){this.rerender(t)},onShowWedge:function(t){this.graphRenderer.showWedge(o.MAP_LEGEND_SIZE*t)},onHideWedge:function(){this.graphRenderer.hideWedge()}});n.componentType="legend",n.SpectrumLegend=h,t.exports=n},function(t,e,i){"use strict";function n(t){var e,i=t.chartOptions.chartType,n=t.chartTheme,o=h.pick(t.chartOptions,"circleLegend","visible"),a=null;return e=!!h.isUndefined(o)||o,e&&(t.chartType=i,t.baseFontFamily=n.chart.fontFamily,a=new l(t)),a}var o=i(8),a=i(45),r=i(7),s=i(32),h=i(6),l=h.defineClass({circleRatios:[1,.5,.25],init:function(t){var e=t.libType;this.chartType=t.chartType,this.dataProcessor=t.dataProcessor,this.labelTheme={fontSize:o.CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:t.baseFontFamily},this.graphRenderer=s.get(e,"circleLegend"),this.layout=null,this.maxRadius=null,this.drawingType=o.COMPONENT_TYPE_RAPHAEL},_formatLabel:function(t,e){var i,n=this.dataProcessor.getFormatFunctions();return i=0===e?String(parseInt(t,10)):r.formatToDecimal(String(t),e),r.formatValue({value:i,formatFunctions:n,chartType:this.chartType,areaType:"circleLegend",valueType:"r"})},_makeLabels:function(){var t=this,e=this.dataProcessor.getMaxValue(this.chartType,"r"),i=a.getDecimalLength(e);return h.map(this.circleRatios,function(n){return t._formatLabel(e*n,i)})},_render:function(t){return this.graphRenderer.render(t,this.layout,this.maxRadius,this.circleRatios,this._makeLabels())},_setDataForRendering:function(t){this.layout=t.layout,this.maxRadius=t.maxRadius},render:function(t){this._setDataForRendering(t),this.circleLegendSet=this._render(t.paper)},rerender:function(t){this.circleLegendSet.remove(),this._setDataForRendering(t),this.circleLegendSet=this._render(t.paper)},resize:function(t){this.rerender(t)}});n.componentType="legend",n.CircleLegend=l,t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n,o=(100*t.ratio).toFixed(4),a=parseFloat(o),r=a<9e-4||o.length>5;return o=r?o.substr(0,4):String(a),n=o+"&nbsp;%&nbsp;"||"",e.ratioLabel=i+n,e.label=t.tooltipLabel||(t.label?t.label:""),e}function o(t){var e,i=t.chartOptions.chartType,o=t.seriesTypes,u=t.chartOptions.xAxis,c=[];return l.forEach(l.filter(t.chartTheme.legend,function(t){return l.isArray(t.colors)}),function(t){c=c.concat(t.colors)}),e="map"===i?s:t.options.grouped?r:a,("pie"===i||h.isPieDonutComboChart(i,o))&&(t.labelFormatter=n),t.chartType=i,t.chartTypes=o,t.xAxisType=u.type,t.dateFormat=u.dateFormat,t.colors=c,e(t)}var a=i(61),r=i(66),s=i(68),h=i(11),l=i(6);o.componentType="tooltip",t.exports=o},function(t,e,i){"use strict";function n(t){return new u(t)}var o=i(62),a=i(63),r=i(8),s=i(11),h=i(64),l=i(6),u=l.defineClass(o,{init:function(){o.apply(this,arguments)},_makeTooltipHtml:function(t,e){var i=this._getTooltipTemplate(e);return i(l.extend({categoryVisible:t?"show":"hide",category:t},e))},_getTooltipTemplate:function(t){var e=h.tplDefault;return s.isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):s.isPieChart(this.chartType)||s.isPieDonutComboChart(this.chartType,this.chartTypes)?e=h.tplPieChart:this.dataProcessor.coordinateType?e=h.tplCoordinatetypeChart:s.isBulletChart(this.chartType)&&(e=h.tplBulletChartDefault),e},_getBoxplotTooltipTemplate:function(t){var e=h.tplBoxplotChartDefault;return l.isNumber(t.outlierIndex)&&(e=h.tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},_makeHtmlForValueTypes:function(t,e){return l.map(e,function(e){return t[e]?"<div>"+e+": "+t[e]+"</div>":""}).join("")},_makeSingleTooltipHtml:function(t,e){var i=e.groupIndex,n=l.extend({},l.pick(this.data,t,e.groupIndex,e.index));return s.isBoxplotChart(this.chartType)&&l.isNumber(e.outlierIndex)&&(n.outlierIndex=e.outlierIndex),n=l.extend({suffix:this.suffix},n),n.valueTypes=this._makeHtmlForValueTypes(n,["x","y","r"]),this.templateFunc(n.category,n,this.getRawCategory(i))},_setDefaultTooltipPositionOption:function(){this.options.align||(this.isVertical?this.options.align=r.TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=r.TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},_makeShowTooltipParams:function(t,e){var i,n,o=t.index,a=this.dataProcessor.getLegendItem(o);return a?(i=a.chartType,n=l.extend({chartType:i,legend:a.label,legendIndex:o,index:t.groupIndex},e),s.isBoxplotChart(i)&&l.isNumber(t.outlierIndex)&&(n.outlierIndex=t.outlierIndex),n):null},_makeTooltipDatum:function(t,e,i){var n=t&&i.label?":&nbsp;":"",o=i.tooltipLabel,a=this.labelFormatter,r={legend:t||"",label:o||(i.label?n+i.label:""),category:e||""};return a&&(r=a(i,r,n)),r.category=e||"",l.extend(r,i.pickValueMapForTooltip())},makeTooltipData:function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=s.isTreemapChart(this.chartType),n={},o={};return l.isArray(e)?n[this.chartType]=e:n=e,this.dataProcessor.eachBySeriesGroup(function(e,i,a){var r,h;a=a||t.chartType,h=s.isBulletChart(a),r=e.map(function(e,o){var r=t.dataProcessor.makeTooltipCategory(i,o,t.isVertical),s=h?i:o;return e?t._makeTooltipDatum(n[a][s],r,e):null}),o[a]||(o[a]=[]),o[a].push(r)},i),o}});a.mixin(u),n.componentType="tooltip",n.NormalTooltip=u,t.exports=n},function(t,e,i){"use strict";var n=i(6),o=i(8),a=i(9),r=i(11),s=i(7),h=n.defineClass({init:function(t){var e=r.isPieChart(t.chartType);this.chartType=t.chartType,this.chartTypes=t.chartTypes,this.dataProcessor=t.dataProcessor,this.options=t.options,this.colors=t.colors,this.theme=t.theme,this.isVertical=t.isVertical,this.eventBus=t.eventBus,this.labelTheme=t.labelTheme,this.xAxisType=t.xAxisType,this.dateFormat=t.dateFormat,this.labelFormatter=t.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?"&nbsp;"+this.options.suffix:"",this.templateFunc=this.options.template||n.bind(this._makeTooltipHtml,this),this.animationTime=e?o.TOOLTIP_PIE_ANIMATION_TIME:o.TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=o.COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()},_attachToEventBus:function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},_makeTooltipHtml:function(){},_setDefaultTooltipPositionOption:function(){},_saveOriginalPositionOptions:function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},makeTooltipData:function(){},_setDataForRendering:function(t){this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap},render:function(t){var e=t.paper;return a.addClass(e,this.className),this._setDataForRendering(t),this.data=this.makeTooltipData(),s.renderPosition(e,this.layout.position),this.tooltipContainer=e,e},rerender:function(t){this.resize(t),this.data=this.makeTooltipData()},resize:function(t){this._setDataForRendering(t),s.renderPosition(this.tooltipContainer,this.layout.position),this.positionModel&&this.positionModel.updateBound(this.layout)},zoom:function(){this.data=this.makeTooltipData()},_getTooltipElement:function(){var t;return this.tooltipElement||(this.tooltipElement=t=a.create("DIV","tui-chart-tooltip"),a.append(this.tooltipContainer,t)),this.tooltipElement},onShowTooltip:function(t){var e,i=this._getTooltipElement(),n=r.isComboChart(this.chartType)&&r.isScatterChart(t.chartType);r.isChartToDetectMouseEventOnSeries(t.chartType)&&!n||!i.offsetWidth||(e={left:i.offsetLeft,top:i.offsetTop}),this._showTooltip(i,t,e)},getTooltipDimension:function(t){return{width:t.offsetWidth,height:t.offsetHeight}},_moveToPosition:function(t,e,i){i?this._slideTooltip(t,i,e):s.renderPosition(t,e)},_slideTooltip:function(t,e,i){var n=i.top-e.top,o=i.left-e.left;s.cancelAnimation(this.slidingAnimation),this.slidingAnimation=s.startAnimation(this.animationTime,function(i){var a=o*i,r=n*i;t.style.left=e.left+a+"px",t.style.top=e.top+r+"px"})},onHideTooltip:function(t,e){var i=this._getTooltipElement();this._hideTooltip(i,t,e)},setAlign:function(t){this.options.align=t,this.positionModel&&this.positionModel.updateOptions(this.options)},_updateOffsetOption:function(t){this.options.offset=t,this.positionModel&&this.positionModel.updateOptions(this.options)},setOffset:function(t){var e=n.extend({},this.options.offset);n.isExisty(t.x)&&(e.x=t.x),n.isExisty(t.y)&&(e.y=t.y),this._updateOffsetOption(n.extend({},this.options.offset,e))},setPosition:function(t){var e=n.extend({},this.options.offset);n.isExisty(t.left)&&(e.x=t.left),n.isExisty(t.top)&&(e.y=t.y),this._updateOffsetOption(e)},resetAlign:function(){var t=this.orgPositionOptions.align;this.options.align=t,this.positionModel&&this.positionModel.updateOptions(this.options)},resetOffset:function(){this.options.offset=this.orgPositionOptions.offset,this._updateOffsetOption(this.options.offset)},getRawCategory:function(t,e){var i=this.isVertical?"x":"y",n=this.dataProcessor.categoriesMap?this.dataProcessor.categoriesMap[i]:null,o="";return n&&(o=n[t]),e&&(o=s.formatDate(o,e)),o}});t.exports=h},function(t,e,i){"use strict";var n=i(6),o=i(8),a=i(11),r=i(9),s=i(7),h={_setIndexesCustomAttribute:function(t,e){t.setAttribute("data-groupIndex",e.groupIndex),t.setAttribute("data-index",e.index)},_getIndexesCustomAttribute:function(t){var e=t.getAttribute("data-groupIndex"),i=t.getAttribute("data-index"),o=null;return n.isNull(e)||n.isNull(i)||(o={groupIndex:parseInt(e,10),index:parseInt(i,10)}),o},_setShowedCustomAttribute:function(t,e){t.setAttribute("data-showed",e)},_isShowedTooltip:function(t){var e=t.getAttribute("data-showed");return"true"===e||e===!0},_makeTooltipPositionForBulletChart:function(t){var e=t.mousePosition,i=this.layout.position;return{left:e.left-i.left,top:e.top-i.top}},_makeLeftPositionOfNotBarChart:function(t,e,i,n){var a=t,r=i||0,s=n||o.TOOLTIP_GAP;return e.indexOf("left")>-1?a-=r+s:e.indexOf("center")>-1&&r?a-=r/2:a+=s,a},_makeTopPositionOfNotBarChart:function(t,e,i,n){var a=t,r=i||0;return e.indexOf("bottom")>-1?a+=r+n:e.indexOf("middle")>-1&&r?a+=r/2:a-=r+o.TOOLTIP_GAP,a},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,n=t.dimension.width-(e.width||0),a=e.width?0:o.TOOLTIP_GAP,r=t.alignOption||"",s=t.dimension.height,h=e.left-this.layout.position.left+i.left,l=e.top-this.layout.position.top+i.top-o.TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(h,r,n,a),top:this._makeTopPositionOfNotBarChart(l,r,s,a)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},n.extend(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("left")>-1?n-=i:e.indexOf("center")>-1?n-=i/2:n+=o.TOOLTIP_GAP,n},_makeTopPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("top")>-1?n-=i:e.indexOf("middle")>-1&&(n-=i/2),n},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,o=t.dimension.height-(i.height||0),a=t.alignOption||"",r=t.dimension.width,s=i.left+i.width+n.left-e.left,h=i.top+n.top-e.top;return{left:this._makeLeftPositionForBarChart(s,a,r),top:this._makeTopPositionForBarChart(h,a,o)
15
+ }},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,a=s.getRenderedLabelHeight(o.MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-t.dimension.width)/2+n.left-e.left,top:i.top+i.height/2-a+n.top-e.top}},_adjustPosition:function(t,e){var i=this.dimensionMap.chart,n=this.layout.position;return e.left=Math.max(e.left,-n.left),e.left=Math.min(e.left,i.width-n.left-t.width),e.top=Math.max(e.top,-n.top),e.top=Math.min(e.top,i.height-n.top-t.height),e},_makeTooltipPosition:function(t){var e,i,n,o={};return t.mousePosition?o=this._makeTooltipPositionToMousePosition(t):(a.isBarChart(t.chartType)?(o=this._makeTooltipPositionForBarChart(t),e="width",i="left",n=1):a.isTreemapChart(t.chartType)?o=this._makeTooltipPositionForTreemapChart(t):(o=this._makeTooltipPositionForNotBarChart(t),e="height",i="top",n=-1),t.allowNegativeTooltip&&(o=this._moveToSymmetry(o,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:e,positionType:i,addPadding:n})),o=this._adjustPosition(t.dimension,o)),o},_moveToSymmetry:function(t,e){var i,n,o,r=e.bound,s=e.sizeType,h=e.positionType,l=e.seriesType||e.chartType,u=this.dataProcessor.getValue(e.indexes.groupIndex,e.indexes.index,l),c=a.isBarChart(this.chartType)?-1:1;return u<0&&(i=e.dimension[s],n=r[s],o=t[h]+(n+i)*c,t[h]=o),t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,i){var a,s=this.tooltipContainer.parentNode.getBoundingClientRect(),h=e.indexes,l=this._getIndexesCustomAttribute(t),u=this.options.offset||{},c={},d=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-s.left+o.CHART_PADDING,top:e.mousePosition.top-s.top+o.CHART_PADDING}),(this._isChangedIndexes(l,h)||d!==e.chartType)&&this.eventBus.fire("hoverOffSeries",l,d),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,h),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,h),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(h,e.silent),r.addClass(t,"show"),c.left=u.x||0,c.top=u.y||0,a=this._makeTooltipPosition(n.extend({dimension:this.getTooltipDimension(t),positionOption:c,alignOption:this.options.align||""},e)),this._moveToPosition(t,a,i),this.eventBus.fire("hoverSeries",h,e.chartType),this._fireAfterShowTooltipPublicEvent(h,{element:t,position:a},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){var i;e||(i=this._makeShowTooltipParams(t),this.eventBus.fire(o.PUBLIC_EVENT_PREFIX+"beforeShowTooltip",i))},_fireAfterShowTooltipPublicEvent:function(t,e,i){var n;i||(n=this._makeShowTooltipParams(t,e),this.eventBus.fire(o.PUBLIC_EVENT_PREFIX+"afterShowTooltip",n))},_executeHidingTooltip:function(t){r.removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,i){var n=this,r=this._getIndexesCustomAttribute(t),s=t.getAttribute("data-chart-type"),h=!(!i||!i.silent);a.isChartToDetectMouseEventOnSeries(s)?(this.eventBus.fire("hoverOffSeries",r,s),this._fireBeforeHideTooltipPublicEvent(r,h),this._executeHidingTooltip(t)):s&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",r,s),this._isChangedIndexes(this.prevIndexes,r)&&delete this.prevIndexes,setTimeout(function(){n._isShowedTooltip(t)||(n._fireBeforeHideTooltipPublicEvent(r,h),n._executeHidingTooltip(t))},o.HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){var i;e||this.eventBus.fire(o.PUBLIC_EVENT_PREFIX+"beforeHideTooltip",i)},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=o.TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){n.extend(t.prototype,this)}};t.exports=h},function(t,e,i){"use strict";var n=i(65),o={HTML_DEFAULT_TEMPLATE:'<div class="tui-chart-default-tooltip"><div class="{{ categoryVisible }}">{{ category }}</div><div><span>{{ legend }}</span><span>{{ label }}</span><span>{{ suffix }}</span></div></div>',HTML_PIE_TEMPLATE:'<div class="tui-chart-default-tooltip"><div class="{{ categoryVisible }}">{{ category }}</div><div><span>{{ legend }}</span><span>{{ ratioLabel }}</span><span>( {{ label }} {{ suffix }})</span></div></div>',HTML_COORDINATE_TYPE_CHART_TEMPLATE:'<div class="tui-chart-default-tooltip"><div>{{ category }}</div><div><span>{{ legend }}</span><span>{{ label }}</span></div>{{ valueTypes }}</div>',HTML_GROUP:'<div class="tui-chart-default-tooltip tui-chart-group-tooltip"><div>{{ category }}</div>{{ items }}</div>',HTML_GROUP_TYPE:'<div class="tui-chart-tooltip-type">{{ type }}</div>',HTML_GROUP_ITEM:'<div><div class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></div>&nbsp;<span>{{ legend }}</span>:&nbsp;<span>{{ value }}</span><span>{{ suffix }}</span></div>',GROUP_CSS_TEXT:"background-color:{{ color }}",HTML_MAP_CHART_DEFAULT_TEMPLATE:'<div class="tui-chart-default-tooltip"><div>{{ name }}: {{ value }}{{ suffix }}</div></div>',HTML_BOXPLOT_TEMPLATE:'<div class="tui-chart-default-tooltip"><div class="{{ categoryVisible }}">{{ category }}</div><div><span>{{ legend }}</span></div><div><span>Maximum: </span><span>{{ maxLabel }}</span><span>{{ suffix }}</span></div><div><span>Upper Quartile: </span><span>{{ uqLabel }}</span><span>{{ suffix }}</span></div><div><span>Median: </span><span>{{ medianLabel }}</span><span>{{ suffix }}</span></div><div><span>Lower Quartile: </span><span>{{ lqLabel }}</span><span>{{ suffix }}</span></div><div><span>Minimum: </span><span>{{ minLabel }}</span><span>{{ suffix }}</span></div></div>',HTML_BOXPLOT_OUTLIER:'<div class="tui-chart-default-tooltip"><div class="{{ categoryVisible }}">{{ category }}</div><div><span>{{ legend }}</span></div><div><span>Outlier: </span><span>{{ label }}</span><span>{{ suffix }}</span></div></div>',HTML_BULLET_TEMPLATE:'<div class="tui-chart-default-tooltip"><div class="{{ categoryVisible }}">{{ category }}<span>{{ label }}</span><span>{{ suffix }}</span></div></div>'};t.exports={tplDefault:n.template(o.HTML_DEFAULT_TEMPLATE),tplPieChart:n.template(o.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:n.template(o.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:n.template(o.HTML_GROUP),tplGroupType:n.template(o.HTML_GROUP_TYPE),tplGroupItem:n.template(o.HTML_GROUP_ITEM),tplGroupCssText:n.template(o.GROUP_CSS_TEXT),tplMapChartDefault:n.template(o.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplBoxplotChartDefault:n.template(o.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:n.template(o.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:n.template(o.HTML_BULLET_TEMPLATE)}},function(t,e,i){"use strict";var n=i(6);t.exports={template:function(t){return function(e){var i=t;return n.forEach(e,function(t,e){var n=new RegExp("{{\\s*"+e+"\\s*}}","g");i=i.replace(n,String(t).replace("$","$"))}),i}}}},function(t,e,i){"use strict";function n(t){return new p(t)}var o=i(62),a=i(67),r=i(8),s=i(9),h=i(7),l=i(34),u=i(64),c=i(6),d=i(11),p=c.defineClass(o,{init:function(t){this.prevIndex=null,this.isBullet=d.isBulletChart(t.chartType),o.call(this,t)},_makeTooltipHtml:function(t,e,i,n){var o,a,r=u.tplGroupItem,s=u.tplGroupCssText,h=this._makeColors(this.theme,n);return a=c.map(e,function(t,e){var i=t.type,n="data"!==i&&o!==i,a="";return o=i,t.value?(n&&(a=u.tplGroupType({type:i})),a+=r(c.extend({cssText:s({color:h[e]})},t))):null}).join(""),u.tplGroup({category:t,items:a})},_setDefaultTooltipPositionOption:function(){this.options.align||(this.isVertical?this.options.align=r.TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:this.options.align=r.TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION)},render:function(t){var e=o.prototype.render.call(this,t),i=this.dimensionMap.chart,n=this.layout;return t.checkedLegends&&(this.theme={colors:this.colors}),this.positionModel=new a(i,n,this.isVertical,this.options),e},rerender:function(t){o.prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},zoom:function(){this.prevIndex=null,o.prototype.zoom.call(this)},_updateLegendTheme:function(t){var e=[];return c.forEachArray(this.dataProcessor.getOriginalLegendData(),function(i){var n=t[i.chartType]||t;n[i.index]&&e.push(i.theme.color)}),{colors:e}},makeTooltipData:function(){var t=this.dataProcessor.getCategoryCount(this.isVertical);return c.map(this.dataProcessor.getSeriesGroups(),function(e,i){var n=e.map(function(t){return{type:t.type||"data",label:t.label}});return{category:this.dataProcessor.makeTooltipCategory(i,t-i,this.isVertical),values:n}},this)},_makeColors:function(t,e){var i,n,o,a=0,r=this.dataProcessor.getLegendData();return this.isBullet?this.dataProcessor.getGraphColors()[e]:t.colors?t.colors:(i=l.series.colors.slice(0,r.length),c.map(c.pluck(r,"chartType"),function(e){var r;return o!==e&&(n=t[e]?t[e].colors:i,a=0),o=e,r=n[a],a+=1,r}))},_makeItemRenderingData:function(t,e){var i=this.dataProcessor,n=this.suffix;return c.map(t,function(t,o){var a,r={value:t.label,type:t.type,suffix:n,legend:""};return this.isBullet?a=i.getLegendItem(e):(a=i.getLegendItem(o),r.legend=a.label),r.chartType=a.chartType,r},this)},_makeGroupTooltipHtml:function(t){var e,i=this.data[t],n="";return i&&(e=this._makeItemRenderingData(i.values,t),n=this.templateFunc(i.category,e,this.getRawCategory(t),t)),n},_getTooltipSectorElement:function(){var t;return this.groupTooltipSector||(this.groupTooltipSector=t=s.create("DIV","tui-chart-group-tooltip-sector"),s.append(this.tooltipContainer,t)),this.groupTooltipSector},_makeVerticalTooltipSectorBound:function(t,e,i){var n;return n=i?1:e.end-e.start,{dimension:{width:n,height:t},position:{left:e.start,top:r.SERIES_EXPAND_SIZE}}},_makeHorizontalTooltipSectorBound:function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:r.SERIES_EXPAND_SIZE,top:e.start}}},_makeTooltipSectorBound:function(t,e,i,n){var o;return o=i?this._makeVerticalTooltipSectorBound(t,e,n):this._makeHorizontalTooltipSectorBound(t,e)},_showTooltipSector:function(t,e,i,n,o){var a=this._getTooltipSectorElement(),r=e.start===e.end,l=this._makeTooltipSectorBound(t,e,i,r);r?this.eventBus.fire("showGroupTooltipLine",l):(h.renderDimension(a,l.dimension),h.renderPosition(a,l.position),s.addClass(a,"show")),o&&(n-=1),this.eventBus.fire("showGroupAnimation",n)},_hideTooltipSector:function(t){var e=this._getTooltipSectorElement();s.hasClass(e,"show")?s.removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},_showTooltip:function(t,e,i){var n,o;c.isNull(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),s.addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving),n=this.getTooltipDimension(t),o=this.positionModel.calculatePosition(n,e.range),this._moveToPosition(t,o,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:o},e.silent),this.prevIndex=e.index},_fireBeforeShowTooltipPublicEvent:function(t,e,i){i||this.eventBus.fire(r.PUBLIC_EVENT_PREFIX+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},_fireAfterShowTooltipPublicEvent:function(t,e,i,n){n||this.eventBus.fire(r.PUBLIC_EVENT_PREFIX+"afterShowTooltip",c.extend({chartType:this.chartType,index:t,range:e},i))},_hideTooltip:function(t,e,i){var n=!(!i||!i.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,n),this._hideTooltipSector(e),s.removeClass(t,"show"),t.style.cssText=""},_fireBeforeHideTooltipPublicEvent:function(t,e){e||this.eventBus.fire(r.PUBLIC_EVENT_PREFIX+"beforeHideTooltip",{chartType:this.chartType,index:t})}});n.componentType="tooltip",n.GroupTooltip=p,t.exports=n},function(t,e,i){"use strict";var n=i(8),o=i(6),a=o.defineClass({init:function(t,e,i,n){this.chartDimension=t,this.areaBound=e,this.isVertical=i,this.options=n,this.positions={},this._setData(t,e,i,n)},_getHorizontalDirection:function(t){var e;return t=t||"",e=t.indexOf("left")>-1?n.TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?n.TOOLTIP_DIRECTION_CENTER:n.TOOLTIP_DIRECTION_FORWARD},_makeVerticalData:function(t,e,i){var o=this._getHorizontalDirection(i);return{positionType:"left",sizeType:"width",direction:o,areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:n.SERIES_EXPAND_SIZE}},_getVerticalDirection:function(t){var e;return t=t||"",e=t.indexOf("top")>-1?n.TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?n.TOOLTIP_DIRECTION_FORWARD:n.TOOLTIP_DIRECTION_CENTER},_makeHorizontalData:function(t,e,i){var o=this._getVerticalDirection(i);return{positionType:"top",sizeType:"height",direction:o,areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:n.SERIES_EXPAND_SIZE}},_setData:function(t,e,i,n){var o=this._makeVerticalData(t,e,n.align),a=this._makeHorizontalData(t,e,n.align),r=n.offset||{};i?(this.mainData=o,this.subData=a):(this.mainData=a,this.subData=o),this.positionOption={},this.positionOption.left=r.x||0,this.positionOption.top=r.y||0,this.positions={}},_calculateMainPositionValue:function(t,e,i){var o=e.start===e.end,a=9,r=5,s=o?a:r,h=i.basePosition;return h+=i.direction===n.TOOLTIP_DIRECTION_FORWARD?e.end+s:i.direction===n.TOOLTIP_DIRECTION_BACKWARD?e.start-t-s:o?e.start-t/2:e.start+(e.end-e.start-t)/2},_calculateSubPositionValue:function(t,e){var i,o=e.areaSize/2;return i=e.direction===n.TOOLTIP_DIRECTION_FORWARD?o+e.basePosition:e.direction===n.TOOLTIP_DIRECTION_BACKWARD?o-t+e.basePosition:o-t/2+e.basePosition},_makePositionValueDiff:function(t,e,i){return t+i.areaPosition+e-i.chartSize},_adjustBackwardPositionValue:function(t,e,i,o){var a;return t<-o.areaPosition&&(a=this._calculateMainPositionValue(i,e,{direction:n.TOOLTIP_DIRECTION_FORWARD,basePosition:o.basePosition}),t=this._makePositionValueDiff(a,i,o)>0?-o.areaPosition:a),t},_adjustForwardPositionValue:function(t,e,i,o){var a,r=this._makePositionValueDiff(t,i,o);return r>0&&(a=this._calculateMainPositionValue(i,e,{direction:n.TOOLTIP_DIRECTION_BACKWARD,basePosition:o.basePosition}),a<-o.areaPosition?t-=r:t=a),t},_adjustMainPositionValue:function(t,e,i,o){return o.direction===n.TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,i,o):o.direction===n.TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,i,o):(t=Math.max(t,-o.areaPosition),t=Math.min(t,o.chartSize-o.areaPosition-i)),t},_adjustSubPositionValue:function(t,e,i){return t=i.direction===n.TOOLTIP_DIRECTION_FORWARD?Math.min(t,i.chartSize-i.areaPosition-e):Math.max(t,-i.areaPosition)},_makeCachingKey:function(t){return t.start+"-"+t.end},_addPositionOptionValue:function(t,e){return t+this.positionOption[e]},_makeMainPositionValue:function(t,e,i){var n;return n=this._calculateMainPositionValue(t[i.sizeType],e,i),n=this._addPositionOptionValue(n,i.positionType),n=this._adjustMainPositionValue(n,e,t[i.sizeType],i)},_makeSubPositionValue:function(t,e){var i;return i=this._calculateSubPositionValue(t[e.sizeType],e),i=this._addPositionOptionValue(i,e.positionType),i=this._adjustSubPositionValue(i,t[e.sizeType],e)},calculatePosition:function(t,e){var i=this._makeCachingKey(e),n=this.mainData,o=this.subData,a=this.positions[i];return a||(a={},a[n.positionType]=this._makeMainPositionValue(t,e,n),a[o.positionType]=this._makeSubPositionValue(t,o),this.positions[i]=a),a},updateOptions:function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},updateBound:function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)}});t.exports=a},function(t,e,i){"use strict";function n(t){return new l(t)}var o=i(8),a=i(62),r=i(63),s=i(64),h=i(6),l=h.defineClass(a,{init:function(t){this.mapModel=t.mapModel,a.apply(this,arguments)},_makeTooltipHtml:function(t){return s.tplMapChartDefault(t)},_makeSingleTooltipHtml:function(t,e){var i=this.mapModel.getDatum(e.index),n=this.options.suffix?" "+this.options.suffix:"";return this.templateFunc({name:i.name||i.code,value:i.label,suffix:n})},_makeShowTooltipParams:function(t,e){var i,n=this.mapModel.getDatum(t.index);return i=h.extend({chartType:this.chartType,code:n.code,name:n.name,value:n.label,index:t.index},e)},_setDefaultTooltipPositionOption:function(){this.options.align||(this.options.align=o.TOOLTIP_DEFAULT_ALIGN_OPTION)}});r.mixin(l),n.componentType="tooltip",t.exports=n},function(t,e,i){"use strict";function n(t){return new u(t)}var o=i(70),a=i(8),r=i(55),s=i(9),h=i(7),l=i(6),u=l.defineClass(o,{init:function(t){this.chartType=t.chartType,this.eventBus=t.eventBus,this.isDown=!1,this.drawingType=a.COMPONENT_TYPE_DOM},_renderMouseEventDetectorArea:function(t){h.renderDimension(t,this.layout.dimension),h.renderPosition(t,this.layout.position)},_onClick:function(){},_onMousedown:function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},_dragEnd:function(){this.isDrag=!1,s.removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},_onMouseup:function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},_onMousemove:function(t){this.isDown?(this.isDrag||s.addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},_onMouseout:function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},_onMousewheel:function(t){var e=t.wheelDelta||t.detail*a.FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},attachEvent:function(t){o.prototype.attachEvent.call(this,t),l.browser.firefox?r.on(t,"DOMMouseScroll",this._onMousewheel,this):r.on(t,"mousewheel",this._onMousewheel,this)}});n.componentType="mouseEventDetector",t.exports=n},function(t,e,i){"use strict";var n=i(71),o=i(72),a=i(8),r=i(55),s=i(11),h=i(9),l=i(7),u=i(6),c=u.defineClass({init:function(t){var e;this.chartType=t.chartType,this.chartTypes=t.chartTypes,this.isVertical=t.isVertical,this.dataProcessor=t.dataProcessor,this.allowSelect=t.allowSelect,this.eventBus=t.eventBus,this.layout=null,this.selectedData=null,e=s.isLineTypeChart(this.chartType,this.chartTypes),this.expandSize=e?a.SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=s.isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=a.COMPONENT_TYPE_DOM},_attachToEventBus:function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},_getRenderingBound:function(){var t=l.expandBound(this.layout);return t},_renderMouseEventDetectorArea:function(t,e){var i,o,a=this.layout.dimension;this.dimension=a,o=new n(this.layout,e,this.chartType,this.isVertical,this.chartTypes),this.tickBaseCoordinateModel=o,i=this._getRenderingBound(),l.renderDimension(t,i.dimension),l.renderPosition(t,i.position)},_setDataForRendering:function(t){this.layout=t.layout},_pickTickCount:function(t){var e;return e=this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},render:function(t){var e,i=t.paper;return this.positionMap=t.positionMap,h.addClass(i,"tui-chart-series-custom-event-area"),t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(i,e),this.attachEvent(i),this.mouseEventDetectorContainer=i,this.transparentChild=this._createTransparentChild(),h.append(i,this.transparentChild),i},_createTransparentChild:function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=l.getStyle(this.mouseEventDetectorContainer).height,l.setOpacity(t,0),t},_calculateLayerPosition:function(t,e,i){var n,o,r=this.mouseEventDetectorContainer.getBoundingClientRect(),s=this.positionMap.series,h=this.expandSize,l={};return i=!!u.isUndefined(i)||i,i&&(n=r.right-h,o=r.left+h,t=Math.min(Math.max(t,o),n)),l.x=t-r.left+s.left-a.CHART_PADDING,u.isUndefined(e)||(l.y=e-r.top+s.top-a.CHART_PADDING),l},onReceiveSeriesData:function(t){var e=this.seriesItemBoundsData,i=this.seriesCount;e.length===i&&(e=[]),e.push(t),e.length===i&&(this.boundsBaseCoordinateModel=new o(e))},rerender:function(t){var e;t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=l.getStyle(this.mouseEventDetectorContainer).height},resize:function(t){this.containerBound=null,this.rerender(t)},_isChangedSelectData:function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},_findDataFromBoundsCoordinateModel:function(t){var e,i=t.x,n=t.y;return e=s.isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?i:n),this.boundsBaseCoordinateModel.findData(e,i,n)},_findData:function(t,e){var i=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(i)},_showTooltip:function(){},_hideTooltip:function(){},_onMouseEvent:function(t,e){h.addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),h.removeClass(this.mouseEventDetectorContainer,"hide")},_unselectSelectedData:function(){this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null},_onClick:function(t){var e=this._findData(t.clientX,t.clientY);this._isChangedSelectData(this.selectedData,e)?e&&(this.selectedData&&this._unselectSelectedData(),this.eventBus.fire("selectSeries",e),this.allowSelect&&(this.selectedData=e)):this._unselectSelectedData()},_onMousedown:function(){},_onMouseup:function(){},_onMousemove:function(){},_onMouseout:function(){},attachEvent:function(t){r.on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},findDataByIndexes:function(){},_setPrevClientPosition:function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null}});u.CustomEvents.mixin(c),t.exports=c},function(t,e,i){"use strict";var n=i(11),o=i(10),a=i(6),r=a.defineClass({init:function(t,e,i,o,a){this.isLineType=n.isLineTypeChart(i,a),this.data=this._makeData(t,e,o)},_getRanges:function(t,e,i){var n=e,o=i/2;return a.map(a.range(0,t),function(){var t={min:n-o,max:n+o};return n+=i,t})},_makeLineTypeData:function(t,e,i){var n=(t+1)/(e-1),o=this._getRanges(e,i||0,n);return o[e-1].max-=1,o},_makeNormalData:function(t,e,i){var n=e-1,r=t/n,s=i||0;return a.map(a.range(0,n),function(){var e=o.min([t+s,r+s]),i={min:s,max:e};return s=e,i})},_makeData:function(t,e,i){var n,o=i?"width":"height",a=i?"left":"top";return n=this.isLineType?this._makeLineTypeData(t.dimension[o],e,t.position[a]):this._makeNormalData(t.dimension[o],e,t.position[a])},findIndex:function(t){var e=-1;return a.forEachArray(this.data,function(i,n){return!(i.min<t&&i.max>=t)||(e=n,!1)}),e},getLastIndex:function(){return this.data.length-1},makeRange:function(t,e){var i,n,o=this.data[t];return this.isLineType?(n=parseInt(o.max-(o.max-o.min)/2,10),i={start:n,end:n}):i={start:o.min-(e||0),end:o.max-(e||0)},i}});t.exports=r},function(t,e,i){"use strict";var n=i(8),o=i(11),a=i(10),r=i(6),s=r.defineClass({init:function(t){this.data=this._makeData(t)},_makeTooltipData:function(t,e,i,n){return{sendData:{chartType:t,indexes:e,allowNegativeTooltip:i,bound:n},bound:{left:n.left,top:n.top,right:n.left+n.width,bottom:n.top+n.height}}},_makeRectTypePositionData:function(t,e){var i=!o.isBoxTypeChart(e);return r.map(t,function(t,n){return r.map(t,function(t,o){return t?this._makeTooltipData(e,{groupIndex:n,index:o},i,t.end||t):null},this)},this)},_makeOutliersPositionDataForBoxplot:function(t,e,i){var n=!o.isBoxTypeChart(e),a=[].concat(t);r.forEach(a,function(t,o){r.forEach(t,function(t,a){var s;t.outliers&&t.outliers.length&&(s=r.map(t.outliers,function(t,i){var r={top:t.top-3,left:t.left-3,width:6,height:6};return this._makeTooltipData(e,{groupIndex:o,index:a,outlierIndex:i},n,r)},this),i[o]=i[o].concat(s))},this)},this)},_makeDotTypePositionData:function(t,e){return t?r.map(a.pivot(t),function(t,i){return r.map(t,function(t,o){return t?{sendData:{chartType:e,indexes:{groupIndex:i,index:o},bound:t},bound:{left:t.left-n.DOT_RADIUS,top:t.top-n.DOT_RADIUS,right:t.left+n.DOT_RADIUS,bottom:t.top+n.DOT_RADIUS}}:null})}):[]},_joinData:function(t){var e=[];return r.forEachArray(t,function(t){r.forEachArray(t,function(t,i){var n;e[i]?(n=e[i].length,r.forEachArray(t,function(t){t&&(t.sendData.indexes.legendIndex=t.sendData.indexes.index+n)}),e[i]=e[i].concat(t)):e[i]=t})}),e},_makeData:function(t){var e=r.map(t,function(t){var e;return e=o.isLineTypeChart(t.chartType)?this._makeDotTypePositionData(t.data.groupPositions,t.chartType):this._makeRectTypePositionData(t.data.groupBounds,t.chartType),o.isBoxplotChart(t.chartType)&&this._makeOutliersPositionDataForBoxplot(t.data.groupBounds,t.chartType,e),e},this);return this._joinData(e)},_findCandidates:function(t,e,i){return r.filter(t,function(t){var n,o,a=t&&t.bound,r=!1;return a&&(n=a.left<=e&&a.right>=e,o=a.top<=i&&a.bottom>=i,r=n&&o),r})},findData:function(t,e,i){var n,o=1e4,a=null;return t>-1&&this.data[t]&&(n=this._findCandidates(this.data[t],e,i),r.forEachArray(n,function(t){var e=Math.abs(i-t.bound.top);o>e&&(o=e,a=t.sendData)})),a},findDataByIndexes:function(t){var e=this.data[t.index][t.seriesIndex].sendData;return r.isNumber(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},_findOutlierDataByIndexes:function(t){var e=null;return r.forEachArray(this.data[t.index],function(i){var n=i.sendData.indexes,o=n.index===t.seriesIndex&&n.outlierIndex===t.outlierIndex;return o&&(e=i.sendData),!o}),e}});t.exports=s},function(t,e,i){"use strict";function n(t){var e,i=t.chartOptions.chartType,n=t.seriesTypes,u=t.chartOptions.series.zoomable,c=t.chartOptions.series.allowSelect;return e=t.chartOptions.tooltip.grouped?s:o.isMapChart(i)?l:o.isBarTypeChart(i)||o.isBoxplotChart(i)||o.isHeatmapChart(i)||o.isTreemapChart(i)||o.isBulletChart(i)?h:o.isCoordinateTypeChart(i)||o.isPieChart(i)||o.isPieDonutComboChart(i,n)?r:a,t.chartType=i,t.chartTypes=n,t.zoomable=u,t.allowSelect=c,e(t)}var o=i(11),a=i(74),r=i(77),s=i(78),h=i(79),l=i(69);n.componentType="mouseEventDetector",t.exports=n},function(t,e,i){"use strict";function n(t){return new l(t)}var o=i(70),a=i(75),r=i(76),s=i(6),h=50,l=s.defineClass(o,{init:function(t){o.call(this,t),this.prevFoundData=null,this.prevClientPosition=null,this.zoomable=t.zoomable,this.zoomable&&(s.extend(this,a),this._initForZoom(t.zoomable))},animateForAddingData:function(){var t,e;this.prevClientPosition&&(t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y),t&&(e=this.prevFoundData&&this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,this._showTooltip(t,e)),this.prevFoundData=t)},onReceiveSeriesData:function(t){var e=this.seriesItemBoundsData,i=this.seriesCount;e.length===i&&(e=[]),e.push(t),e.length===i&&(this.dataModel=new r(e)),this.zoomable&&this._showTooltipAfterZoom()},_findData:function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i,h)},_findDataForZoomable:function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i)},_getFirstData:function(t){return this.dataModel.getFirstData(t)},_getLastData:function(t){return this.dataModel.getLastData(t)},_showTooltip:function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},_hideTooltip:function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},_onMousemove:function(t){var e,i;this._setPrevClientPosition(t),i=this._findData(t.clientX,t.clientY),this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,i)&&(i?this._showTooltip(i):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=i)},_onMouseout:function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},findDataByIndexes:function(t){return this.dataModel.findDataByIndexes(t)},_setPrevClientPosition:function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null}});n.componentType="mouseEventDetector",t.exports=n},function(t,e,i){"use strict";var n=i(70),o=i(8),a=i(9),r=i(7),s=i(55),h=i(6),l={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},_showTooltipAfterZoom:function(){var t,e=this.isShowTooltipAfterZoom;this.isShowTooltipAfterZoom=!1,e&&this.dragStartIndexes&&(t=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index),t&&this._showTooltip(t))},_updateDimensionForDragSelection:function(t){r.renderDimension(t,{height:this.layout.dimension.height})},_renderDragSelection:function(){var t=a.create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=n.prototype.render.call(this,t),i=this._renderDragSelection();return a.append(e,i),this.dragSelectionElement=i,e},resize:function(t){this.containerBound=null,n.prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),s.on(document,"mousemove",this._onDrag,this),s.off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),s.on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),s.off(document,"mousemove",this._onDrag,this),s.off(document,"mouseup",this._onMouseupAfterDrag,this),s.on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){var e;this.zoomable&&(e=t.target||t.srcElement,this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e))},_showDragSelection:function(t){var e=this._calculateLayerPosition(t).x,i=Math.min(e,this.startLayerX)-this.layout.position.left,n=Math.abs(e-this.startLayerX),o=this.dragSelectionElement;o.style.left=i+"px",o.style.width=n+"px",a.addClass(o,"show")},_hideDragSelection:function(){a.removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e,i=this.startClientPosition,n=t.target||t.srcElement;i&&(e=this._findDataForZoomable(i.x,i.y),a.hasClass(n,o.CLASS_NAME_RESET_ZOOM_BTN)||(h.isNull(this.dragStartIndexes)?this.dragStartIndexes=e?e.indexes:{}:this._showDragSelection(t.clientX)))},_adjustIndexRange:function(t,e){var i=[t,e].sort(function(t,e){return t-e}),n=i[1]-i[0];return 0===n?0===i[0]?i[1]+=2:(i[0]-=1,i[1]+=1):1===n&&(0===i[0]?i[1]+=1:i[0]-=1),i},_fireZoom:function(t,e){var i=t>e,n=this._adjustIndexRange(t,e),o=n[1]-n[0];this.prevDistanceOfRange!==o&&(this.prevDistanceOfRange=o,this.reverseMove=i,this.eventBus.fire("zoom",n))},_setIsShowTooltipAfterZoomFlag:function(t,e){var i=this._calculateLayerPosition(t,e,!1).x,n=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=i===n},_onMouseupAfterDrag:function(t){var e,i=this._findDataForZoomable(t.clientX,t.clientY);this._unbindDragEvent(),h.isNull(this.dragStartIndexes)?(e=t.target||t.srcElement,a.hasClass(e,o.CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):n.prototype._onClick.call(this,t)):this.dragStartIndexes&&i?(this.dragEndIndexes=i.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),
16
+ this._hideDragSelection(),this._fireZoom(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection()),this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){var t=a.create("DIV",o.CLASS_NAME_RESET_ZOOM_BTN);return t.innerHTML="Reset Zoom",t},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),a.append(this.mouseEventDetectorContainer,this.resetZoomBtn))}};t.exports=l},function(t,e,i){"use strict";var n=i(11),o=i(10),a=i(6),r=Array.prototype.concat,s=a.defineClass({init:function(t){this.data=this._makeData(t),this.lastGroupIndex=0},_makeData:function(t){var e=0,i=t.length,s=a.map(t,function(t,r){var s=t.data.groupPositions||t.data.groupBounds,h=t.chartType;return(n.isLineTypeChart(h)||n.isRadialChart(h))&&(s=o.pivot(s)),e=Math.max(s.length-1,e),a.map(s,function(t,e){return a.map(t,function(t,n){var o=null;return t&&(o={chartType:h,indexes:{groupIndex:e,index:n},bound:t}),i>1&&(o.indexes.legendIndex=r),o})})});return s=r.apply([],s),this.lastGroupIndex=e,a.filter(r.apply([],s),function(t){return!!t})},findData:function(t,e){var i,n=1e5;return e=e||Number.MAX_VALUE,a.forEach(this.data,function(o){var a=t.x-o.bound.left,r=t.y-o.bound.top,s=Math.sqrt(Math.pow(a,2)+Math.pow(r,2));s<e&&s<n&&(n=s,i=o)}),i},findDataByIndexes:function(t){var e=null;return a.forEachArray(this.data,function(i){return i.indexes.groupIndex===t.index&&i.indexes.index===t.seriesIndex&&(e=i),!e}),e},getFirstData:function(t){var e={index:0,seriesIndex:t};return this.findDataByIndexes(e)},getLastData:function(t){var e={index:this.lastGroupIndex,seriesIndex:t};return this.findDataByIndexes(e)}});t.exports=s},function(t,e,i){"use strict";function n(t){return new h(t)}var o=i(8),a=i(70),r=i(7),s=i(6),h=s.defineClass(a,{init:function(t){this.chartType=t.chartType,this.drawingType=o.COMPONENT_TYPE_DOM,this.eventBus=t.eventBus},_renderMouseEventDetectorArea:function(t){r.renderDimension(t,this.layout.dimension),r.renderPosition(t,this.layout.position)},onReceiveSeriesData:function(){},_onClick:function(t){this._onMouseEvent("click",t)},_onMousemove:function(t){this._onMouseEvent("move",t)},_onMouseout:function(t){this._onMouseEvent("move",t)}});n.componentType="mouseEventDetector",t.exports=n},function(t,e,i){"use strict";function n(t){return new h(t)}var o=i(8),a=i(70),r=i(75),s=i(6),h=s.defineClass(a,{init:function(t){a.call(this,t),this.prevIndex=null,this.zoomable=t.zoomable,this.sizeType=this.isVertical?"height":"width",this.zoomable&&(s.extend(this,r),this._initForZoom(t.zoomable))},initMouseEventDetectorData:function(t){a.prototype.initMouseEventDetectorData.call(this,t),this.zoomable&&this._showTooltipAfterZoom()},_findGroupData:function(t,e){var i,n=this._calculateLayerPosition(t,e,!0);return i=this.isVertical?n.x:n.y,{indexes:{groupIndex:this.tickBaseCoordinateModel.findIndex(i)}}},_findDataForZoomable:function(t,e){return this._findGroupData(t,e)},_getFirstData:function(){return{indexes:{groupIndex:0}}},_getLastData:function(){return{indexes:{groupIndex:this.tickBaseCoordinateModel.getLastIndex()}}},_isOuterPosition:function(t,e){var i=this.dimension,n=i.width,o=i.height,a=this.layout.position,r=a.top,s=a.left;return t<s||t>s+n||e<r||e>r+o},_showTooltip:function(t,e){var i=t.indexes.groupIndex,n=(this.isVertical?this.layout.position.left:this.layout.position.top)-o.CHART_PADDING;this.tickBaseCoordinateModel.data.length>i&&(this.eventBus.fire("showTooltip",{index:i,range:this.tickBaseCoordinateModel.makeRange(i,n),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent}),this.prevIndex=i)},_hideTooltip:function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},_onMousemove:function(t){var e,i;this.zoomable&&this._isAfterDragMouseup()||(e=this._findGroupData(t.clientX,t.clientY),i=e.indexes.groupIndex,i===-1?this._onMouseout(t):this.prevIndex!==i&&this._showTooltip(e))},_onMouseout:function(t){var e;e=this._calculateLayerPosition(t.clientX,t.clientY,!1),this._isOuterPosition(e.x,e.y)&&!s.isNull(this.prevIndex)&&this._hideTooltip()}});n.componentType="mouseEventDetector",t.exports=n},function(t,e,i){"use strict";function n(t){return new l(t)}var o=i(70),a=i(8),r=i(11),s=i(9),h=i(6),l=h.defineClass(o,{init:function(){o.apply(this,arguments),this.prevFoundData=null,this.zoomHistory=[-1],this.historyBackBtn=null},_attachToEventBus:function(){o.prototype._attachToEventBus.call(this),this.eventBus.on("afterZoom",this.onAfterZoom,this)},_showTooltip:function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},_hideTooltip:function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null,this.styleCursor(!1)},styleCursor:function(t){var e=this.mouseEventDetectorContainer;t?e.style.cursor="pointer":e.style.cursor="default"},_onMousemove:function(t){var e,i=t.clientX,n=t.clientY,o=this._calculateLayerPosition(i,n),a=this._findDataFromBoundsCoordinateModel(o);this._isChangedSelectData(this.prevFoundData,a)&&(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=a,a&&(r.isTreemapChart(this.chartType)?(e=this._getSeriesItemByIndexes(a.indexes),this.styleCursor(e.hasChild)):r.isBulletChart(this.chartType)&&(a.mousePosition={left:i,top:n}),this._showTooltip(a)))},_zoomHistoryBack:function(){var t=this.zoomHistory[this.zoomHistory.length-2];this.zoomHistory.pop(),this.eventBus.fire("zoom",t),1===this.zoomHistory.length&&(this.mouseEventDetectorContainer.removeChild(this.historyBackBtn),this.historyBackBtn=null)},_getSeriesItemByIndexes:function(t){var e=this.dataProcessor.getSeriesDataModel(a.CHART_TYPE_TREEMAP);return e.getSeriesItem(t.groupIndex,t.index,!0)},_onClick:function(t){var e,i,n,h=t.target||t.srcElement;if(o.prototype._onClick.call(this,t),r.isTreemapChart(this.chartType)){if(s.hasClass(h,a.CLASS_NAME_RESET_ZOOM_BTN))return this._hideTooltip(),void this._zoomHistoryBack();if(e=this._calculateLayerPosition(t.clientX,t.clientY),i=this._findDataFromBoundsCoordinateModel(e)){if(n=this._getSeriesItemByIndexes(i.indexes),!n.hasChild)return;this._hideTooltip(),this.eventBus.fire("zoom",i.indexes.index)}}},_onMouseout:function(t){var e=this.mouseEventDetectorContainer.getBoundingClientRect(),i=t.clientX,n=t.clientY;e.left<=i&&e.top<=n&&e.right>=i&&e.bottom>=n||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},onAfterZoom:function(t){this.historyBackBtn||(this.historyBackBtn=s.create("DIV",a.CLASS_NAME_RESET_ZOOM_BTN),this.historyBackBtn.innerHTML="< Back",s.append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},findDataByIndexes:function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)}});n.componentType="mouseEventDetector",t.exports=n},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bar",t.chartBackground=i.chart.background,new l(t)}var o=i(81),a=i(82),r=i(8),s=i(11),h=i(6),l=h.defineClass(o,{init:function(){o.apply(this,arguments)},_makeBound:function(t,e,i,n,o){return{start:{top:i,left:n,width:0,height:e},end:{top:i,left:o,width:t,height:e}}},_calculateAdditionalLeft:function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+r.OVERLAPPING_WIDTH),e},_makeBarChartBound:function(t,e,i,n,o){var a,r,s,h,l=t.baseBarSize*n.ratioDistance,u=this._calculateAdditionalLeft(n.value),c=t.baseBarSize*n.startRatio,d=t.basePosition+c+u,p=n.stack!==e.prevStack;return(!i||!this.options.diverging&&p)&&(a=i?this.dataProcessor.findStackIndex(n.stack):o,e.top=e.baseTop+t.pointInterval*a,e.plusLeft=0,e.minusLeft=0),n.value>=0?(r=d+e.plusLeft,e.plusLeft+=l):(e.minusLeft-=l,r=d+e.minusLeft),e.prevStack=n.stack,h=e.top+t.pointInterval-t.barSize/2,s=this._makeBound(l,t.barSize,h,d,r)},_makeBounds:function(){var t=this,e=this._getSeriesDataModel(),i=s.isValidStackOption(this.options.stackType),n=this.layout.dimension,o=this._makeBaseDataForMakingBound(n.height,n.width);return e.map(function(e,n){var a=n*o.groupSize+t.layout.position.top,r={baseTop:a,top:a,plusLeft:0,minusLeft:0,prevStack:null},s=h.bind(t._makeBarChartBound,t,o,r,i);return e.map(s)})},_calculateTopPositionOfSumLabel:function(t,e){return t.top+(t.height-e+r.TEXT_PADDING)/2}});a.mixin(l),n.componentType="series",n.BarChartSeries=l,t.exports=n},function(t,e,i){"use strict";var n=i(6),o=600,a=n.browser,r=a.msie&&7===a.version,s=i(8),h=i(9),l=i(11),u=i(7),c=i(32),d=i(5),p=n.defineClass({className:"tui-chart-series-area",init:function(t){var e=t.libType;this.chartType=t.chartType,this.seriesType=t.seriesType||t.chartType,this.componentType=t.componentType,this.dataProcessor=t.dataProcessor,this.eventBus=t.eventBus,this.chartBackground=t.chartBackground,this.options=t.options||{},this.orgTheme=this.theme=t.theme,this.graphRenderer=c.get(e,t.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData=[],this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=s.COMPONENT_TYPE_RAPHAEL,this.supportSeriesLable=!0,this._attachToEventBus()},_attachToEventBus:function(){var t=n.bind(function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)},this);this.eventBus.on(s.PUBLIC_EVENT_PREFIX+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},_getSeriesDataModel:function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},_makeSeriesData:function(){},getSeriesData:function(){return this.seriesData},_renderSeriesLabel:function(){},_renderSeriesLabelArea:function(t){return this._renderSeriesLabel(t)},_sendBoundsToMouseEventDetector:function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},_renderSeriesArea:function(t,e){var i,n;i=this.dimensionMap.extendedSeries,this.seriesData=n=this._makeSeriesData(),this._sendBoundsToMouseEventDetector(n),(this.hasDataForRendering(n)||"map"===this.chartType)&&(e&&(this.seriesSet=e(i,n,t)),l.isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)))},_makeParamsForGraphRendering:function(t,e){return n.extend({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},_renderGraph:function(t,e,i){var n=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,n)},_setDataForRendering:function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},render:function(t){var e;this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))),this._renderSeriesArea(t.paper,n.bind(this._renderGraph,this)),this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},_getCheckedSeriesTheme:function(t,e){var i;return e.length?(i=JSON.parse(JSON.stringify(t)),i.colors=n.filter(i.colors,function(t,i){return e[i]}),i):t},_clearSeriesContainer:function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach(function(t){t.remove()},this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach(function(t){t.remove()},this),this.labelSet.remove()),this.seriesData=[]},rerender:function(t){var e;this.dataProcessor.getGroupCount(this.seriesType)&&(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,n.bind(this._renderGraph,this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),n.isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex))},_isLabelVisible:function(){return!(!this.options.showLabel&&!this.options.showLegend)},_resizeGraph:function(t,e){return this.graphRenderer.resize(n.extend({dimension:this.dimensionMap.chart},e)),this.seriesSet},resize:function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,n.bind(this._resizeGraph,this))},_renderPosition:function(t,e){var i=u.isOldBrowser()?1:0;u.renderPosition(t,{top:e.top-i,left:e.left-2*i})},_getLimitDistanceFromZeroPoint:function(t,e){var i=e.min,n=e.max,o=n-i,a=0,r=0;return i<=0&&n>=0?(a=(o+i)/o*t,r=(o-n)/o*t):i>0&&(a=t),{toMax:a,toMin:r}},_findLabelElement:function(t){var e=null;return e=h.hasClass(t,s.CLASS_NAME_SERIES_LABEL)?t:h.findParentByClass(t,s.CLASS_NAME_SERIES_LABEL)},onHoverSeries:function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},onHoverOffSeries:function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},onShowGroupAnimation:function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},onHideGroupAnimation:function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},animateComponent:function(t){this.graphRenderer.animate&&this.seriesSet?this.graphRenderer.animate(n.bind(this.animateSeriesLabelArea,this,t),this.seriesSet):this.animateSeriesLabelArea(t)},_fireLoadEvent:function(t){t||this.eventBus.fire(s.PUBLIC_EVENT_PREFIX+"load")},animateSeriesLabelArea:function(t){return this._isLabelVisible()?void(r?(this._fireLoadEvent(t),this.labelSet.attr({opacity:1})):this.labelSet&&this.labelSet.length&&d.animateOpacity(this.labelSet,0,1,o)):void this._fireLoadEvent(t)},_makeExportationSeriesData:function(t){var e,i=t.indexes,o=n.isExisty(i.legendIndex)?i.legendIndex:i.index,a=this.dataProcessor.getLegendItem(o),r=n.isExisty(i.groupIndex)?i.groupIndex:0,s=this._getSeriesDataModel().getSeriesItem(r,i.index);return n.isExisty(s)&&(e={chartType:a.chartType,legend:a.label,legendIndex:o},e.index=s.index),e},_executeGraphRenderer:function(t,e){var i,n=!1;return this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&h.hasClass(this.seriesLabelContainer,"show")&&(h.removeClass(this.seriesLabelContainer,"show"),n=!0),i=this.graphRenderer[e](t),n&&h.addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),i},onSelectSeries:function(t,e){var i;t.chartType===this.chartType&&(i=s.PUBLIC_EVENT_PREFIX+"selectSeries",this.eventBus.fire(i,this._makeExportationSeriesData(t)),e=!!n.isEmpty(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes))},onUnselectSeries:function(t){var e;t.chartType===this.chartType&&(e=s.PUBLIC_EVENT_PREFIX+"unselectSeries",this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes))},onSelectLegend:function(t,e){this.seriesType===t||n.isNull(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},showLabel:function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},hideLabel:function(){this.options.showLabel=!1,this.seriesLabelContainer&&(h.removeClass(this.seriesLabelContainer,"show"),h.removeClass(this.seriesLabelContainer,"opacity"))},hasDataForRendering:function(t){return!(!t||!t.isAvailable())}});t.exports=p},function(t,e,i){"use strict";var n=i(8),o=i(83),a=i(11),r=i(45),s=i(7),h=i(5),l=i(6),u=.8,c=l.defineClass({_makeSeriesData:function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},_getBarWidthOptionSize:function(t,e){var i=0;return e&&(e/2>=t?e=2*t:e<0&&(e=0),i=e),i},_calculateAdditionalPosition:function(t,e,i){var n=0;return e&&e<t&&(n=t/2+(t-e)*i/2),n},_makeBaseDataForMakingBound:function(t,e){var i,o,r,s,h,l,c,d=a.isValidStackOption(this.options.stackType),p=this._getSeriesDataModel(),f=t/p.getGroupCount(),m=-this.layout.position.top+n.CHART_PADDING,g=this._getLimitDistanceFromZeroPoint(e,this.limit).toMin;return i=a.isColumnChart(this.chartType)?m:a.isBoxplotChart(this.chartType)?this.layout.position.top-n.CHART_PADDING:this.layout.position.left,p.rawSeriesData.length>0&&(o=d?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):p.getFirstSeriesGroup().getSeriesItemCount(),l=f/(o+1),r=l*u,s=this.options.barWidth||this.options.pointWidth,r=this._getBarWidthOptionSize(l,s)||r,h=g+i,a.isColumnChart(this.chartType)&&(h=e-h),a.isBoxplotChart(this.chartType)&&g&&(h-=2*g),c={baseBarSize:e,groupSize:f,barSize:r,pointInterval:l,firstAdditionalPosition:l,basePosition:h}),c},_renderNormalSeriesLabel:function(t){var e,i=this.graphRenderer,n=this._getSeriesDataModel(),r=this.seriesData.groupBounds,s=this.theme.label,h=this.selectedLegendIndex,u=n.map(function(t){return t.map(function(t){var e={end:t.endLabel};return l.isExisty(t.start)&&(e.start=t.startLabel),e})});return e=a.isBarChart(this.chartType)?o.boundsToLabelPositionsForBarChart(n,r,s):o.boundsToLabelPositionsForColumnChart(n,r,s),i.renderSeriesLabel(t,e,u,s,h)},_makeSumValues:function(t){var e=r.sum(t);return s.formatValue({value:e,formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},_makeStackedLabelPosition:function(t){var e=t.left+t.width/2,i=t.top+t.height/2;return{left:e,top:i}},_makeStackedLabelPositions:function(t){var e=this,i=t.seriesGroup,n=i.map(function(i,n){var o,a=t.bounds[n];return a&&i&&(o=e._makeStackedLabelPosition(a.end)),{end:o}});return n},getGroupLabels:function(t,e,i){var n=a.isNormalStack(this.options.stackType);return t.map(function(t){var o,a=t.map(function(t){return{end:t.endLabel}});return n&&(e.push(r.sumPlusValues(t.pluck("value"))),o=r.sumMinusValues(t.pluck("value")),o<0&&i.push(o)),a})},getGroupPositions:function(t,e){var i=this;return t.map(function(t,n){return i._makeStackedLabelPositions({seriesGroup:t,bounds:e[n]})})},_renderStackedSeriesLabel:function(t){var e=this,i=[],o=[],r=this.theme.label,u=this.seriesData.groupBounds,c=this._getSeriesDataModel(),d=this.getGroupPositions(c,u),p=this.getGroupLabels(c,i,o),f=!0,m=a.isNormalStack(this.options.stackType),g=a.isBarChart(this.chartType),_=g?"width":"height",T=g?"left":"top",v=g?1:-1;return m&&(l.forEach(p,function(t,n){var a=i[n],r=o[n];r<0&&e.options.diverging&&(r*=-1),t.push({end:s.formatToComma(a)}),o.length&&t.push({end:s.formatToComma(r)})}),l.forEach(d,function(t,a){var s=u[a],l=s[s.length-1].end,c=s[Math.max(parseInt(s.length/2,10),1)-1].end,d=e._makeStackedLabelPosition(l),p=e._makeStackedLabelPosition(c),f=i[a],m=o[a],g=h.getRenderedTextSize(f,r.fontSize,r.fontFamily),y=h.getRenderedTextSize(m,r.fontSize,r.fontFamily),x=(l[_]+g[_])/2,A=(c[_]+y[_])/2;d[T]+=(x+n.LEGEND_LABEL_LEFT_PADDING)*v,p[T]-=(A+n.LEGEND_LABEL_LEFT_PADDING)*v,t.push({end:d}),o.length&&t.push({end:p})})),this.graphRenderer.renderSeriesLabel(t,d,p,r,f)},_renderSeriesLabel:function(t){var e;return e=this.options.stackType?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)}});c.mixin=function(t){l.extend(t.prototype,c.prototype)},t.exports=c},function(t,e,i){"use strict";var n=i(8),o=i(7),a=i(6),r={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,i,n,o){var a=t.value,r=a>=0,s={end:o(e,i,t.endLabel||t.label,n,r)};return t.isRange&&(r=a<0,s.start=o(e,i,t.startLabel,n,r)),s},boundsToLabelPositions:function(t,e,i,r,s){var h=this,l=o.getRenderedLabelHeight(n.MAX_HEIGHT_WORD,i);return r=r||a.bind(this._makePositionForBoundType,this),s=!!s,t.map(function(t,n){var o=e[n];return t.map(function(t,e){var n=o[e].end;return h._makePositionMap(t,n,l,i,r)})},s)},_makePositionForBarChart:function(t,e,i,a,r){var s=o.getRenderedLabelWidth(i,a),h=t.left;return r?h+=t.width+n.SERIES_LABEL_PADDING:h-=s+n.SERIES_LABEL_PADDING,{left:h,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,i){var n=a.bind(this._makePositionForBarChart,this);return this.boundsToLabelPositions(t,e,i,n)},_makePositionForColumnChart:function(t,e,i,o,a){var r=t.top;return a?r-=e+n.SERIES_LABEL_PADDING:r+=t.height+n.SERIES_LABEL_PADDING,{left:this._calculateLeftPositionForCenterAlign(t),top:r}},boundsToLabelPositionsForColumnChart:function(t,e,i){var n=a.bind(this._makePositionForColumnChart,this);return this.boundsToLabelPositions(t,e,i,n)},boundsToLabelPostionsForTreemap:function(t,e){var i=this,n=a.map(t,function(t){var n,o=e[t.id];return o&&(n=i._makePositionForBoundType(o)),n});return n}};t.exports=r},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="column",t.chartBackground=i.chart.background,new u(t)}var o=i(81),a=i(82),r=i(8),s=i(11),h=i(7),l=i(6),u=l.defineClass(o,{init:function(){o.apply(this,arguments)},_makeBound:function(t,e,i,n,o){return{start:{top:n,left:i,width:t,height:0},end:{top:o,left:i,width:t,height:e}}},_makeColumnChartBound:function(t,e,i,n,o){var a,s,h,l,u=Math.abs(t.baseBarSize*n.ratioDistance),c=t.baseBarSize*n.startRatio,d=t.basePosition+c+r.SERIES_EXPAND_SIZE,p=n.stack!==e.prevStack;return(!i||!this.options.diverging&&p)&&(a=i?this.dataProcessor.findStackIndex(n.stack):o,e.left=e.baseLeft+t.pointInterval*a,e.plusTop=0,e.minusTop=0),n.value>=0?(e.plusTop-=u,s=d+e.plusTop):(s=d+e.minusTop,e.minusTop+=u),e.prevStack=n.stack,l=e.left+t.pointInterval-t.barSize/2,h=this._makeBound(t.barSize,u,l,d,s)},_makeBounds:function(){var t=this,e=this._getSeriesDataModel(),i=s.isValidStackOption(this.options.stackType),n=this.layout.dimension,o=this._makeBaseDataForMakingBound(n.width,n.height);return e.map(function(e,n){var a=n*o.groupSize+t.layout.position.left,r={baseLeft:a,left:a,plusTop:0,minusTop:0,prevStack:null},s=l.bind(t._makeColumnChartBound,t,o,r,i);return e.map(s)})},_calculateLeftPositionOfSumLabel:function(t,e){var i=h.getRenderedLabelWidth(e,this.theme.label);return t.left+(t.width-i+r.TEXT_PADDING)/2}});a.mixin(u),n.componentType="series",n.ColumnChartSeries=u,t.exports=n},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="line",t.chartBackground=i.chart.background,new s(t)}var o=i(81),a=i(86),r=i(6),s=r.defineClass(o,{init:function(){o.apply(this,arguments),this.movingAnimation=null},_makePositions:function(t){return this._makeBasicPositions(t)},_makeSeriesData:function(){var t=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:t,isAvailable:function(){return t&&t.length>0}}},rerender:function(t){var e;return this._cancelMovingAnimation(),e=o.prototype.rerender.call(this,t)}});a.mixin(s),n.componentType="series",t.exports=n},function(t,e,i){"use strict";var n=i(10),o=i(8),a=i(11),r=i(45),s=i(7),h=i(6),l=h.defineClass({_makePositionsForDefaultType:function(t){var e,i=this.layout.dimension,n=this._getSeriesDataModel(),o=t||i.width||0,a=i.height,r=n.getGroupCount(),s=this.layout.position.top,l=this.layout.position.left;return this.aligned?e=o/(r>1?r-1:r):(e=o/r,l+=e/2),n.map(function(t){return t.map(function(t,i){var n;return h.isNull(t.end)||(n={left:l+e*i,top:s+a-t.ratio*a},h.isExisty(t.startRatio)&&(n.startTop=s+a-t.startRatio*a)),n})},!0)},_makePositionForCoordinateType:function(t){var e=this.layout.dimension,i=this._getSeriesDataModel(),n=t||e.width||0,a=e.height,s=this.axisDataMap.xAxis,l=0,u=this.layout.position.top,c=this.layout.position.left;return s.sizeRatio&&(l=r.multiply(n,s.positionRatio),n=r.multiply(n,s.sizeRatio)),i.map(function(t){return t.map(function(t){var e;return h.isNull(t.end)||(e={left:c+t.ratioMap.x*n+l,top:u+a-t.ratioMap.y*a},h.isExisty(t.ratioMap.start)&&(e.startTop=a-t.ratioMap.start*a+o.SERIES_EXPAND_SIZE)),e})},!0)},_makeBasicPositions:function(t){var e;return e=this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},_calculateLabelPositionTop:function(t,e,i,n){var r,s=t.top;return r=a.isValidStackOption(this.options.stackType)?(t.startTop+s-i)/2+1:e>=0&&!n||e<0&&n?s-i-o.SERIES_LABEL_PADDING:s+o.SERIES_LABEL_PADDING},_makeLabelPosition:function(t,e,i,n,o){return{left:t.left,top:this._calculateLabelPositionTop(t,n,e/2,o)}},_getLabelPositions:function(t,e){var i=this,a=n.pivot(this.seriesData.groupPositions),r=s.getRenderedLabelHeight(o.MAX_HEIGHT_WORD,e);return t.map(function(t,e){return t.map(function(t,n){var o=a[e][n],s=i._makeLabelPosition(o,r,t.endLabel,t.end),h={end:s};return t.isRange&&(o.top=o.startTop,h.start=i._makeLabelPosition(o,r,t.startLabel,t.start)),h})})},_getLabelTexts:function(t){return t.map(function(t){return t.map(function(t){var e={end:t.endLabel};return t.isRange&&(e.start=t.startLabel),e})})},_renderSeriesLabel:function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),o=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,o,n,e)},onShowGroupTooltipLine:function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},onHideGroupTooltipLine:function(){this.seriesData&&this.seriesData.isAvailable()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},zoom:function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,h.bind(this._renderGraph,this)),this.animateComponent(!0),h.isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},_isChangedLimit:function(t,e){return t.min!==e.min||t.max!==e.max},_isChangedAxisLimit:function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,i=!0;return t&&(i=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(i=i||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,i},_animate:function(t){var e=this,i=o.ADDING_DATA_ANIMATION_DURATION,n=this._isChangedAxisLimit();n&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=s.startAnimation(i,t,function(){e.movingAnimation=null}))},_makeZeroTopForAddingData:function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+o.SERIES_EXPAND_SIZE},animateForAddingData:function(t){var e,i,n,o,a=this.dimensionMap.extendedSeries,r=this.layout.dimension.width,s=t.tickSize,h=this.options.shifting;this.limit=t.limitMap[this.chartType],this.axisDataMap=t.axisDataMap,e=this._makeSeriesData(),i=this._makeParamsForGraphRendering(a,e),h&&(r+=s),n=this._makePositions(r),o=this._makeZeroTopForAddingData(),this.graphRenderer.animateForAddingData(i,s,n,h,o)},_cancelMovingAnimation:function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)}});l.mixin=function(t){h.extend(t.prototype,l.prototype)},t.exports=l},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.chartType,i=t.chartOptions.libType,n=t.chartTheme;return t.libType=i,t.chartType=e,t.chartBackground=n.background,new h(t)}var o=i(81),a=i(8),r=i(49),s=i(6),h=s.defineClass(o,{init:function(){o.apply(this,arguments),this.options=s.extend({showDot:!0,showArea:!0},this.options),this.movingAnimation=null,this.drawingType=a.COMPONENT_TYPE_RAPHAEL},_makePositionsForRadial:function(t,e){var i,n=this.layout,o=n.dimension,h=o.width-a.RADIAL_PLOT_PADDING-a.RADIAL_MARGIN_FOR_CATEGORY,l=o.height-a.RADIAL_PLOT_PADDING-a.RADIAL_MARGIN_FOR_CATEGORY,u=h/2+a.RADIAL_PLOT_PADDING/2+a.RADIAL_MARGIN_FOR_CATEGORY/2+n.position.left,c=l/2-a.RADIAL_PLOT_PADDING/2-a.RADIAL_MARGIN_FOR_CATEGORY/2-n.position.top,d=360/e;return i=Math.min(h,l)/2,s.map(t,function(t){var e=s.map(t,function(t,e){var n,o,a,h,p;return s.isNull(t.end)||(p=t.ratio*i,o=c+p,a=360-d*e,h=r.rotatePointAroundOrigin(u,c,u,o,a),n={left:h.x,top:l-h.y}),n});return e.push(e[0]),e},!0)},_getSeriesGroups:function(){var t=this._getSeriesDataModel();return t.map(function(t){return t.map(function(t){return t})},!0)},_makeSeriesData:function(){var t=this._getSeriesGroups(),e=this._makePositionsForRadial(t,this._getSeriesDataModel().getGroupCount());return{groupPositions:e,isAvailable:function(){return e&&e.length>0}}},rerender:function(t){return o.prototype.rerender.call(this,t)}});n.componentType="series",n.RadialChartSeries=h,t.exports=n},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="area",t.chartBackground=i.chart.background,new h(t)}var o=i(81),a=i(86),r=i(11),s=i(6),h=s.defineClass(o,{init:function(){o.apply(this,arguments),this.movingAnimation=null},_makePositionTopOfZeroPoint:function(){var t=this.layout.dimension,e=this.axisDataMap.yAxis.limit,i=this.layout.position.top,n=this._getLimitDistanceFromZeroPoint(t.height,e).toMax+i;return e.min>=0&&!n&&(n=t.height),n},_makeStackedPositions:function(t){var e=this.layout.dimension.height,i=this.layout.position.top,n=this._makePositionTopOfZeroPoint(),o=[];return s.map(t,function(t){return s.map(t,function(t,a){var r=o[a]||n,s=t?t.top:0,h=e-s+i,l=t?r-h:r;return t&&(t.startTop=r,t.top=l),o[a]=l,t})})},_makePositions:function(t){var e=this._makeBasicPositions(t);return r.isValidStackOption(this.options.stackType)&&(e=this._makeStackedPositions(e)),e},_makeSeriesData:function(){var t=this.layout.dimension,e=this.layout.position.top,i=this._getLimitDistanceFromZeroPoint(t.height,this.limit).toMax+e,n=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:n,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:i,isAvailable:function(){return n&&n.length>0}}},rerender:function(t){var e;return this._cancelMovingAnimation(),e=o.prototype.rerender.call(this,t)}});a.mixin(h),n.componentType="series",n.AreaChartSeries=h,t.exports=n},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bubble",t.chartBackground=i.chart.background,new h(t)}var o=i(8),a=i(81),r=i(90),s=i(6),h=s.defineClass(a,{init:function(){this.prevClickedIndex=null,this.maxRadius=null,this.drawingType=o.COMPONENT_TYPE_RAPHAEL,a.apply(this,arguments)},_calculateStep:function(){var t,e,i,n=0,o=this.dataProcessor.isXCountGreaterThanYCount(this.chartType);return this.dataProcessor.hasCategories(o)&&(t=this.layout.dimension,i=this.dataProcessor.getCategoryCount(o),e=o?t.height:t.width,n=e/i),n},_makeBound:function(t,e,i){
17
+ var n=this.layout.dimension,o=this.layout.position,a=s.isExisty(t.x)?t.x*n.width:e,r=s.isExisty(t.y)?t.y*n.height:e;return{left:o.left+a,top:o.top+n.height-r,radius:Math.max(i*t.r,2)}},_makeBounds:function(){var t=this,e=this._getSeriesDataModel(),i=this.maxRadius,n=this._calculateStep(),o=n?n/2:0;return e.map(function(e,a){var r=o+n*a;return e.map(function(e){var n=e&&e.ratioMap;return n?t._makeBound(e.ratioMap,r,i):null})})},_setDataForRendering:function(t){this.maxRadius=t.maxRadius,a.prototype._setDataForRendering.call(this,t)}});r.mixin(h),n.componentType="series",n.BubbleChartSeries=h,t.exports=n},function(t,e,i){"use strict";var n=i(6),o=n.defineClass({_makeSeriesData:function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},showTooltip:function(t,e,i,o,a){this.eventBus.fire("showTooltip",n.extend({indexes:{groupIndex:i,index:o},mousePosition:a},t))},hideTooltip:function(){this.eventBus.fire("hideTooltip")},_renderGraph:function(t,e,i){var o=n.bind(this.showTooltip,this,{chartType:this.chartType}),a={showTooltip:o,hideTooltip:n.bind(this.hideTooltip,this)},r=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,r,a)},onClickSeries:function(t){var e,i=this._executeGraphRenderer(t,"findIndexes"),n=this.prevClickedIndexes,o=this.options.allowSelect;i&&n&&(this.onUnselectSeries({indexes:n}),this.prevClickedIndexes=null),i&&(e=!n||i.index!==n.index||i.groupIndex!==n.groupIndex,o&&!e||(this.onSelectSeries({chartType:this.chartType,indexes:i},e),o&&(this.prevClickedIndexes=i)))},onMoveSeries:function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")}});o.mixin=function(t){n.extend(t.prototype,o.prototype)},t.exports=o},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="scatter",t.chartBackground=i.chart.background,new h(t)}var o=i(81),a=i(90),r=i(8),s=i(6),h=s.defineClass(o,{init:function(){this.prevClickedIndex=null,o.apply(this,arguments)},_makeBound:function(t){var e=this.layout.dimension,i=this.layout.position;return{left:i.left+t.x*e.width,top:e.height-t.y*e.height+i.top,radius:r.SCATTER_RADIUS}},_makeBounds:function(){var t=this,e=this._getSeriesDataModel();return e.map(function(e){return e.map(function(e){var i=e&&e.ratioMap;return i?t._makeBound(e.ratioMap):null})})}});a.mixin(h),n.componentType="series",n.ScatterChartSeries=h,t.exports=n},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType;return t.libType=e,t.chartType="map",new l(t)}var o=i(81),a=i(8),r=i(6),s=r.browser,h=s.msie&&s.version<=8,l=r.defineClass(o,{init:function(t){this.basePosition={left:0,top:0},this.zoomMagn=1,this.mapRatio=1,this.graphDimension={},this.limitPosition={},this.mapModel=t.mapModel,this.colorSpectrum=t.colorSpectrum,this.prevPosition=null,this.prevMovedIndex=null,this.isDrag=!1,this.startPosition=null,o.call(this,t)},_attachToEventBus:function(){o.prototype._attachToEventBus.call(this),h||this.eventBus.on({dragStartMapSeries:this.onDragStartMapSeries,dragMapSeries:this.onDragMapSeries,dragEndMapSeries:this.onDragEndMapSeries,zoomMap:this.onZoomMap},this)},_setMapRatio:function(t){var e=this.layout.dimension,i=t||this.mapModel.getMapDimension(),n=e.width/i.width,o=e.height/i.height;this.mapRatio=Math.min(n,o)},_setGraphDimension:function(){var t=this.layout.dimension;this.graphDimension={width:t.width*this.zoomMagn,height:t.height*this.zoomMagn}},render:function(t){o.prototype.render.call(this,t),this._setMapRatio()},_setLimitPositionToMoveMap:function(){var t=this.layout.dimension,e=this.graphDimension;this.limitPosition={left:t.width-e.width,top:t.height-e.height}},_renderGraph:function(){this._setGraphDimension(),this._setLimitPositionToMoveMap(),this.graphRenderer.render(this.paper,{colorSpectrum:this.colorSpectrum,mapModel:this.mapModel,layout:this.layout,theme:this.theme})},_renderSeriesLabel:function(){var t=this.mapModel.getLabelData(this.zoomMagn*this.mapRatio);return this.graphRenderer.renderSeriesLabels(this.paper,t,this.theme.label)},_renderSeriesArea:function(t,e,i){o.prototype._renderSeriesArea.call(this,t,e,i)},_adjustMapPosition:function(t){return{left:Math.max(Math.min(t.left,0),this.limitPosition.left),top:Math.max(Math.min(t.top,0),this.limitPosition.top)}},_updateBasePositionForZoom:function(t,e,i){var n=this.basePosition,o=n.left-e.left/2,a=n.top-e.top/2,r={left:o*i+this.limitPosition.left/2,top:a*i+this.limitPosition.top/2};this.basePosition=this._adjustMapPosition(r)},_zoom:function(t,e){var i=this.graphDimension,n=this.limitPosition;this._setGraphDimension(),this._setLimitPositionToMoveMap(),this._updateBasePositionForZoom(i,n,t),this._setMapRatio(this.graphDimension),this.graphRenderer.scaleMapPaths(t,e,this.mapRatio,i,i)},_updatePositionsToResize:function(t){var e=this.mapRatio/t;this.basePosition.left*=e,this.basePosition.top*=e,this.limitPosition.left*=e,this.limitPosition.top*=e},onClickSeries:function(t){var e=this._executeGraphRenderer(t,"findSectorIndex");r.isNull(e)||this.eventBus.fire("selectSeries",{chartType:this.chartType,index:e,code:this.mapModel.getDatum(e).code})},_isChangedPosition:function(t,e){return!t||t.left!==e.left||t.top!==e.top},_showWedge:function(t){var e=this.mapModel.getDatum(t);r.isUndefined(e.ratio)||this.eventBus.fire("showWedge",e.ratio)},_showTooltip:function(t,e){this.eventBus.fire("showTooltip",{chartType:this.chartType,indexes:{index:t},mousePosition:{left:e.left,top:e.top-a.TOOLTIP_GAP}})},onMoveSeries:function(t){var e=this._executeGraphRenderer(t,"findSectorIndex");r.isNull(e)?r.isNull(this.prevMovedIndex)||(this.graphRenderer.restoreColor(this.prevMovedIndex),this.eventBus.fire("hideTooltip"),this.prevMovedIndex=null):(this.prevMovedIndex!==e&&(r.isNull(this.prevMovedIndex)||(this.graphRenderer.restoreColor(this.prevMovedIndex),this.eventBus.fire("hideTooltip")),this.graphRenderer.changeColor(e)),this._isChangedPosition(this.prevPosition,t)&&(this._showTooltip(e,{left:t.left,top:t.top}),this.prevMovedIndex=e),this._showWedge(e)),this.prevPosition=t},onDragStartMapSeries:function(t){this.startPosition={left:t.left,top:t.top}},_movePosition:function(t,e){var i={x:(e.left-t.left)*this.mapRatio,y:(e.top-t.top)*this.mapRatio};this.graphRenderer.moveMapPaths(i,this.graphDimension)},onDragMapSeries:function(t){this._movePosition(this.startPosition,t),this.startPosition=t,this.isDrag||(this.isDrag=!0,this.eventBus.fire("hideTooltip"))},onDragEndMapSeries:function(){this.isDrag=!1},onZoomMap:function(t,e){var i=t/this.zoomMagn,n=this.layout.position,o=e?e:{left:this.layout.dimension.width/2,top:this.layout.dimension.height/2};this.zoomMagn=t,this._zoom(i,{left:o.left-n.left,top:o.top-n.top}),this.eventBus.fire(a.PUBLIC_EVENT_PREFIX+"zoom",t)},_makeExportationSeriesData:function(t){return t}});n.componentType="series",n.MapChartSeries=l,t.exports=n},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType,i=t.chartTheme,n=t.chartOptions.chartType,o=t.chartOptions.legend;return t.libType=e,t.chartType="pie","combo"===n&&(t.seriesType=t.name.split("Series")[0],t.isCombo=!0),o&&(t.legendMaxWidth=o.maxWidth),t.chartBackground=i.chart.background,new l(t)}var o=i(81),a=i(8),r=i(11),s=i(6),h=i(5),l=s.defineClass(o,{init:function(t){o.call(this,t),this.isCombo=!!t.isCombo,this.isShowOuterLabel=r.isShowOuterLabel(this.options),this.quadrantRange=null,this.prevClickedIndex=null,this.drawingType=a.COMPONENT_TYPE_RAPHAEL,this.legendMaxWidth=t.legendMaxWidth,this._setDefaultOptions()},_makeValidAngle:function(t,e){return s.isUndefined(t)?t=e:t<0?t=a.ANGLE_360-Math.abs(t)%a.ANGLE_360:t>0&&(t%=a.ANGLE_360),t},_transformRadiusRange:function(t){return t=t||["0%","100%"],s.map(t,function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)})},_setDefaultOptions:function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},_calculateAngleForRendering:function(){var t,e=this.options.startAngle,i=this.options.endAngle;return t=e<i?i-e:e>i?a.ANGLE_360-(e-i):a.ANGLE_360},_makeSectorData:function(t){var e,i=this,n=this._getSeriesDataModel().getFirstSeriesGroup(),o=t.cx,a=t.cy,r=t.r,h=this.options.startAngle,l=this._calculateAngleForRendering(),u=10,c=this.options.radiusRange[0],d=.5*r;return c&&(d+=d*c),n?e=n.map(function(t){var e=t?t.ratio:0,n=l*e,c=h+n,p=h+n/2,f={start:{startAngle:h,endAngle:h},end:{startAngle:h,endAngle:c}},m={cx:o,cy:a,angle:p};return h=c,{ratio:e,angles:f,centerPosition:i._getArcPosition(s.extend({r:d},m)),outerPosition:{start:i._getArcPosition(s.extend({r:r},m)),middle:i._getArcPosition(s.extend({r:r+u},m))}}}):null},_makeSeriesData:function(){var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},_getQuadrantFromAngle:function(t,e){var i=parseInt(t/a.ANGLE_90,10)+1;return e&&t%a.ANGLE_90===0&&(i+=1===i?3:-1),i},_getRangeForQuadrant:function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},_isInQuadrantRange:function(t,e){var i=this._getRangeForQuadrant();return i.start===t&&i.end===e},_calculateBaseSize:function(){var t,e=this.layout.dimension,i=e.width,n=e.height;return this.isCombo||(t=this._getRangeForQuadrant(),this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?n*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?i*=2:t.start===t.end&&(i*=2,n*=2)),Math.min(i,n)},_calculateRadius:function(){var t=this.isShowOuterLabel?a.PIE_GRAPH_SMALL_RATIO:a.PIE_GRAPH_DEFAULT_RATIO,e=this._calculateBaseSize();return e*t*this.options.radiusRange[1]/2},_calculateCenterXY:function(t){var e=this.layout.dimension,i=this.layout.position,n=t/2,o=e.width/2+i.left,a=e.height/2+i.top;return this.isCombo||(this._isInQuadrantRange(1,1)?(o-=n,a+=n):this._isInQuadrantRange(1,2)?o-=n:this._isInQuadrantRange(2,2)?(o-=n,a-=n):this._isInQuadrantRange(2,3)?a-=n:this._isInQuadrantRange(3,3)?(o+=n,a-=n):this._isInQuadrantRange(3,4)?o+=n:this._isInQuadrantRange(4,1)?a+=n:this._isInQuadrantRange(4,4)&&(o+=n,a+=n)),{cx:o,cy:a}},_makeCircleBound:function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return s.extend({r:t},e)},_getArcPosition:function(t){return{left:t.cx+t.r*Math.sin(t.angle*a.RAD),top:t.cy-t.r*Math.cos(t.angle*a.RAD)}},_renderGraph:function(t,e,i){var n=s.bind(this.showTooltip,this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),o={showTooltip:n,hideTooltip:s.bind(this.hideTooltip,this)},a=this._makeParamsForGraphRendering(t,e),r=this.seriesType,h=this.dataProcessor.seriesDataModelMap,l=[],u=0;return s.forEach(this.dataProcessor.seriesTypes,function(t){var e=!0;return t!==r?l.push(t):e=!1,e}),s.forEach(l,function(t){u+=h[t].baseGroups.length}),a.additionalIndex=u,this.graphRenderer.render(i,a,o)},resize:function(){o.prototype.resize.apply(this,arguments),this._moveLegendLines()},showTooltip:function(t,e,i,n,o){this.eventBus.fire("showTooltip",s.extend({indexes:{groupIndex:i,index:n},mousePosition:o},t))},hideTooltip:function(){this.eventBus.fire("hideTooltip")},_makeSeriesDataBySelection:function(t){return{indexes:{index:t,groupIndex:t}}},_getSeriesLabel:function(t,e){var i="";return this.options.showLegend&&(i=h.getEllipsisText(t,this.legendMaxWidth,this.theme.label)),this.options.showLabel&&(i+=(i?a.LABEL_SEPARATOR:"")+e),i},_pickPositionsFromSectorData:function(t){return s.map(this.seriesData.sectorData,function(e){return e.ratio?e[t]:null})},_addEndPosition:function(t,e){s.forEachArray(e,function(e){var i;e&&(i=s.extend({},e.middle),i.left<t?i.left-=a.SERIES_OUTER_LABEL_PADDING:i.left+=a.SERIES_OUTER_LABEL_PADDING,e.end=i)})},_moveToOuterPosition:function(t,e,i){var n=e.end,o=n.left,r=n.top,s=this.graphRenderer.getRenderedLabelWidth(i,this.theme.label)/2+a.SERIES_LABEL_PADDING;return o<t?o-=s:o+=s,{left:o,top:r}},_getFilterInfos:function(){var t=this.getSeriesData().circleBound.cx,e=this._pickPositionsFromSectorData("outerPosition"),i=s.filter(e,function(t){return t});return{centerLeft:t,outerPositions:e,filteredPositions:i}},_setSeriesPosition:function(t,e){var i=[];return i=t.funcMoveToPosition?s.map(t.positions,function(i,n){var o=null;return i&&(o=t.funcMoveToPosition(i,e[n])),o}):t.positions},_renderSeriesLabel:function(t){var e,i={},n=[],o=this.dataProcessor,a=this._getSeriesDataModel(),h=o.getLegendLabels(this.seriesType),l=s.map(h,function(t,e){return this._getSeriesLabel(t,a.getSeriesItem(0,e).label)},this);return r.isLabelAlignOuter(this.options.labelAlign)?(e=this._getFilterInfos(),this._addEndPosition(e.centerLeft,e.filteredPositions),this.graphRenderer.renderLegendLines(e.filteredPositions),i.positions=e.outerPositions,i.funcMoveToPosition=s.bind(this._moveToOuterPosition,this,e.centerLeft)):i.positions=this._pickPositionsFromSectorData("centerPosition"),n=this._setSeriesPosition(i,l),this.graphRenderer.renderLabels(t,n,l,this.theme.label)},animateSeriesLabelArea:function(){this.graphRenderer.animateLegendLines(this.selectedLegendIndex),o.prototype.animateSeriesLabelArea.call(this)},_moveLegendLines:function(){var t=this.dimensionMap.chart.width/2,e=this._pickPositionsFromSectorData("outerPosition"),i=s.filter(e,function(t){return t});this._addEndPosition(t,i),this.graphRenderer.moveLegendLines(i)},_isDetectedLabel:function(t){var e=document.elementFromPoint(t.left,t.top);return s.isString(e.className)},onClickSeries:function(t){var e,i,n=this._executeGraphRenderer(t,"findSectorInfo"),o=this.prevClickedIndex,a=this.options.allowSelect;(n||this._isDetectedLabel(t))&&s.isExisty(o)&&a&&(this.onUnselectSeries({indexes:{index:o}}),this.prevClickedIndex=null),n&&n.chartType===this.seriesType&&(e=n.index,i=e>-1&&e!==o,a&&!i||(this.onSelectSeries({chartType:this.chartType,indexes:{index:e,legendIndex:n.legendIndex}},i),a&&e>-1&&(this.prevClickedIndex=e)))},onMoveSeries:function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")}});n.componentType="series",n.PieChartSeries=l,t.exports=n},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType;return t.libType=e,t.chartType="heatmap",new s(t)}var o=i(81),a=i(83),r=i(6),s=r.defineClass(o,{init:function(t){this.colorSpectrum=t.colorSpectrum,o.call(this,t)},_makeSeriesData:function(){var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},_makeBound:function(t,e,i,n){var o=this.layout.dimension.height,a=t*i+this.layout.position.left,r=o-e*(n+1)+this.layout.position.top;return{end:{left:a,top:r,width:t,height:e}}},_makeBounds:function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,n=i.width/this.dataProcessor.getCategoryCount(!1),o=i.height/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,a){return t._makeBound(n,o,i,a)})})},onShowTooltip:function(t){var e=this._getSeriesDataModel(),i=t.indexes,n=e.getSeriesItem(i.groupIndex,i.index).ratio;this.eventBus.fire("showWedge",n)},_renderSeriesLabel:function(t){var e=this._getSeriesDataModel(),i=this.seriesData.groupBounds,n=this.theme.label,o=this.selectedLegendIndex,r=a.boundsToLabelPositions(e,i,n),s=e.map(function(t){return t.valuesMap.value});return this.graphRenderer.renderSeriesLabel(t,r,s,n,o)},resize:function(){this.boundMap=null,o.prototype.resize.apply(this,arguments)},_makeExportationSeriesData:function(t){return{x:t.indexes.groupIndex,y:t.indexes.index}}});n.componentType="series",n.HeatmapChartSeries=s,t.exports=n},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="treemap",t.chartBackground=i.chart.background,new u(t)}var o=i(81),a=i(96),r=i(83),s=i(8),h=i(11),l=i(6),u=l.defineClass(o,{init:function(t){o.call(this,t),this.theme.borderColor=this.theme.borderColor||s.TREEMAP_DEFAULT_BORDER,this.rootId=s.TREEMAP_ROOT_ID,this.startDepth=1,this.selectedGroup=null,this.boundMap=null,this.colorSpectrum=t.colorSpectrum,this._initOptions()},_initOptions:function(){this.options.useColorValue=!!this.options.useColorValue,l.isUndefined(this.options.zoomable)&&(this.options.zoomable=!this.options.useColorValue),l.isUndefined(this.options.useLeafLabel)&&(this.options.useLeafLabel=!this.options.zoomable)},_makeSeriesData:function(){var t=this._getBoundMap(),e=this._makeBounds(t);return{boundMap:t,groupBounds:e,seriesDataModel:this._getSeriesDataModel(),startDepth:this.startDepth,isPivot:!0,colorSpectrum:this.options.useColorValue?this.colorSpectrum:null,chartBackground:this.chartBackground,zoomable:this.options.zoomable,isAvailable:function(){return e&&e.length>0}}},_makeBoundMap:function(t,e,i){var n,o=this,r=this._getSeriesDataModel(),s=l.extend({},this.layout.dimension,this.layout.position);return i=i||s,n=r.findSeriesItemsByParent(t),e=l.extend(e||{},a.squarify(i,n)),l.forEachArray(n,function(t){e=o._makeBoundMap(t.id,e,e[t.id])}),e},_makeBounds:function(t){var e,i=this.startDepth,n=this._getSeriesDataModel();return e=this.options.zoomable?function(t){return t.depth===i}:function(t){return!t.hasChild},n.map(function(i){return i.map(function(i){var n=t[i.id],o=null;return n&&e(i)&&(o={end:n}),o},!0)},!0)},_getBoundMap:function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},_shouldDimmed:function(t,e,i){var n,o=!1;return e&&i.id!==e.id&&i.group===e.group&&(n=t.findParentByDepth(i.id,e.depth+1),n&&n.parent===e.id&&(o=!0)),o},_renderSeriesLabel:function(t){var e,i,n,o=this._getSeriesDataModel(),a=this._getBoundMap(),s=this.theme.label,h=this.options.labelTemplate;return i=this.options.useLeafLabel?o.findLeafSeriesItems(this.selectedGroup):o.findSeriesItemsByDepth(this.startDepth,this.selectedGroup),n=l.map(i,function(t){var e=h?h(t.pickLabelTemplateData()):t.label;return e}),e=r.boundsToLabelPostionsForTreemap(i,a,s),this.graphRenderer.renderSeriesLabelForTreemap(t,e,n,s)},resize:function(){this.boundMap=null,o.prototype.resize.apply(this,arguments)},_zoom:function(t,e,i){this._clearSeriesContainer(),this.boundMap=null,this.rootId=t,this.startDepth=e,this.selectedGroup=i,this._renderSeriesArea(this.paper,l.bind(this._renderGraph,this)),this.animateComponent(!0)},zoom:function(t){var e,i,n=t.index;return this.labelSet.remove(),n===-1?void this._zoom(s.TREEMAP_ROOT_ID,1,null):(e=this._getSeriesDataModel(),i=e.getSeriesItem(0,n,!0),void(i&&i.hasChild&&(this._zoom(i.id,i.depth+1,i.group),this.eventBus.fire("afterZoom",n))))},_makeExportationSeriesData:function(t){var e=t.indexes,i=this._getSeriesDataModel().getSeriesItem(e.groupIndex,e.index,!0);return l.extend({chartType:this.chartType,indexes:i.indexes})},onHoverSeries:function(t){h.isShowLabel(this.options)&&this.graphRenderer.showAnimation(t,this.options.useColorValue,.6)},onHoverOffSeries:function(t){h.isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},onShowTooltip:function(t){var e=this._getSeriesDataModel(),i=t.indexes,n=e.getSeriesItem(i.groupIndex,i.index,!0).colorRatio;n>-1&&this.eventBus.fire("showWedge",n)}});n.componentType="series",n.TreemapChartSeries=u,t.exports=n},function(t,e,i){"use strict";var n=i(45),o=i(10),a=i(6),r={boundMap:{},_makeBaseBound:function(t){return a.extend({},t)},_calculateScale:function(t,e,i){return e*i/n.sum(t)},_makeBaseData:function(t,e,i){var n=this._calculateScale(a.pluck(t,"value"),e,i),o=a.map(t,function(t){return{id:t.id,weight:t.value*n}}).sort(function(t,e){return e.weight-t.weight});return o},_worst:function(t,e,i,n){var o=t*t,a=n*n;return Math.max(a*i/o,o/(a*e))},_changedStackDirection:function(t,e,i,n){var a=o.min(e),r=o.max(e),s=this._worst(t,a,r,i),h=this._worst(t+n,Math.min(a,n),Math.max(r,n),i);return h>=s},_isVerticalStack:function(t){return t.height<t.width},_selectBaseSize:function(t){return this._isVerticalStack(t)?t.height:t.width},_calculateFixedSize:function(t,e,i){var o;return e||(o=a.pluck(i,"weight"),e=n.sum(o)),e/t},_addBounds:function(t,e,i,n){a.reduce([t].concat(e),function(t,e){var o=e.weight/i;return n(o,t,e.id),t+o})},_addBound:function(t,e,i,n,o){this.boundMap[o]={left:t,top:e,width:i,height:n}},_addBoundsForVerticalStack:function(t,e,i,n){var o=this,a=this._calculateFixedSize(i,n,t);this._addBounds(e.top,t,a,function(t,i,n){o._addBound(e.left,i,a,t,n)}),e.left+=a,e.width-=a},_addBoundsForHorizontalStack:function(t,e,i,n){var o=this,a=this._calculateFixedSize(i,n,t);this._addBounds(e.left,t,a,function(t,i,n){o._addBound(i,e.top,t,a,n)}),e.top+=a,e.height-=a},_getAddingBoundsFunction:function(t){var e;return e=this._isVerticalStack(t)?a.bind(this._addBoundsForVerticalStack,this):a.bind(this._addBoundsForHorizontalStack,this)},squarify:function(t,e){var i,o,r=this,s=this._makeBaseBound(t),h=this._makeBaseData(e,s.width,s.height),l=[];return this.boundMap={},a.forEachArray(h,function(t){var e=a.pluck(l,"weight"),h=n.sum(e);l.length&&r._changedStackDirection(h,e,i,t.weight)&&(o(l,s,i,h),l=[]),l.length||(i=r._selectBaseSize(s),o=r._getAddingBoundsFunction(s)),l.push(t)}),l.length&&o(l,s,i),this.boundMap}};t.exports=r},function(t,e,i){"use strict";function n(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="boxplot",t.chartBackground=i.chart.background,new u(t)}var o=i(81),a=i(82),r=i(8),s=i(11),h=i(7),l=i(6),u=l.defineClass(o,{init:function(){o.apply(this,arguments),this.supportSeriesLable=!1},_makeBoxplotChartBound:function(t,e,i,n,o){var a,s,h,u,c=Math.abs(t.baseBarSize*n.ratioDistance),d=t.baseBarSize*(1-n.lqRatio),p=t.basePosition+d+r.SERIES_EXPAND_SIZE,f=t.basePosition+r.SERIES_EXPAND_SIZE;return a=o,e.left=e.baseLeft+t.pointInterval*a,e.plusTop=0,e.minusTop=0,n.value>=0?(e.plusTop-=c,s=p+e.plusTop):(s=p+e.minusTop,e.minusTop+=c),h=e.left+t.pointInterval-t.barSize/2,u=l.map(n.outliers,function(e){return{top:t.baseBarSize*(1-e.ratio)+f,left:h+t.barSize/2}}),{start:{top:p,left:h,width:t.barSize,height:0},end:{top:s,left:h,width:t.barSize,height:c},min:{top:t.baseBarSize*(1-n.minRatio)+f,left:h,width:t.barSize,height:0},max:{top:t.baseBarSize*(1-n.maxRatio)+f,left:h,width:t.barSize,height:0},median:{top:t.baseBarSize*(1-n.medianRatio)+f,left:h,width:t.barSize,height:0},outliers:u}},_makeBounds:function(){var t=this,e=this._getSeriesDataModel(),i=s.isValidStackOption(this.options.stackType),n=this.layout.dimension,o=this._makeBaseDataForMakingBound(n.width,n.height);return e.map(function(e,n){var a=n*o.groupSize+t.layout.position.left,r={baseLeft:a,left:a,plusTop:0,minusTop:0,prevStack:null},s=l.bind(t._makeBoxplotChartBound,t,o,r,i);return e.map(s)})},_calculateLeftPositionOfSumLabel:function(t,e){var i=h.getRenderedLabelWidth(e,this.theme.label);return t.left+(t.width-i+r.TEXT_PADDING)/2}});a.mixin(u),n.componentType="series",n.BoxplotChartSeries=u,t.exports=n},function(t,e,i){"use strict";function n(t){var e=t.chartTheme;return t.libType=t.chartOptions.libType,t.chartType="bullet",t.chartBackground=e.chart.background,new h(t)}var o=i(81),a=i(7),r=i(8),s=i(6),h=s.defineClass(o,{init:function(t){o.call(this,t),this.isVertical=t.isVertical},_makeSeriesData:function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0}}},_makeBounds:function(){var t=this,e=this._getSeriesDataModel(),i=this._makeBaseDataForMakingBound(),n={renderedItemCount:0,top:i.categoryAxisTop,left:i.categoryAxisLeft};return e.map(function(e){var o=s.bind(t._makeBulletChartBound,t,i,n),a=e.map(o);return t._updateIterationData(n,i.itemWidth),a})},_makeBaseDataForMakingBound:function(){var t,e,i,n=this._getSeriesDataModel().getGroupCount(),o=this.layout.dimension,a=o.width,r=o.height,s=this.layout.position,h=s.top,l=s.left;return this.isVertical?(h+=r,t=a,e=r):(t=r,e=a),i=t/n,{categoryAxisTop:h,categoryAxisLeft:l,categoryAxisWidth:t,valueAxisWidth:e,itemWidth:i}},_makeBulletChartBound:function(t,e,i){var n,o=i.type;return o===r.BULLET_TYPE_ACTUAL?n=this._makeBarBound(i,r.BULLET_ACTUAL_HEIGHT_RATIO,t,e):o===r.BULLET_TYPE_RANGE?n=this._makeBarBound(i,r.BULLET_RANGES_HEIGHT_RATIO,t,e):o===r.BULLET_TYPE_MARKER&&(n=this._makeLineBound(i,r.BULLET_MARKERS_HEIGHT_RATIO,t,e)),n.type=o,n},_makeBarBound:function(t,e,i,n){var o,a=i.itemWidth*e,r=i.valueAxisWidth*t.ratioDistance,s=i.valueAxisWidth*t.endRatio;return o=this.isVertical?this._makeVerticalBarBound(n,i,a,r,s):this._makeHorizontalBarBound(n,i,a,r,s)},_makeVerticalBarBound:function(t,e,i,n,o){return{top:t.top-o,left:t.left+(e.itemWidth-i)/2,width:i,height:n}},_makeHorizontalBarBound:function(t,e,i,n,o){return{top:t.top+(e.itemWidth-i)/2,left:t.left+o-n,width:n,height:i}},_makeLineBound:function(t,e,i,n){var o,a,s=i.itemWidth*e,h=i.valueAxisWidth*t.endRatio,l=r.BULLET_MARKER_DETECT_PADDING,u=r.BULLET_MARKER_DETECT_PADDING;return this.isVertical?(o=n.top-h,a=n.left+(i.itemWidth-s)/2,l=s):(o=n.top+(i.itemWidth-s)/2,a=n.left+h,u=s),{top:o,left:a,length:s,width:l,height:u}},_updateIterationData:function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},_renderSeriesArea:function(t,e){o.prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},_renderSeriesLabel:function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),o=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,o,n,e)},_getLabelTexts:function(t){return t.map(function(t){var e=[];return t.each(function(t){t.type!==r.BULLET_TYPE_RANGE&&e.push(t.endLabel)}),e})},_calculateLabelPositions:function(t,e){var i=this.seriesData.groupBounds,n=a.getRenderedLabelHeight(r.MAX_HEIGHT_WORD,e);return s.map(i,function(t){var e=[];return s.forEach(t,function(t){t.type!==r.BULLET_TYPE_RANGE&&e.push(this._makePositionByBound(t,n))},this),e},this)},_makePositionByBound:function(t,e){var i,n,o=t.top,a=t.left,r={};return this.isVertical?(i=t.width||t.length,r.top=o-e,r.left=a+i/2):(i=t.width||0,n=t.height||t.length,r.top=o+n/2,r.left=a+5+(i||0)),r}});n.componentType="series",n.BulletChartSeries=h,t.exports=n},function(t,e,i){"use strict";function n(t){return new c(t)}var o=i(6),a=o.browser.msie&&o.browser.version<=8,r=i(100),s=i(8),h=i(9),l=i(7),u=i(55),c=o.defineClass({className:"tui-chart-zoom-area",init:function(t){this.eventBus=t.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=s.COMPONENT_TYPE_DOM,this._attachToEventBus()},_attachToEventBus:function(){this.eventBus.on("wheel",this.onWheel,this)},render:function(t){var e;return a||(e=h.create("DIV",this.className),e.innerHTML+=r.ZOOM_BUTTONS,l.renderPosition(e,t.positionMap.series),this._attachEvent(e)),e},_findBtnElement:function(t){var e="tui-chart-zoom-btn",i=t;return h.hasClass(t,e)||(i=h.findParentByClass(t,e)),i},_zoom:function(t,e){this.eventBus.fire("zoomMap",t,e)},_onClick:function(t){var e=t.target||t.srcElement,i=this._findBtnElement(e),n=i.getAttribute("data-magn"),o=this._calculateMagn(n);return o>5?this.magn=5:o<1?this.magn=1:o>=1&&this._zoom(o),t.preventDefault&&t.preventDefault(),!1},_attachEvent:function(t){u.on(t,"click",this._onClick,this)},_calculateMagn:function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},onWheel:function(t,e){var i=this._calculateMagn(t);i>5?this.magn=5:i<1?this.magn=1:i>=1&&this._zoom(i,e)}});n.componentType="zoom",t.exports=n},function(t,e,i){"use strict";var n=i(65),o={HTML_SERIES_LABEL:'<div class="tui-chart-series-label" style="{{ cssText }}"{{ rangeLabelAttribute }}>{{ label }}</div>',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'<a class="tui-chart-zoom-btn" href="#" data-magn="1"><div class="horizontal-line"></div><div class="vertical-line"></div></a><a class="tui-chart-zoom-btn" href="#" data-magn="-1"><div class="horizontal-line"></div></a>',HTML_SERIES_BLOCK:'<div class="tui-chart-series-block" style="{{ cssText }}">{{ label }}</div>'};t.exports={tplSeriesLabel:n.template(o.HTML_SERIES_LABEL),tplCssText:n.template(o.TEXT_CSS_TEXT),tplCssTextForLineType:n.template(o.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:o.HTML_ZOOM_BUTTONS,tplSeriesBlock:n.template(o.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";var n=i(8),o=i(102),a=i(103),r=i(107),s=i(109),h=i(110),l=i(104),u=i(31),c=i(11),d=i(7),p=i(45),f=i(36),m=i(6),g=Array.prototype.concat,_=m.isUndefined,T=m.defineClass(o,{init:function(t,e,i,n){this.originalRawData=f.deepCopy(t),this.chartType=e,this.options=i,this.seriesTypes=n,this.originalLegendData=null,this.dynamicData=[],this.defaultValues=[0,500],this.initData(t),this.initZoomedRawData(),this.baseInit()},getOriginalRawData:function(){return f.deepCopy(this.originalRawData)},getZoomedRawData:function(){var t=this.zoomedRawData;return t=t?f.deepCopy(t):this.getOriginalRawData()},_filterSeriesDataByIndexRange:function(t,e,i){return m.forEachArray(t,function(t){t.data=t.data.slice(e,i+1)}),t},_filterRawDataByIndexRange:function(t,e){var i=this,n=e[0],o=e[1];return m.forEach(t.series,function(e,a){t.series[a]=i._filterSeriesDataByIndexRange(e,n,o)}),t.categories&&(t.categories=t.categories.slice(n,o+1)),t},updateRawDataForZoom:function(t){var e=this.getRawData(),i=this.getZoomedRawData();this.zoomedRawData=this._filterRawDataByIndexRange(i,t),e=this._filterRawDataByIndexRange(e,t),this.initData(e)},initZoomedRawData:function(){this.zoomedRawData=null},initData:function(t){this.rawData=t,this.categoriesMap=null,this.stacks=null,this.seriesDataModelMap={},this.seriesGroups=null,this.valuesMap={},this.legendLabels=null,this.legendData=null,this.multilineCategories=null,this.coordinateType=null},getRawData:function(){return this.rawData},findChartType:function(t){return u.findChartType(this.rawData.seriesAlias,t)},_escapeCategories:function(t){return m.map(t,function(t){return m.encodeHTMLEntity(String(t))})},_mapCategories:function(t,e){var i=e+"Axis",n=this.options[i]||{},o=!1;return o=m.isArray(n)?m.filter(n,function(t){return t.type&&c.isDatetimeType(t.type)}):n.type&&c.isDatetimeType(n.type),t=o?m.map(t,function(t){var e=new Date(t);return e.getTime()||t}):this._escapeCategories(t)},_processCategories:function(t){var e=this.rawData.categories,i={};return m.isArray(e)?i[t]=this._mapCategories(e,t):e&&(e.x&&(i.x=this._mapCategories(e.x,"x")),e.y&&(i.y=this._mapCategories(e.y,"y").reverse())),i},getCategories:function(t){var e=t?"y":"x",i=[];return this.categoriesMap||(this.categoriesMap=this._processCategories(e)),m.isExisty(t)?i=this.categoriesMap[e]||[]:m.forEach(this.categoriesMap,function(t){return i=t,!1}),i},getCategoryCount:function(t){var e=this.getCategories(t);return e?e.length:0},hasCategories:function(t){return!!this.getCategoryCount(t)},isXCountGreaterThanYCount:function(t){var e=this.getSeriesDataModel(t);return e.isXCountGreaterThanYCount()},hasXValue:function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},hasYValue:function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},getCategory:function(t,e){return this.getCategories(e)[t]},findCategoryIndex:function(t){var e=this.getCategories(),i=null;return m.forEachArray(e,function(e,n){return e===t&&(i=n),m.isNull(i)}),i},findAbsoluteCategoryIndex:function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(m.forEach(e,function(e,n){var o=e===t;return o&&(i=n),!o}),i):i},_getTooltipCategory:function(t,e){var i=this.getCategory(t,e),n=e?"yAxis":"xAxis",o=this.options[n]||{},a=this.options.tooltip||{};
18
+ return c.isDatetimeType(a.type)?i=d.formatDate(i,a.dateFormat):c.isDatetimeType(o.type)&&(i=d.formatDate(i,o.dateFormat)),i},makeTooltipCategory:function(t,e,i){var n=!i,o=this._getTooltipCategory(t,n),a=this.getCategoryCount(!n);return a&&(o+=", "+this._getTooltipCategory(a-e-1,!n)),o},getStacks:function(t){return this.stacks||(this.stacks=u.pickStacks(this.rawData.series[t])),this.stacks},getStackCount:function(t){return this.getStacks(t).length},findStackIndex:function(t){return m.inArray(t,this.getStacks())},isCoordinateType:function(){var t=this.chartType,e=this.coordinateType;return m.isExisty(e)||(e=c.isCoordinateTypeChart(t),e=e||c.isLineScatterComboChart(t,this.seriesTypes),e=e||c.isLineTypeChart(t)&&!this.hasCategories(),this.coordinateType=e),e},getSeriesDataModel:function(t){var e,i,n;return this.seriesDataModelMap[t]||(i=this.findChartType(t),e=this.rawData.series[t],n=c.isBoxplotChart(this.chartType)?r:c.isTreemapChart(this.chartType)?h:c.isBulletChart(this.chartType)?s:a,this.seriesDataModelMap[t]=new n(e,i,this.options,this.getFormatFunctions(),this.isCoordinateType())),this.seriesDataModelMap[t]},getGroupCount:function(t){return this.getSeriesDataModel(t).getGroupCount()},_pushCategory:function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},_shiftCategory:function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},_findRawSeriesDatumByName:function(t,e){var i=null,n=this.rawData.series[e];return m.forEachArray(n,function(e){var n=e.name===t;return n&&(i=e),!n}),i},_pushValue:function(t,e,i){var n=this._findRawSeriesDatumByName(t.name,i);t.data.push(e),n&&n.data.push(e)},_pushValues:function(t,e,i){var n=this;m.forEachArray(t,function(t,o){n._pushValue(t,e[o],i)})},_pushSeriesData:function(t){var e,i=this;"combo"!==this.chartType&&m.isArray(t)&&(e=t,t={},t[this.chartType]=e),m.forEach(this.originalRawData.series,function(e,n){i._pushValues(e,t[n],n)})},_shiftValues:function(t,e){var i=this;m.forEachArray(t,function(t){var n=i._findRawSeriesDatumByName(t.name,e);t.data.shift(),n&&n.data.shift()})},_shiftSeriesData:function(){var t=this;m.forEach(this.originalRawData.series,function(e,i){t._shiftValues(e,i)})},addDynamicData:function(t,e){this.dynamicData.push({category:t,values:e})},_pushDynamicData:function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},_pushDynamicDataForCoordinateType:function(t){var e=this;m.forEachArray(this.originalRawData.series,function(i){e._pushValue(i,t[i.name])})},addDataFromDynamicData:function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},shiftData:function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},addDataFromRemainDynamicData:function(t){var e=this,i=this.dynamicData;this.dynamicData=[],m.forEach(i,function(i){e._pushCategory(i.category),e._pushSeriesData(i.values),t&&(e._shiftCategory(),e._shiftSeriesData())}),this.initData(this.rawData)},_eachByAllSeriesDataModel:function(t){var e=this,i=this.seriesTypes||[this.chartType];m.forEachArray(i,function(i){return t(e.getSeriesDataModel(i),i)})},isValidAllSeriesDataModel:function(){var t=!0;return this._eachByAllSeriesDataModel(function(e){return t=!!e.getGroupCount()}),t},_makeSeriesGroups:function(){var t,e=[];return this._eachByAllSeriesDataModel(function(t){t.each(function(t,i){e[i]||(e[i]=[]),e[i]=e[i].concat(t.items)})}),t=m.map(e,function(t){return new l(t)})},getSeriesGroups:function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},getValue:function(t,e,i){return this.getSeriesDataModel(i).getValue(t,e)},getDefaultDatetimeValues:function(){var t=36e5,e=Date.now();return[e-t,e]},isSeriesDataEmpty:function(t){var e=this.rawData,i=e&&!e.series;return!e||i||!e.series[t]||e.series[t]&&!e.series[t].length},isLimitOptionsEmpty:function(t){var e=this.options[t]||{};return _(e.min)&&_(e.max)},isLimitOptionsInsufficient:function(t){var e=this.options[t]||{};return _(e.min)||_(e.max)},_createValues:function(t,e,i){var n,o,a=this.options,r=a.plot,s=a[i]||{},h=s.type,l=this.isSeriesDataEmpty(t),u=this.isLimitOptionsEmpty(i),d=this.isLimitOptionsInsufficient(i),p=c.isLineChart(t)||c.isAreaChart(t)||c.isLineAreaComboChart(t,this.seriesTypes),f=this.defaultValues;return c.isComboChart(t)?(n=[],this._eachByAllSeriesDataModel(function(t){n=n.concat(t.getValues(e))})):l&&d?(!u&&d&&(f=f.concat([s.min||s.max])),"x"===e&&"datetime"===h?(n=this.getDefaultDatetimeValues(),p&&r&&(o=this.getValuesFromPlotOptions(r,h),n=n.concat(o))):n=f):n=this.getSeriesDataModel(t).getValues(e),n},getValuesFromPlotOptions:function(t,e){var i=[];return t.lines&&m.forEach(t.lines,function(t){i.push("datetime"!==e?t.value:new Date(t.value))}),t.bands&&m.forEach(t.bands,function(t){var n=m.map(t.range,function(t){return"datetime"!==e?t:new Date(t)});i=i.concat(n)}),i},getValues:function(t,e,i){var n;return n=t+e,this.valuesMap[n]||(this.valuesMap[n]=this._createValues(t,e,i)),this.valuesMap[n]},eachBySeriesGroup:function(t,e){this._eachByAllSeriesDataModel(function(i,n){i.each(function(e,i){t(e,i,n)},e)})},_pickLegendLabel:function(t){return t.name?m.encodeHTMLEntity(t.name):null},_isVisibleLegend:function(t){var e=!0;return m.isExisty(t.visible)&&t.visible===!1&&(e=!1),e},_pickLegendData:function(t){var e,i=this.rawData.series,n={};return"visibility"===t?e=this._isVisibleLegend:"label"===t&&(e=this._pickLegendLabel),e&&(m.forEach(i,function(t,i){n[i]=m.map(t,e)}),n=m.filter(n,m.isExisty)),n},getLegendLabels:function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},getLegendVisibility:function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},_makeLegendData:function(){var t,e,i=this.getLegendLabels(this.chartType),n=this.seriesTypes||[this.chartType],o=this.getLegendVisibility();return m.isArray(i)?(t=[this.chartType],t[this.chartType]=i):(n=this.seriesTypes,t=i),e=m.map(n,function(e){return m.map(t[e],function(t,i){var n=m.isArray(o[e]);return{chartType:e,label:t,visible:n?o[e][i]:o[i]}})}),g.apply([],e)},getLegendData:function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},getOriginalLegendData:function(){return this.originalLegendData},getLegendItem:function(t){return this.getLegendData()[t]},getFirstItemLabel:function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},addDataRatiosOfPieChart:function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},addDataRatiosForCoordinateType:function(t,e,i){c.isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,i)},_addStartValueToAllSeriesItem:function(t,e){var i=0;t.min>=0?i=t.min:t.max<=0&&(i=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(i)},addDataRatios:function(t,e,i){var n=this.getSeriesDataModel(i);this._addStartValueToAllSeriesItem(t,i),n.addDataRatios(t,e)},addDataRatiosForTreemapChart:function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},_createBaseValuesForNormalStackedChart:function(t){var e=this.getSeriesDataModel(t),i=[];return e.each(function(t){var e=t._makeValuesMapPerStack();m.forEach(e,function(t){var e=p.sumPlusValues(t),n=p.sumMinusValues(t);i=i.concat([e,n])})}),i},createBaseValuesForLimit:function(t,e,i,n,o){var a;return c.isComboChart(this.chartType)&&e?(a=this.getValues(this.chartType,n),c.isNormalStackChart(t,i)&&(a=a.concat(this._createBaseValuesForNormalStackedChart(t)))):a=c.isTreemapChart(t)?this.getValues(t,"colorValue"):c.isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,n,o),a},findOverflowItem:function(t,e){var i=this.getSeriesDataModel(t),o=i.getMaxValue("r"),a=function(t){return t.r/o>n.HALF_RATIO};return{minItem:i.findMinSeriesItem(e,a),maxItem:i.findMaxSeriesItem(e,a)}},setGraphColors:function(t){this.graphColors=t},getGraphColors:function(){return this.graphColors}});t.exports=T},function(t,e,i){"use strict";var n=i(10),o=i(7),a=i(45),r=i(6),s=r.defineClass({baseInit:function(){this.formatFunctions=null},getValues:function(){},getMaxValue:function(t,e){return n.max(this.getValues(t,e))},getFormattedMaxValue:function(t,e,i){var n=this.getMaxValue(t,i),a=this.getFormatFunctions();return o.formatValue({value:n,formatFunctions:a,chartType:t,areaType:e,valueType:i})},_pickMaxLenUnderPoint:function(t){var e=0;return r.forEachArray(t,function(t){var i=a.getDecimalLength(t);i>e&&(e=i)}),e},_isZeroFill:function(t){return t.length>2&&"0"===t.charAt(0)},_isDecimal:function(t){var e=t.indexOf(".");return e>-1&&e<t.length-1},_isComma:function(t){return t.indexOf(",")>-1},_formatToZeroFill:function(t,e){var i=e<0;return e=o.formatToZeroFill(Math.abs(e),t),(i?"-":"")+e},_formatToDecimal:function(t,e){return o.formatToDecimal(e,t)},_findSimpleTypeFormatFunctions:function(t){var e,i=[];if(this._isDecimal(t))e=this._pickMaxLenUnderPoint([t]),i=[r.bind(this._formatToDecimal,this,e)];else if(this._isZeroFill(t))return e=t.length,i=[r.bind(this._formatToZeroFill,this,e)];return this._isComma(t)&&i.push(o.formatToComma),i},_findFormatFunctions:function(){var t=r.pick(this.options,"chart","format"),e=[];return r.isFunction(t)?e=[t]:r.isString(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},getFormatFunctions:function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions}});t.exports=s},function(t,e,i){"use strict";var n=i(104),o=i(105),a=i(106),r=i(11),s=i(45),h=i(10),l=i(6),u=Array.prototype.concat,c=l.defineClass({init:function(t,e,i,n,o){this.chartType=e,this.options=i||{},this.formatFunctions=n,this.rawSeriesData=t||[],this.isCoordinateType=o,this.baseGroups=null,this.groups=null,this.options.series=this.options.series||{},this.isDivergingChart=r.isDivergingChart(e,this.options.series.diverging),this.valuesMap={},this._removeRangeValue()},_removeRangeValue:function(){var t=l.pick(this.options,"series")||{},e=r.isAllowRangeData(this.chartType)&&!r.isValidStackOption(t.stackType)&&!t.spline;e||this.isCoordinateType||l.forEachArray(this.rawSeriesData,function(t){l.isArray(t.data)&&l.forEachArray(t.data,function(e,i){l.isExisty(e)&&(t.data[i]=u.apply(e)[0])})})},_createBaseGroups:function(){var t,e,i=this.chartType,n=this.formatFunctions,s=this.options.xAxis,h=this.isDivergingChart,u=this.isCoordinateType,c=r.isPieChart(this.chartType),d=r.isHeatmapChart(this.chartType)||r.isTreemapChart(this.chartType);return u?(e=a,t=function(t){t.sort(function(t,e){return t.x-e.x})}):(e=o,t=function(){}),l.map(this.rawSeriesData,function(o){var a,r,p,f;return r=l.isArray(o)?o:[].concat(o.data),d||(a=o.stack),o.name&&(p=o.name),(u||c)&&(r=l.filter(r,l.isExisty)),f=l.map(r,function(t,o){return new e({datum:t,chartType:i,formatFunctions:n,index:o,legendName:p,stack:a,isDivergingChart:h,xAxisType:s.type,dateFormat:s.dateFormat})}),t(f),f})},_getBaseGroups:function(){return this.baseGroups||(this.baseGroups=this._createBaseGroups()),this.baseGroups},_createSeriesGroupsFromRawData:function(t){var e=this._getBaseGroups();return t&&(e=h.pivot(e)),l.map(e,function(t){return new n(t)})},_getSeriesGroups:function(){return this.groups||(this.groups=this._createSeriesGroupsFromRawData(!0)),this.groups},getGroupCount:function(){return this._getSeriesGroups().length},_getPivotGroups:function(){return this.pivotGroups||(this.pivotGroups=this._createSeriesGroupsFromRawData()),this.pivotGroups},getSeriesGroup:function(t,e){return e?this._getPivotGroups()[t]:this._getSeriesGroups()[t]},getFirstSeriesGroup:function(t){return this.getSeriesGroup(0,t)},getFirstItemLabel:function(){return this.getFirstSeriesGroup().getFirstSeriesItem().label},getSeriesItem:function(t,e,i){return this.getSeriesGroup(t,i).getSeriesItem(e)},getFirstSeriesItem:function(){return this.getSeriesItem(0,0)},getValue:function(t,e){return this.getSeriesItem(t,e).value},getMinValue:function(t){return h.min(this.getValues(t))},getMaxValue:function(t){return h.max(this.getValues(t))},_findSeriesItem:function(t){var e;return this.each(function(i){return e=i.find(t),!e}),e},_findSeriesItemByValue:function(t,e,i){return i=i||function(){return null},this._findSeriesItem(function(n){return n&&n[t]===e&&i(n)})},findMinSeriesItem:function(t,e){var i=this.getMinValue(t);return this._findSeriesItemByValue(t,i,e)},findMaxSeriesItem:function(t,e){var i=this.getMaxValue(t);return this._findSeriesItemByValue(t,i,e)},_createValues:function(t){var e=this.map(function(e){return e.getValues(t)});return e=u.apply([],e),l.filter(e,function(t){return!isNaN(t)})},getValues:function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},isXCountGreaterThanYCount:function(){return this.getValues("x").length>this.getValues("y").length},_addRatiosWhenNormalStacked:function(t){var e=Math.abs(t.max-t.min);this.each(function(t){t.addRatios(e)})},_calculateBaseRatio:function(){var t=this.getValues(),e=s.sumPlusValues(t),i=Math.abs(s.sumMinusValues(t)),n=e>0&&i>0?.5:1;return n},_addRatiosWhenPercentStacked:function(){var t=this._calculateBaseRatio();this.each(function(e){e.addRatiosWhenPercentStacked(t)})},_addRatiosWhenDivergingStacked:function(){this.each(function(t){var e=t.pluck("value"),i=s.sumPlusValues(e),n=Math.abs(s.sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,n)})},_makeSubtractionValue:function(t){var e=r.allowMinusPointRender(this.chartType),i=0;return!e&&r.isMinusLimit(t)?i=t.max:(e||t.min>=0)&&(i=t.min),i},_addRatios:function(t){var e=Math.abs(t.max-t.min),i=this._makeSubtractionValue(t);this.each(function(t){t.addRatios(e,i)})},addDataRatios:function(t,e){var i=r.isAllowedStackOption(this.chartType);i&&r.isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&r.isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},addDataRatiosOfPieChart:function(){this.each(function(t){var e=s.sum(t.pluck("value"));t.addRatios(e)})},addDataRatiosForCoordinateType:function(t,e){var i,n,o,a,r=t.xAxis,s=t.yAxis,u=e?h.max(this.getValues("r")):0;r&&(i=Math.abs(r.max-r.min),n=this._makeSubtractionValue(r)),s&&(o=Math.abs(s.max-s.min),a=this._makeSubtractionValue(s)),this.each(function(t){t.each(function(t){t&&(t.addRatio("x",i,n),t.addRatio("y",o,a),t.addRatio("r",u,0),l.isExisty(t.start)&&t.addRatio("start",o,a))})})},addStartValueToAllSeriesItem:function(t){this.each(function(e){e.addStartValueToAllSeriesItem(t)})},hasRangeData:function(){var t=!1;return this.each(function(e){return t=e.hasRangeData(),!t}),t},each:function(t,e){var i=e?this._getPivotGroups():this._getSeriesGroups();l.forEachArray(i,function(e,i){return t(e,i)})},map:function(t,e){var i=[];return this.each(function(e,n){i.push(t(e,n))},e),i}});t.exports=c},function(t,e,i){"use strict";var n=i(45),o=i(6),a=o.defineClass({init:function(t){this.items=t,this.valuesMap={},this.valuesMapPerStack=null},getSeriesItemCount:function(){return this.items.length},getSeriesItem:function(t){return this.items[t]},getFirstSeriesItem:function(){return this.getSeriesItem(0)},_createValues:function(t){var e=[];return this.each(function(i){i&&(o.isExisty(i[t])&&e.push(i[t]),o.isExisty(i.start)&&e.push(i.start))}),e},getValues:function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},_makeValuesMapPerStack:function(){var t={};return this.each(function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)}),t},getValuesMapPerStack:function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},_makeSumMapPerStack:function(){var t=this.getValuesMapPerStack(),e={};return o.forEach(t,function(t,i){e[i]=n.sum(o.map(t,function(t){return Math.abs(t)}))}),e},addStartValueToAllSeriesItem:function(t){this.each(function(e){e&&e.addStart(t)})},addRatiosWhenPercentStacked:function(t){var e=this._makeSumMapPerStack();this.each(function(i){var n=e[i.stack];i.addRatio(n,0,t)})},addRatiosWhenDivergingStacked:function(t,e){this.each(function(i){var n=i.value>=0?t:e;i.addRatio(n,0,.5)})},addRatios:function(t,e){this.each(function(i){i&&i.addRatio(t,e)})},hasRangeData:function(){var t=!1;return this.each(function(e){return t=e&&e.isRange,!t}),t},each:function(t){o.forEachArray(this.items,t)},map:function(t){return o.map(this.items,t)},pluck:function(t){var e=o.filter(this.items,o.isExisty);return o.pluck(e,t)},find:function(t){var e;return this.each(function(i){return t(i)&&(e=i),!e}),e||null},filter:function(t){return o.filter(this.items,t)}});t.exports=a},function(t,e,i){"use strict";var n=i(8),o=i(7),a=i(45),r=i(11),s=i(6),h=s.defineClass({init:function(t){this.chartType=t.chartType,this.stack=t.stack||n.DEFAULT_STACK,this.isDivergingChart=t.isDivergingChart,this.formatFunctions=t.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,r.isBulletChart(this.chartType)&&(this.type=t.type),this.legendName=t.legendName,this._initValues(t.datum,t.index)},_initValues:function(t,e){var i=this._createValues(t),n="makingSeriesLabel",a=i.length>1,r=i[0];this.value=this.end=r,this.index=e,this.isDivergingChart&&(r=Math.abs(r)),s.isNull(r)?this.label="":this.label=o.formatValue({value:r,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:n,legendName:this.legendName}),this.endLabel=this.label,a&&(this.addStart(i[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},_createValues:function(t){var e=s.map([].concat(t),function(t){return s.isNull(t)?null:parseFloat(t)});return e=e.sort(function(t,e){return t<0&&e<0?t-e:e-t})},addStart:function(t){s.isNull(this.start)&&(this.start=t,this.startLabel=o.formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},_updateFormattedValueforRange:function(){this.label=this.startLabel+" ~ "+this.endLabel},addRatio:function(t,e,i){t=t||1,i=i||1,e=e||0,this.ratio=this.endRatio=a.calculateRatio(this.value,t,e,i),s.isExisty(this.start)&&(this.startRatio=a.calculateRatio(this.start,t,e,i),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},_getFormattedValueForTooltip:function(t){return o.formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},pickValueMapForTooltip:function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return s.isExisty(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t}});t.exports=h},function(t,e,i){"use strict";var n=i(11),o=i(7),a=i(6),r=a.defineClass({init:function(t){this.chartType=t.chartType,this.formatFunctions=t.formatFunctions,this.xAxisType=t.xAxisType,this.dateFormat=t.dateFormat,this.ratioMap={},this._initData(t.datum,t.index)},_initData:function(t,e){var i;a.isArray(t)?(this.x=t[0]||0,this.y=t[1]||0,n.isBubbleChart(this.chartType)?(this.r=t[2],this.label=t[3]||""):this.label=t[2]||""):(this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||""),n.isDatetimeType(this.xAxisType)&&(i=a.isDate(this.x)?this.x:new Date(this.x),this.x=i.getTime()||0),this.index=e,this.label||(n.isLineTypeChart(this.chartType)&&n.isDatetimeType(this.xAxisType)?this.label=o.formatDate(this.x,this.dateFormat):this.label=o.formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"}),this.label+=",&nbsp;"+o.formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"}))},addStart:function(t){this.start=t},addRatio:function(t,e,i){!a.isExisty(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-i)/e)},_getFormattedValueForTooltip:function(t){var e=this.ratioMap[t],i=this[t],n=o.formatValue({value:i,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return a.isNumber(e)?n:i},pickValueMapForTooltip:function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return a.isExisty(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t}});t.exports=r},function(t,e,i){"use strict";var n=i(108),o=i(103),a=i(6),r=Array.prototype.concat,s=a.defineClass(o,{init:function(t,e,i,n){this.chartType=e,this.options=i||{},this.formatFunctions=n,this.rawSeriesData=t||[],this.baseGroups=null,this.groups=null,this.options.series=this.options.series||{},this.valuesMap={}},_createBaseGroups:function(){var t=this.chartType,e=this.formatFunctions;return a.map(this.rawSeriesData,function(i){var o=a.isArray(i)?i:[].concat(i.data),r=a.map(o,function(o,a){return new n({datum:o,chartType:t,formatFunctions:e,index:a,legendName:i.name})});return r})},_createValues:function(){var t=[];return this.map(function(e){a.forEach(e.items,function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)})}),t=r.apply([],t),a.filter(t,function(t){return!isNaN(t)})}});t.exports=s},function(t,e,i){"use strict";var n=i(7),o=i(45),a=i(6),r=a.defineClass({init:function(t){this.chartType=t.chartType,this.formatFunctions=t.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=t.legendName,this._initValues(t.datum,t.index)},_initValues:function(t,e){var i,o=this._createValues(t),r=o[4],s=o[3],h=o[2],l=o[1],u=o[0],c=o.length>5,d=a.bind(function(t){return n.formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"makingSeriesLabel",legendName:this.legendName})},this);this.value=this.max=r,this.uq=s,this.median=h,this.lq=l,this.min=u,this.index=e,c&&(this.outliers=[],i=this.outliers,a.forEach(o.slice(5),function(t){i.push({value:t,label:d(t)})})),this.label=d(r),this.uqLabel=d(s),this.medianLabel=d(h),this.lqLabel=d(l),this.minLabel=d(u),this.maxLabel=this.label},_createValues:function(t){var e=a.map([].concat(t),function(t){return a.isNull(t)?null:parseFloat(t)});return e},addStart:function(t){a.isNull(this.min)&&(this.min=t,this.minLabel=n.formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},_updateFormattedValueforRange:function(){this.label=this.minLabel+" ~ "+this.maxLabel},addRatio:function(t,e,i){var n=o.calculateRatio;t=t||1,i=i||1,e=e||0,this.ratio=this.maxRatio=n(this.max,t,e,i),this.uqRatio=n(this.uq,t,e,i),this.medianRatio=n(this.median,t,e,i),this.lqRatio=n(this.lq,t,e,i),this.minRatio=n(this.min,t,e,i),a.forEach(this.outliers,function(o){o.ratio=n(o.value,t,e,i)}),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},_getFormattedValueForTooltip:function(t){return n.formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},pickValueMapForTooltip:function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return a.isExisty(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t}});t.exports=r},function(t,e,i){"use strict";var n=i(105),o=i(103),a=i(8),r=i(6),s=r.defineClass(o,{init:function(t,e,i,n){o.call(this,t,e,i,n)},_createBaseGroups:function(){var t=this.chartType,e=this.formatFunctions,i=0,o=0,s=r.map(this.rawSeriesData,function(s){var h=[],l=s.data,u=s.markers,c=u.length,d=s.ranges,p=d.length;return d&&p&&(r.map(d,function(i){h.push(new n({datum:i,chartType:t,formatFunctions:e,type:a.BULLET_TYPE_RANGE}))}),i=Math.max(i,p)),l&&h.push(new n({datum:l,chartType:t,formatFunctions:e,type:a.BULLET_TYPE_ACTUAL})),u&&c&&(r.map(u,function(i){h.push(new n({datum:i,chartType:t,formabutFunctions:e,type:a.BULLET_TYPE_MARKER}))}),o=Math.max(o,c)),h});return this.maxMarkerCount=o,this.maxRangeCount=i,s},_createSeriesGroupsFromRawData:function(){return o.prototype._createSeriesGroupsFromRawData.call(this)}});t.exports=s},function(t,e,i){"use strict";var n=i(103),o=i(111),a=i(8),r=i(45),s=i(6),h=Array.prototype.slice,l=s.defineClass(n,{init:function(){n.apply(this,arguments),this.foundSeriesItemsMap={},this.seriesItemMap={}},_flattenHierarchicalData:function(t,e,i){var n,o=this,r=[];return e?n=e+"_":(n=a.TREEMAP_ID_PREFIX,e=a.TREEMAP_ROOT_ID),i=i||[],s.forEachArray(t,function(t,a){var h=n+a,l=t.children,u=i.concat(a);t.indexes=u,s.isNull(t.value)||r.push(t),t.id||(t.id=h),t.parent||(t.parent=e),l&&(r=r.concat(o._flattenHierarchicalData(l,h,u)),delete t.children)}),r},_partitionRawSeriesDataByParent:function(t,e){var i=[],n=[];return s.forEachArray(t,function(t){t.parent===e?i.push(t):n.push(t)}),[i,n]},_setTreeProperties:function(t,e,i,n){var o=this,a=this._partitionRawSeriesDataByParent(t,i),h=a[0],l=a[1],u=e+1;return s.forEachArray(h,function(t,i){var a,c;t.depth=e,t.group=s.isUndefined(n)?i:n,a=o._setTreeProperties(l,u,t.id,t.group),c=s.filter(a,function(t){return t.depth===u}),c.length?(t.value=r.sum(s.pluck(c,"value")),t.hasChild=!0):t.hasChild=!1,h=h.concat(a)}),h},_setRatio:function(t,e){var i=this,n=this._partitionRawSeriesDataByParent(t,e),o=n[0],a=n[1],h=r.sum(s.pluck(o,"value"));s.forEachArray(o,function(t){var e=s.isNull(t.value)?0:t.value;t.ratio=e/h,t.hasChild&&i._setRatio(a,t.id)})},_createBaseGroups:function(){var t=this.chartType,e=this.seriesItemMap,i=this.formatFunctions,n=this._flattenHierarchicalData(this.rawSeriesData);return n=this._setTreeProperties(n,1,a.TREEMAP_ROOT_ID),this._setRatio(n,a.TREEMAP_ROOT_ID),[s.map(n,function(n){var a=new o(n,i,t);return e[a.id]=a,a})]},_findSeriesItems:function(t,e){return this.foundSeriesItemsMap[t]||(this.foundSeriesItemsMap[t]=this.getFirstSeriesGroup(!0).filter(e)),this.foundSeriesItemsMap[t]},_makeCacheKey:function(t){var e=t;return arguments.length>1&&(e+=h.call(arguments,1).join("_")),e},_isValidGroup:function(t,e){return!s.isExisty(e)||t===e},findSeriesItemsByDepth:function(t,e){var i=this,n=this._makeCacheKey(a.TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(n,function(n){return n.depth===t&&i._isValidGroup(n.group,e)})},findSeriesItemsByParent:function(t){var e=this._makeCacheKey(a.TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,function(e){return e.parent===t})},findLeafSeriesItems:function(t){var e=this,i=this._makeCacheKey(a.TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(i,function(i){return!i.hasChild&&e._isValidGroup(i.group,t)})},findParentByDepth:function(t,e){var i=this.seriesItemMap[t]||null;return i&&i.depth!==e&&(i=this.findParentByDepth(i.parent,e)),i},initSeriesItemsMap:function(){this.foundSeriesItemsMap=null}});t.exports=l},function(t,e,i){"use strict";var n=i(45),o=i(7),a=i(6),r=a.defineClass({init:function(t,e,i){this.chartType=i,this.formatFunctions=e,this.id=t.id,this.parent=t.parent,this.value=t.value,this.ratio=t.ratio,this.colorValue=t.colorValue,this.depth=t.depth,this.label=t.label||"",this.group=t.group,this.hasChild=!!t.hasChild,this.indexes=t.indexes},addRatio:function(t,e){t=t||1,e=e||0,this.colorRatio=n.calculateRatio(this.colorValue,t,e,1)||-1},pickValueMapForTooltip:function(){var t=this.formatFunctions,e=this.chartType,i=this.colorValue,n=o.formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),r=(this.label?this.label+": ":"")+n,s={value:n,label:r,ratio:this.ratio};return a.isExisty(i)&&(s.colorValue=o.formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),s.colorRatio=this.colorRatio),s},pickLabelTemplateData:function(){var t={value:this.value,ratio:this.ratio,label:this.label};return a.isExisty(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t}});t.exports=r},function(t,e,i){"use strict";var n=i(113),o=i(119),a=i(8),r=i(11),s={_createBoundsModel:function(t,e){return new n({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,i){return new o({chartType:i.chartType,seriesTypes:i.seriesTypes,options:i.options,theme:i.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:i.hasRightYAxis,addedDataCount:i.addedDataCount})},addYAxisScale:function(t,e,i,n){t.addScale(e,i&&i.options||n||{},{valueType:i.valueType||"value",areaType:i.areaType,chartType:i.chartType},i.additionalOptions)},_registerYAxisDimension:function(t,e,i,n,o){var a,r=t.get(n),s=null;r&&(a=i[n],a&&(s=a.limit),e.registerYAxisDimension(s,n,r.options,r.theme,o))},_setLayoutBoundsAndScale:function(t,e,i,n,o){var s,h=o.options,l=o.scaleOption||{},u=o.addingDataMode,c=o.isVertical;e.has("xAxis")&&i.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?i.registerSpectrumLegendDimension():i.registerLegendDimension()),l.yAxis&&this.addYAxisScale(n,"yAxis",l.yAxis,o.options.yAxis),l.rightYAxis&&this.addYAxisScale(n,"rightYAxis",l.rightYAxis),l.legend&&n.addScale("legend",{},{chartType:o.chartType},{tickCounts:[a.SPECTRUM_LEGEND_TICK_COUNT]}),s=n.scaleDataMap,this._registerYAxisDimension(e,i,s,"yAxis",c),this._registerYAxisDimension(e,i,s,"rightYAxis",c),l.xAxis&&n.addScale("xAxis",h.xAxis,{valueType:l.xAxis.valueType||"value"},l.xAxis.additionalOptions),o.hasAxes&&n.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&h.circleLegend.visible&&i.registerCircleLegendDimension(n.axisDataMap),e.has("xAxis")&&(r.isAutoTickInterval(h.xAxis.tickInterval)&&n.updateXAxisDataForAutoTickInterval(o.prevXAxisData,u),n.updateXAxisDataForLabel(u)),i.registerBoundsData(n.axisDataMap.xAxis)},build:function(t,e,i){var n,o=this._createBoundsModel(t,i),a=this._createScaleDataModel(t,o,i);return this._setLayoutBoundsAndScale(t,e,o,a,i),n={dimensionMap:o.dimensionMap,positionMap:o.positionMap,limitMap:a.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)},a.axisDataMap&&(n.axisDataMap=a.axisDataMap),r.isBubbleChart(i.chartType)&&(n.maxRadius=o.calculateMaxRadius(a.axisDataMap)),a.scaleDataMap.legend&&(n.legendScaleData=a.scaleDataMap.legend),n}};t.exports=s},function(t,e,i){"use strict";var n=i(8),o=i(11),a=i(7),r=i(5),s=i(114),h=i(115),l=i(116),u=i(117),c=i(118),d=i(6),p=d.defineClass({init:function(t){this.options=t.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=t.theme||{},this.hasAxes=t.hasAxes,this.chartType=t.chartType,this.seriesTypes=t.seriesTypes||[],this.dataProcessor=t.dataProcessor,this.initBoundsData()},initBoundsData:function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=n.CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},_registerDimension:function(t,e){this.dimensionMap[t]=d.extend(this.dimensionMap[t]||{},e)},getBound:function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}
19
+ }},_setBound:function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},getDimension:function(t){return this.dimensionMap[t]},getDimensionMap:function(t){var e=this,i={};return t&&t.length?d.forEachArray(t,function(t){i[t]=e.dimensionMap[t]}):i=this.dimensionMap,JSON.parse(JSON.stringify(i))},getPosition:function(t){return this.positionMap[t]},_registerChartDimension:function(){var t=this.options.chart||{},e={width:t.width||n.CHART_DEFAULT_WIDTH,height:t.height||n.CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},_registerTitleDimension:function(){var t=this.options.chart||{},e=d.isExisty(t.title),i=e?r.getRenderedTextSize(t.title.text,this.theme.title.fontSize,this.theme.title.fontFamily).height:0,o={height:i?i+n.TITLE_PADDING:0};this._registerDimension("title",o)},_registerChartExportMenuDimension:function(){var t;t=this.options.chartExportMenu.visible?{height:17+n.CHART_PADDING,width:60}:{width:0,height:0},this._registerDimension("chartExportMenu",t)},registerXAxisHeight:function(){this._registerDimension("xAxis",{height:h.calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},registerLegendDimension:function(){var t=d.pluck(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,i=this.theme.legend.label,n=this.getDimension("chart").width,o=l.calculate(e,i,t,n);this._registerDimension("legend",o)},registerSpectrumLegendDimension:function(){var t,e=this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=this.theme.label;t=o.isHorizontalLegend(this.options.legend.align)?c._makeHorizontalDimension(e,i):c._makeVerticalDimension(e,i),this._registerDimension("legend",t)},registerYAxisDimension:function(t,e,i,n,a){var r,s;if(t)r=[t.min,t.max];else{if(!o.isHeatmapChart(this.chartType)&&a)return;r=this.dataProcessor.getCategories(!0)}s=d.isArray(i)?"yAxis"===e?i[0]:i[1]:i,this._registerDimension(e,{width:h.calculateYAxisWidth(r,s,n)})},calculateSeriesWidth:function(){var t=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]);return u.calculateWidth(t,this.options.legend)},calculateSeriesHeight:function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]);return u.calculateHeight(t,this.options.legend,this.chartType,this.theme.series)},getBaseSizeForLimit:function(t){var e;return e=t?this.calculateSeriesHeight():this.calculateSeriesWidth()},_makeSeriesDimension:function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},registerSeriesDimension:function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},_updateLegendAndSeriesWidth:function(t,e){var i=this.options.legend;o.isVerticalLegend(i.align)&&i.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},registerCircleLegendDimension:function(t){var e,i,a=this.getDimension("series"),r=this.options.legend,h=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),l=this.theme.chart.fontFamily,u=s.calculateCircleLegendWidth(a,t,h,l);e=o.isVerticalLegend(r.align)&&r.visible?this.getDimension("legend").width:0,u=Math.min(u,Math.max(e,n.MIN_LEGEND_WIDTH)),i=u-e,this._registerDimension("circleLegend",{width:u,height:u}),i>0&&this._updateLegendAndSeriesWidth(u,i)},_makePlotDimension:function(){var t=this.getDimension("series");return{width:t.width,height:t.height+n.OVERLAPPING_WIDTH}},_registerCenterComponentsDimension:function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},_registerAxisComponentsDimension:function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},_updateDimensionsWidth:function(t){var e=Math.max(t.overflowLeft,0),i=Math.max(t.overflowRight,0),n=e+i;this.chartLeftPadding+=e,this.dimensionMap.plot.width-=n,this.dimensionMap.series.width-=n,this.dimensionMap.mouseEventDetector.width-=n,this.dimensionMap.xAxis.width-=n},_updateDimensionsHeight:function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},_updateDimensionsForXAxisLabel:function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},_registerAxisComponentsPosition:function(t){var e=this.getPosition("series"),i=this.getDimension("series"),o=this.getDimension("yAxis").width,a=t+o+i.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+i.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+a-n.OVERLAPPING_WIDTH}},_makeLegendPosition:function(){var t,e,i=this.dimensionMap,a=this.getDimension("series"),r=this.options.legend,s=i.title.height||i.chartExportMenu.height;return o.isLegendAlignBottom(r.align)&&(s+=a.height+this.getDimension("xAxis").height+n.LEGEND_AREA_PADDING),o.isHorizontalLegend(r.align)?e=(this.getDimension("chart").width-this.getDimension("legend").width)/2:o.isLegendAlignLeft(r.align)?e=this.chartLeftPadding:(t=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,e=this.chartLeftPadding+t+a.width),{top:s,left:e}},_makeChartExportMenuPosition:function(){return{top:1,right:20}},_makeCircleLegendPosition:function(){var t,e,i=this.getPosition("series"),a=this.getDimension("series"),r=this.getDimension("circleLegend"),s=this.options.legend;return t=o.isLegendAlignLeft(s.align)?0:i.left+a.width,o.isVerticalLegend(s.align)&&s.visible&&(e=this.getDimension("legend").width+n.CHART_PADDING,t+=(e-r.width)/2),{top:i.top+a.height-r.height,left:t}},_isNeedExpansionSeries:function(){var t=this.chartType;return!(o.isPieChart(t)||o.isMapChart(t)||o.isTreemapChart(t)||o.isRadialChart(t)||o.isPieDonutComboChart(t,this.seriesTypes))},_registerEssentialComponentsPositions:function(){var t,e=this.getPosition("series");this.positionMap.mouseEventDetector=d.extend({},e),this.positionMap.legend=this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),t=this._isNeedExpansionSeries()?{top:e.top-n.SERIES_EXPAND_SIZE,left:e.left-n.SERIES_EXPAND_SIZE}:e,this.positionMap.tooltip=t},_registerPositions:function(){var t=this.options.legend.align,e=this.options.legend.visible,i=this.getDimension("legend"),r=o.isLegendAlignTop(t)&&e?i.height:0,s=o.isLegendAlignLeft(t)&&e?i.width:0,h=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),l=h+r,u=a.getDefaultSeriesTopAreaHeight(this.chartType,this.theme.series),c={top:(l?l:u)+n.CHART_PADDING,left:this.chartLeftPadding+s+this.getDimension("yAxis").width};this.positionMap.series=c,this.hasAxes&&this._registerAxisComponentsPosition(s),this._registerEssentialComponentsPositions()},_registerExtendedSeriesBound:function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=a.expandBound(t)),this._setBound("extendedSeries",t)},_updateBoundsForYAxisCenterOption:function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+n.OVERLAPPING_WIDTH,i=t-n.OVERLAPPING_WIDTH,o=a.isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=n.OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+n.OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-o,this.positionMap.extendedSeries.left-=i-o,this.positionMap.plot.left-=i,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=i,this.positionMap.mouseEventDetector.left-=i,this.positionMap.tooltip.left-=i},registerBoundsData:function(t){this._registerCenterComponentsDimension(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},calculateMaxRadius:function(t){var e=this.getDimensionMap(["series","circleLegend"]),i=!!this.options.circleLegend&&this.options.circleLegend.visible;return s.calculateMaxRadius(e,t,i)}});t.exports=p},function(t,e,i){"use strict";var n=i(8),o=i(7),a={_calculatePixelStep:function(t,e){var i,n=t.tickCount;return i=t.isLabelAxis?e/n/2:e/(n-1),parseInt(i,10)},_calculateRadiusByAxisData:function(t,e){var i=this._calculatePixelStep(e.yAxis,t.height),n=this._calculatePixelStep(e.xAxis,t.width);return Math.min(i,n)},_getCircleLegendLabelMaxWidth:function(t,e){return o.getRenderedLabelWidth(t,{fontSize:n.CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,o){var a=this._calculateRadiusByAxisData(t,e),r=this._getCircleLegendLabelMaxWidth(i,o);return Math.max(2*a,r)+n.CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var o=this._calculateRadiusByAxisData(t.series,e),a=t.circleLegend.width;return i?Math.min((a-n.CIRCLE_LEGEND_PADDING)/2,o):o}};t.exports=a},function(t,e,i){"use strict";var n=i(8),o=i(11),a=i(7),r={calculateXAxisHeight:function(t,e){var i=t.title,o=i?a.getRenderedLabelHeight(i.text,e.title):0,r=o?o+n.TITLE_PADDING:0,s=t.labelMargin||0,h=a.getRenderedLabelHeight(n.MAX_HEIGHT_WORD,e.label);return s>0&&(h+=s),r+h+n.CHART_PADDING},calculateYAxisWidth:function(t,e,i){var r=e.title||"",s=0,h=e.labelMargin||0,l=0;return t=a.addPrefixSuffix(t,e.prefix,e.suffix),e.isCenter?l+=n.AXIS_LABEL_PADDING:s=e.rotateTitle===!1?a.getRenderedLabelWidth(r.text,i.title)+n.TITLE_PADDING:a.getRenderedLabelHeight(r.text,i.title)+n.TITLE_PADDING,o.isDatetimeType(e.type)&&(t=a.formatDates(t,e.dateFormat)),h>0&&(l+=h),l+=a.getRenderedLabelsMaxWidth(t,i.label)+s+n.AXIS_LABEL_PADDING}};t.exports=r},function(t,e,i){"use strict";var n=i(6),o=i(8),a=i(11),r=i(45),s=i(7),h=i(10),l=o.LEGEND_CHECKBOX_WIDTH,u=o.LEGEND_ICON_WIDTH,c=o.LEGEND_ICON_HEIGHT,d=o.LEGEND_LABEL_LEFT_PADDING,p=o.LEGEND_AREA_PADDING,f={legendMargin:d+p,_calculateLegendsWidthSum:function(t,e,i,o){var a=p+i+u+d,h=this.legendMargin;return r.sum(n.map(t,function(t){var i=s.getRenderedLabelWidth(t,e);return o&&i>o&&(i=o),i+=a,i+h}))},_divideLegendLabels:function(t,e){var i=Math.round(t.length/e),o=[],a=[];return n.forEachArray(t,function(t){a.length<i?a.push(t):(o.push(a),a=[t])}),a.length&&o.push(a),o},_getMaxLineWidth:function(t,e,i,o){var a=this,r=n.map(t,function(t){return a._calculateLegendsWidthSum(t,e,i,o)});return h.max(r)},_makeDividedLabelsAndMaxLineWidth:function(t,e,i,n,o){var a,r,s=1,h=0,l=0;do{if(a=this._divideLegendLabels(t,s),h=this._getMaxLineWidth(a,i,n,o),l===h){a=r;break}l=h,r=a,s+=1}while(h>=e);return{labels:a,maxLineWidth:h}},_calculateHorizontalLegendHeight:function(t,e){var i=Math.max.apply(null,n.map(t,function(t){return s.getRenderedLabelsMaxHeight(t,e)})),a=Math.max(c,i)+o.LINE_MARGIN_TOP,r=a*t.length-o.LINE_MARGIN_TOP;return r},_makeHorizontalDimension:function(t,e,i,n,a){var r=this._makeDividedLabelsAndMaxLineWidth(e,i,t,n,a),s=this._calculateHorizontalLegendHeight(r.labels,t),h=s+2*p;return{width:Math.max(r.maxLineWidth,o.MIN_LEGEND_WIDTH),height:h}},_makeVerticalDimension:function(t,e,i,n){var o=s.getRenderedLabelsMaxWidth(e,t);return n&&o>n&&(o=n),o+=p+i+u+d,{width:o+this.legendMargin,height:0}},calculate:function(t,e,i,n){var o=t.showCheckbox===!1?0:l+d,r=t.maxWidth,s={};return t.visible?s=a.isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,n,o,r):this._makeVerticalDimension(e,i,o,r):s.width=0,s}};t.exports=f},function(t,e,i){"use strict";var n=i(8),o=i(11),a=i(7),r={calculateWidth:function(t,e){var i=t.chart.width,a=t.yAxis.width+t.rightYAxis.width,r=t.legend,s=0;return o.isVerticalLegend(e.align)&&e.visible&&(s=r?r.width:0),i-2*n.CHART_PADDING-a-s},calculateHeight:function(t,e,i,r){var s=t.chart.height,h=a.getDefaultSeriesTopAreaHeight(i,r),l=Math.max(t.title.height,t.chartExportMenu.height),u=t.xAxis.height,c=e.visible?t.legend.height:0,d=e.align;return u+=o.isLegendAlignBottom(d)?c:0,l+=o.isLegendAlignTop(d)?c:0,l=l||h,s-2*n.CHART_PADDING-l-u}};t.exports=r},function(t,e,i){"use strict";var n=i(8),o=i(7),a={_makeVerticalDimension:function(t,e){var i=o.getRenderedLabelWidth(t,e),a=n.LEGEND_AREA_PADDING+n.MAP_LEGEND_LABEL_PADDING;return{width:n.MAP_LEGEND_GRAPH_SIZE+i+a,height:n.MAP_LEGEND_SIZE}},_makeHorizontalDimension:function(t,e){var i=o.getRenderedLabelHeight(t,e),a=n.LEGEND_AREA_PADDING+n.MAP_LEGEND_LABEL_PADDING;return{width:n.MAP_LEGEND_SIZE,height:n.MAP_LEGEND_GRAPH_SIZE+i+a}}};t.exports=a},function(t,e,i){"use strict";var n=i(120),o=i(122),a=i(123),r=i(11),s=i(7),h=i(6),l=h.defineClass({init:function(t){this.chartType=t.chartType,this.seriesTypes=t.seriesTypes,this.dataProcessor=t.dataProcessor,this.boundsModel=t.boundsModel,this.options=t.options,this.theme=t.theme,this.hasRightYAxis=!!t.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(t.addedDataCount),this.initForAutoTickInterval()},initScaleData:function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},initForAutoTickInterval:function(){this.firstTickCount=null},_pickLimitOption:function(t){return t=t||{},{min:t.min,max:t.max}},_createBaseScaleData:function(t,e,i,o){var a=t.chartType,s="xAxis"!==t.areaType,l=this.dataProcessor.createBaseValuesForLimit(a,o.isSingleYAxis,e.stackType,t.valueType,t.areaType),u=this.boundsModel.getBaseSizeForLimit(s),c=h.extend(e,{isVertical:s,limitOption:this._pickLimitOption(i),tickCounts:o.tickCounts});return r.isBubbleChart(a)&&(c.overflowItem=this.dataProcessor.findOverflowItem(a,t.valueType)),n.makeScaleData(l,u,a,c)},_createScaleLabels:function(t,e,i,n){var a=this.dataProcessor.getFormatFunctions(),r=h.extend(i,{dateFormat:n});return o.createFormattedLabels(t,e,r,a)},_createScaleData:function(t,e,i){var n,o,a=this.options.series,r=e.chartType||this.chartType;return e.chartType=r,a=a[r]||a,n={stackType:i.stackType||a.stackType,diverging:a.diverging,type:t.type},o=this._createBaseScaleData(e,n,t,i),h.extend(o,{labels:this._createScaleLabels(o,e,n,t.dateFormat),axisOptions:t})},_createValueAxisData:function(t,e,i,n,o){var r,s,l=this.dataProcessor.hasCategories(),u=!n&&!l&&i,c=t.labels,d=t.limit,p=t.step,f=c.length,m=a.makeValueAxisData({labels:c,tickCount:c.length,limit:d,step:p,options:t.axisOptions,labelTheme:e,isVertical:!!n,isPositionRight:!!o,aligned:i});return u&&(r=this.dataProcessor.getValues(this.chartType,"x"),s=a.makeAdditionalDataForCoordinateLineType(c,r,d,p,f),h.extend(m,s)),m},_createLabelAxisData:function(t,e,i,n,o){return a.makeLabelAxisData({labels:this.dataProcessor.getCategories(n),options:t,labelTheme:e,isVertical:!!n,isPositionRight:!!o,aligned:i,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},_createAxisData:function(t,e,i,n,o){var a,s=r.isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn;return a=t?this._createValueAxisData(t,i,s,n,o):this._createLabelAxisData(e,i,s,n,o)},_createAxesData:function(){var t=this.scaleDataMap,e=this.options,i=this.theme,n=h.isArray(e.yAxis)?e.yAxis:[e.yAxis],o={};return o.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),o.yAxis=this._createAxisData(t.yAxis,n[0],i.yAxis.label,!0),this.hasRightYAxis&&(o.rightYAxis=this._createAxisData(t.rightYAxis,n[1],i.yAxis.label,!0,!0),o.rightYAxis.aligned=o.xAxis.aligned),o},addScale:function(t,e,i,n){i=i||{},n=n||{},i.areaType=i.areaType||t,i.chartType=n.chartType||i.chartType,this.scaleDataMap[t]=this._createScaleData(e,i,n)},setAxisDataMap:function(){this.axisDataMap=this._createAxesData()},updateXAxisDataForAutoTickInterval:function(t,e){var i=this.options.series.shifting,n=this.options.series.zoomable,o=this.axisDataMap.xAxis,r=this.boundsModel.getDimension("series").width,s=this.addedDataCount;i||!t||n?a.updateLabelAxisDataForAutoTickInterval(o,r,s,e):a.updateLabelAxisDataForStackingDynamicData(o,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=o.tickCount)},updateXAxisDataForLabel:function(t){var e,i,n,o=this.axisDataMap.xAxis,r=o.labels,l=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),u=o.isLabelAxis,c=this.theme.xAxis.label;t&&(r=r.slice(0,r.length-1)),r=s.addPrefixSuffix(r,this.options.xAxis.prefix,this.options.xAxis.suffix),e=h.filter(r,function(t){return!!t}),i=h.isNull(this.prevValidLabelCount)?e.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(i+=1,l.yAxis.width=0),n=o.options.rotateLabel===!1?a.makeAdditionalDataForMultilineLabels(r,i,c,u,l):a.makeAdditionalDataForRotatedLabels(e,i,c,u,l),this.prevValidLabelCount=i,h.extend(o,n)},_findLimit:function(t,e,i){var n;return n=0===e?i?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},makeLimitMap:function(t,e){var i=this,n=this.scaleDataMap,o={};return n.xAxis&&(o.xAxis=n.xAxis.limit),n.yAxis&&(o.yAxis=n.yAxis.limit),n.rightYAxis&&(o.rightYAxis=n.rightYAxis.limit),n.legend&&(o.legend=n.legend.limit),h.forEachArray(t,function(t,n){o[t]=i._findLimit(o,n,e)}),o}});t.exports=l},function(t,e,i){"use strict";var n=i(8),o=i(11),a=i(45),r=i(10),s=i(121),h=i(6),l=Math.abs,u={_makeLimitForDivergingOption:function(t){var e=Math.max(l(t.min),l(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,i){var n=t.min,o=t.max;return i.min&&(n=a.subtract(n,e)),i.max&&(o=a.add(o,e)),{min:n,max:o}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var i,o=t.max-t.min,a=this.millisecondTypes,r=this.millisecondMap,s=a.length-1;return o?h.forEachArray(a,function(t,n){var l,u=r[t],c=Math.floor(o/u);return c&&(l=n<s&&c<2&&c<e?n+1:n,i=a[l]),!h.isExisty(l)}):i=n.DATE_TYPE_SECOND,i},_makeDatetimeInfo:function(t,e){var i=this._findDateType(t,e),n=this.millisecondMap[i],o=a.divide(t.min,n),r=a.divide(t.max,n),s=r-o;return{divisionNumber:n,minDate:o,dataLimit:{min:0,max:s}}},_restoreScaleToDatetimeType:function(t,e,i){var n=t.limit;return t.step=a.multiply(t.step,i),n.min=a.multiply(a.add(n.min,e),i),n.max=a.multiply(a.add(n.max,e),i),t},_getLimitSafely:function(t){var e,i={min:r.min(t),max:r.max(t)};return 1===t.length?(e=t[0],e>0?i.min=0:0===e?i.max=10:i.max=0):0===i.min&&0===i.max?i.max=10:i.min===i.max&&(i.min-=i.min/10,i.max+=i.max/10),i},_calculateDatetimeScale:function(t,e,i){var n,o,a;return n=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),a=n.dataLimit,i&&(a=this._makeLimitForDivergingOption(a)),o=s({min:a.min,max:a.max,offsetSize:e,minimumStepSize:1}),o=this._restoreScaleToDatetimeType(o,n.minDate,n.divisionNumber)},_calculatePercentStackedScale:function(t,e){var i;return i=0===a.sumMinusValues(t)?n.PERCENT_STACKED_AXIS_SCALE:0===a.sumPlusValues(t)?n.MINUS_PERCENT_STACKED_AXIS_SCALE:e?n.DIVERGING_PERCENT_STACKED_AXIS_SCALE:n.DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t,e,i,n,o){var a,r,l=this._getLimitSafely(t),u=o.limitOption||{},c=h.isExisty(u.min),d=h.isExisty(u.max),p=l.min,f=l.max,m=o.stepCount;return c&&(p=u.min,m=null),d&&(f=u.max,m=null),r=s({min:p,max:f,stepCount:m,offsetSize:e}),a=this._isOverflowed(i,r,l,c,d),a&&(r.limit=this._adjustLimitForOverflow(r.limit,r.step,a)),n&&(r.limit=this._makeLimitForDivergingOption(r.limit)),r},_isOverflowed:function(t,e,i,n,o){var a=!(!t||!t.minItem),r=!(!t||!t.maxItem),s=e.limit,h=a||!n&&s.min===i.min&&0!==s.min,l=r||!o&&s.max===i.max&&0!==s.max;return h||l?{min:h,max:l}:null},makeScaleData:function(t,e,i,n){var a,r=o.isDivergingChart(i,n.diverging),s=n.overflowItem;return o.isPercentStackChart(i,n.stackType)?a=this._calculatePercentStackedScale(t,r):o.isDatetimeType(n.type)?a=this._calculateDatetimeScale(t,e,r):(o.isRadialChart(i)&&(n.stepCount=Math.floor(e/100)),a=this._calculateCoordinateScale(t,e,s,r,n)),a}};t.exports=u},function(t,e,i){"use strict";function n(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function o(t){var e,i,n,o;for(n=0,o=d.length;n<o&&(i=d[n],e=(i+(d[n+1]||i))/2,!(t<=e));n+=1);return i}function a(t){var e=n(t),i=t/e;return o(i)*e}function r(t,e,i){var o=Math.min(n(e),n(i)),a=o>1?1:1/o,r=i*a;return e=Math.ceil(e*a/r)*r/a,t=t>i?Math.floor(t*a/r)*r/a:t<0?-(Math.ceil(Math.abs(t)*a/r)*r)/a:0,{min:t,max:e}}function s(t,e){var i=1/Math.min(n(t),n(e));return Math.ceil(t*i/(e*i))}function h(t){var e=a(t.step),i=r(t.limit.min,t.limit.max,e),n=Math.abs(i.max-i.min),o=s(n,e);return{limit:{min:i.min,max:i.max},step:e,stepCount:o}}function l(t,e,i,n,o){var a,r,s=Math.abs(e-t),h=s/i;return n||(n=Math.ceil(i/p)),a=i/n,r=h*a,c.isNumber(o)&&r<o&&(r=o,n=s/r),{limit:{min:t,max:e},step:r,stepCount:n}}function u(t){var e=t.min,i=t.max,n=t.offsetSize,o=t.stepCount,a=t.minimumStepSize,r=l(e,i,n,o,a);return r=h(r)}var c=i(6),d=[1,2,5,10],p=88;t.exports=u},function(t,e,i){"use strict";var n=i(11),o=i(45),a=i(7),r=i(6),s=Math.abs,h={_getFormatFunctions:function(t,e,i){return n.isPercentStackChart(t,e)&&(i=[function(t){return t+"%"}]),i},_createScaleValues:function(t,e,i){var a=o.makeLabelsFromLimit(t.limit,t.step);return n.isDivergingChart(e,i)?r.map(a,s):a},createFormattedLabels:function(t,e,i,o){var r,s=e.chartType,h=e.areaType,l=e.valueType,u=this._createScaleValues(t,s,i.diverging);return n.isDatetimeType(i.type)?r=a.formatDates(u,i.dateFormat):(o=this._getFormatFunctions(s,i.stackType,o),r=a.formatValues(u,o,s,h,l)),r}};t.exports=h},function(t,e,i){"use strict";var n=i(8),o=i(11),a=i(49),r=i(7),s=i(10),h=i(6),l={_makeLabelsByIntervalOption:function(t,e,i){return i=i||0,t=h.map(t,function(t,o){return(o+i)%e!==0&&(t=n.EMPTY_AXIS_LABEL),t})},makeLabelAxisData:function(t){var e=t.labels.length,i=t.options||{},n=t.labels;return o.isValidLabelInterval(i.labelInterval,i.tickInterval)&&t.labels.length>i.labelInterval&&(n=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),o.isDatetimeType(i.type)&&(n=r.formatDates(n,i.dateFormat)),t.aligned||(e+=1),{labels:n,tickCount:e,validTickCount:0,isLabelAxis:!0,options:i,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,i=t.tickCount,n=t.limit,o={labels:e,tickCount:i,validTickCount:i,limit:n,dataMin:n.min,distance:n.max-n.min,step:t.step,options:t.options,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned};return o},makeAdditionalDataForCoordinateLineType:function(t,e,i,n,o){var a,r=1,h=0,l=s.min(e),u=s.max(e);return a=u-l,a&&(i.min<l&&(i.min+=n,h=(i.min-l)/a,r-=h,o-=1,t.shift()),i.max>u&&(i.max-=n,r-=(u-i.max)/a,o-=1,t.pop())),{labels:t,tickCount:o,validTickCount:o,limit:i,dataMin:l,distance:a,positionRatio:h,sizeRatio:r}},_makeAdjustingIntervalInfo:function(t,e,i){var n,o=parseInt(e/i,10),a=parseInt(t/o,10),r=null;return a>1&&(n=t-a*o,n>=a&&(o+=parseInt(n/a,0),n%=a),r={blockCount:o,beforeRemainBlockCount:n,interval:a}),r},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,n=h.range(90,121,5),o=h.map(n,function(n){return i._makeAdjustingIntervalInfo(t,e,n)});return h.filter(o,function(t){return!!t})},_calculateAdjustingIntervalInfo:function(t,e){var i=this._makeCandidatesForAdjustingInterval(t,e),n=null;return i.length&&(n=s.min(i,function(t){return t.blockCount})),n},_makeFilteredLabelsByInterval:function(t,e,i){return h.filter(t.slice(e),function(t,e){return e%i===0})},updateLabelAxisDataForAutoTickInterval:function(t,e,i,n){var o,a,r,s,l,u;n&&(t.tickCount-=1,t.labels.pop()),o=t.tickCount-1,a=this._calculateAdjustingIntervalInfo(o,e),a&&(r=a.blockCount,s=a.interval,l=a.beforeRemainBlockCount,t.eventTickCount=t.tickCount,u=Math.round(l/2)-i%s,u<0&&(u+=s),t.labels=this._makeFilteredLabelsByInterval(t.labels,u,s),h.extend(t,{startIndex:u,tickCount:r+1,positionRatio:u/o,sizeRatio:1-l/o,interval:s}))},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var n,o=e.interval,a=e.startIndex,r=t.tickCount-1,s=r/o,l=i?i-1:0;l&&2*l<=s&&(o*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,a,o),s=t.labels.length-1,n=r-o*s,h.extend(t,{startIndex:a,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:a/r,sizeRatio:1-n/r,interval:o})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var n=String(t).split(/\s+/),o=n[0],a=[];return h.forEachArray(n.slice(1),function(t){var n=r.getRenderedLabelWidth(o+" "+t,i);n>e?(a.push(o),o=t):o+=" "+t}),o&&a.push(o),a.join("<br>")},_createMultilineLabels:function(t,e,i){var n=this._createMultilineLabel;return h.map(t,function(t){return n(t,i,e)})},_calculateMultilineHeight:function(t,e,i){return r.getRenderedLabelsMaxHeight(t,h.extend({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,n,o){var a=o.series.width,s=this._calculateXAxisLabelAreaWidth(n,a,e),h=this._createMultilineLabels(t,i,a),l=this._calculateMultilineHeight(h,i,s),u=r.getRenderedLabelsMaxHeight(t,i);return{multilineLabels:h,overflowHeight:l-u,overflowLeft:s/2-o.yAxis.width}},_findRotationDegree:function(t,e,i){var o=null;return h.forEachArray(n.DEGREE_CANDIDATES,function(r){var s=a.calculateRotatedWidth(r,e,i);return o=r,!(s<=t+n.XAXIS_LABEL_COMPARE_MARGIN)}),o},_calculateRotatedWidth:function(t,e,i,o){var s=r.getRenderedLabelWidth(e,o),h=a.calculateRotatedWidth(t,s,i);return h-=a.calculateAdjacent(n.ANGLE_90-t,i/2)},_calculateLimitWidth:function(t,e,i){var n=t;return e&&(n+=i/2),n},makeAdditionalDataForRotatedLabels:function(t,e,i,o,s){var h,l,u,c,d,p=r.getRenderedLabelsMaxWidth(t,i),f=s.series.width,m=this._calculateXAxisLabelAreaWidth(o,f,e),g=null,_=n.CHART_PADDING+s.yAxis.width+f;return m<p?(l=r.getRenderedLabelsMaxHeight(t,i),h=this._findRotationDegree(m,p,l),u=a.calculateRotatedHeight(h,p,l),d=this._calculateRotatedWidth(h,t[0],l,i),c=this._calculateLimitWidth(s.yAxis.width,o,m),_+=d,g={degree:h,overflowHeight:u-l,overflowLeft:d-c,overflowRight:_-s.chart.width}):(_+=p,m=r.getRenderedLabelWidth(t[0],i)/2,g={overflowLeft:m-s.yAxis.width,overflowRight:_-s.chart.width}),g}};t.exports=l},function(t,e,i){"use strict";var n=i(42),o=i(8),a=i(31),r=i(6),s=r.defineClass(n,{className:"tui-column-chart",init:function(t,e,i){a.updateRawSeriesDataByOptions(t,i.series),this._updateOptionsRelatedDiverging(i),n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0,isVertical:!0})},_updateOptionsRelatedDiverging:function(t){t.series=t.series||{},t.series.diverging&&(t.series.stackType=t.series.stackType||o.NORMAL_STACK_TYPE)},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("columnSeries","columnSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},getScaleOption:function(){return{yAxis:!0}},addDataRatios:function(t){var e=this.options.series||{},i=this.chartType,n=(e[i]||e).stackType;this.dataProcessor.addDataRatios(t[i],n,i)}});t.exports=s},function(t,e,i){"use strict";var n=i(42),o=i(11),a=i(126),r=i(85),s=i(31),h=i(6),l=h.defineClass(n,{className:"tui-line-chart",Series:r,init:function(t,e,i){n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0,isVertical:!0}),this.dataProcessor.isCoordinateType()&&(delete this.options.xAxis.tickInterval,this.options.tooltip.grouped=!1,this.options.series.shifting=!1),this._dynamicDataHelper=new a(this)},addData:function(t,e){this._dynamicDataHelper.addData(t,e)},onChangeCheckedLegends:function(t,e,i){this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,e,i)},addDataRatios:function(t){var e,i=this,n=this.chartTypes||[this.chartType],a=this.options.series||{};e=this.dataProcessor.isCoordinateType()?function(e){var n=o.isBubbleChart(e);i.dataProcessor.addDataRatiosForCoordinateType(e,t,n)}:function(e){var n=(a[e]||a).stackType;i.dataProcessor.addDataRatios(t[e],n,e)},h.forEachArray(n,e)},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("legend","legend"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},getScaleOption:function(){var t,e,i={},n=this.options.xAxis;return this.dataProcessor.isCoordinateType()?(e=n&&"datetime"===n.type,t=e&&h.isExisty(n.dateFormat),i.xAxis={valueType:"x"},e&&(i.xAxis.type=(n||{}).dateTime),t&&(i.xAxis.format=(n||{}).dateFormat),i.yAxis={valueType:"y"}):i.yAxis=!0,i},addPlotLine:function(t){this.componentManager.get("plot").addPlotLine(t)},addPlotBand:function(t){this.componentManager.get("plot").addPlotBand(t)},removePlotLine:function(t){this.componentManager.get("plot").removePlotLine(t)},removePlotBand:function(t){this.componentManager.get("plot").removePlotBand(t)},_renderForZoom:function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},onZoom:function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},onResetZoom:function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=s.filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData(h.pick(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()}});t.exports=l},function(t,e,i){"use strict";var n=i(8),o=i(11),a=i(6),r=a.defineClass({init:function(t){var e=a.bind(function(){this.isInitRenderCompleted=!0,this.chart.off(e)},this);this.chart=t,this.isInitRenderCompleted=!1,this.chart.on("load",e),this.reset()},reset:function(){this.lookupping=!1,this.paused=!1,this.rerenderingDelayTimerId=null,this.addedDataCount=0,this.checkedLegends=null,this.prevXAxisData=null},_calculateAnimateTickSize:function(t){var e,i=this.chart.dataProcessor,n=this.chart.options.xAxis.tickInterval,a=!!this.chart.options.series.shifting;return e=i.isCoordinateType()?i.getValues(this.chart.chartType,"x").length-1:i.getCategoryCount(!1)-1,a&&!o.isAutoTickInterval(n)&&(e-=1),t/e},_animateForAddingData:function(){var t,e=this.chart,i=e.readyForRender(!0),n=!!this.chart.options.series.shifting;this.addedDataCount+=1,t=this._calculateAnimateTickSize(i.dimensionMap.xAxis.width),e.componentManager.render("animateForAddingData",i,{tickSize:t,shifting:n}),n&&e.dataProcessor.shiftData()},_rerenderForAddingData:function(){var t=this.chart,e=t.readyForRender();t.componentManager.render("rerender",e)},_checkForAddedData:function(){var t=this.chart,e=this,i=t.dataProcessor.addDataFromDynamicData();return i?this.paused?void(t.options.series.shifting&&t.dataProcessor.shiftData()):(this._animateForAddingData(),void(this.rerenderingDelayTimerId=setTimeout(function(){e.rerenderingDelayTimerId=null,e._rerenderForAddingData(),e._checkForAddedData()},400))):void(this.lookupping=!1)},changeCheckedLegends:function(t,e,i){var o=this,a=this.chart,r=!!a.options.series.shifting,s=this.paused;s||this.pauseAnimation(),this.checkedLegends=t,a.rerender(t,e,i),s||setTimeout(function(){a.dataProcessor.addDataFromRemainDynamicData(r),o.restartAnimation()},n.RERENDER_TIME)},pauseAnimation:function(){
20
+ this.paused=!0,this.rerenderingDelayTimerId&&(clearTimeout(this.rerenderingDelayTimerId),this.rerenderingDelayTimerId=null,this.chart.options.series.shifting&&this.chart.dataProcessor.shiftData())},restartAnimation:function(){this.paused=!1,this.lookupping=!1,this._startLookup()},_startLookup:function(){this.lookupping||(this.lookupping=!0,this._checkForAddedData())},addData:function(t,e){e||(e=t,t=null),this.chart.dataProcessor.addDynamicData(t,e),this.isInitRenderCompleted?this._startLookup():e&&(this.addedDataCount+=1)}});t.exports=r},function(t,e,i){"use strict";var n=i(42),o=i(126),a=i(31),r=i(88),s=i(6),h=s.defineClass(n,{className:"tui-area-chart",Series:r,init:function(t,e,i){a.removeSeriesStack(t.series),n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0,isVertical:!0}),this._dynamicDataHelper=new o(this)},addData:function(t,e){this._dynamicDataHelper.addData(t,e)},onChangeCheckedLegends:function(t,e,i){this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,e,i)},addDataRatios:function(t){var e,i=this,n=this.chartTypes||[this.chartType],o=this.options.series||{};e=this.dataProcessor.isCoordinateType()?function(e){i.dataProcessor.addDataRatiosForCoordinateType(e,t,!1)}:function(e){var n=(o[e]||o).stackType;i.dataProcessor.addDataRatios(t[e],n,e)},s.forEachArray(n,e)},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("areaSeries","areaSeries"),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},getScaleOption:function(){var t={};return this.dataProcessor.isCoordinateType()?(t.xAxis={valueType:"x"},t.yAxis={valueType:"y"}):t.yAxis=!0,t},addPlotLine:function(t){this.componentManager.get("plot").addPlotLine(t)},addPlotBand:function(t){this.componentManager.get("plot").addPlotBand(t)},removePlotLine:function(t){this.componentManager.get("plot").removePlotLine(t)},removePlotBand:function(t){this.componentManager.get("plot").removePlotBand(t)},_renderForZoom:function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},onZoom:function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},onResetZoom:function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=a.filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData(s.pick(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()}});t.exports=h},function(t,e,i){"use strict";var n=i(42),o=i(31),a=i(11),r=i(129),s=i(6),h=s.defineClass(n,{init:function(t,e,i){var o=r({rawSeriesData:t.series,yAxisOptions:i.yAxis});this.chartTypes=o.chartTypes,this.seriesTypes=o.seriesTypes,this.yAxisOptions=this._makeYAxisOptions(this.chartTypes,i.yAxis),this.hasRightYAxis=s.isArray(i.yAxis)&&i.yAxis.length>1,i.tooltip=i.tooltip||{},i.tooltip.grouped=!0,n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0,isVertical:!0})},_makeYAxisOptions:function(t,e){var i={};return e=e||{},s.forEachArray(t,function(t,n){i[t]=e[n]||e}),i},onChangeCheckedLegends:function(t){var e=this.dataProcessor.getOriginalRawData(),i=o.filterCheckedRawData(e,t),n=r({rawSeriesData:i.series,yAxisOptions:this.options.yAxis});this.chartTypes=n.chartTypes,this.seriesTypes=n.seriesTypes,this.rerender(t,i,n)},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("columnSeries","columnSeries"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("yAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},getScaleOption:function(){var t={yAxis:this._makeYAxisScaleOption("yAxis",this.chartTypes[0],!this.hasRightYAxis)};return this.hasRightYAxis&&(t.rightYAxis=this._makeYAxisScaleOption("rightYAxis",this.chartTypes[1])),t},_makeYAxisScaleOption:function(t,e,i){var n=this.yAxisOptions[e],o={isSingleYAxis:!!i};return i&&this.options.series&&this._setAdditionalOptions(o),{options:n,areaType:"yAxis",chartType:e,additionalOptions:o}},_setAdditionalOptions:function(t){var e=this.dataProcessor;s.forEach(this.options.series,function(i,n){var o;i.stackType&&(o=e.findChartType(n),a.isAllowedStackOption(o)&&(t.chartType=o,t.stackType=i.stackType))})},addDataRatios:function(t){var e,i=this,n=this.chartTypes||[this.chartType],o=this.options.series||{};e=function(e){var n=(o[e]||o).stackType;i.dataProcessor.addDataRatios(t[e],n,e)},s.forEachArray(n,e)}});t.exports=h},function(t,e,i){"use strict";function n(t){var e=t.rawSeriesData,i=t.yAxisOptions,n=o(e,i);return{chartTypes:n.chartTypes,seriesTypes:n.seriesTypes}}function o(t,e){var i,n=r.keys(t).sort(),o=a(n,e),s=o.length?o:n,h=r.filter(o,function(e){return t[e].length});return i=1===h.length?{chartTypes:h,seriesTypes:h}:{chartTypes:s,seriesTypes:n}}function a(t,e){var i,n=t.slice(),o=[].concat(e||[]),a=!1;return!o.length||1===o.length&&!o[0].chartType?n=[]:o.length&&(i=r.map(o,function(t){return t.chartType}),r.forEachArray(i,function(t,e){a=a||t&&n[e]!==t||!1}),a&&n.reverse()),n}var r=i(6);t.exports=n},function(t,e,i){"use strict";var n=i(42),o=i(6),a=o.defineClass(n,{init:function(t,e,i){this.chartTypes=["line","scatter"],this.seriesTypes=["line","scatter"],n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0,isVertical:!0})},getScaleOption:function(){return{yAxis:{valueType:"y"},xAxis:{valueType:"x"}}},addDataRatios:function(t){var e,i=this,n=this.chartTypes||[this.chartType];e=function(e){i.dataProcessor.addDataRatiosForCoordinateType(e,t,!1)},o.forEachArray(n,e)},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")}});t.exports=a},function(t,e,i){"use strict";var n=i(42),o=i(31),a=i(11),r=i(129),s=i(126),h=i(6),l=h.defineClass(n,{className:"tui-combo-chart",init:function(t,e,i){var o=r({rawSeriesData:t.series,yAxisOptions:i.yAxis});this.chartTypes=o.chartTypes,this.seriesTypes=o.seriesTypes,this.yAxisOptions=this._makeYAxisOptions(this.chartTypes,i.yAxis),this.hasRightYAxis=h.isArray(i.yAxis)&&i.yAxis.length>1,i.tooltip=i.tooltip||{},i.tooltip.grouped=!0,n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0,isVertical:!0}),this._dynamicDataHelper=new s(this)},onChangeCheckedLegends:function(t){var e=this.dataProcessor.getZoomedRawData(),i=o.filterCheckedRawData(e,t),n=r({rawSeriesData:i.series,yAxisOptions:this.options.yAxis});this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,i,n)},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("areaSeries","areaSeries"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},getScaleOption:function(){var t={yAxis:this._makeYAxisScaleOption("yAxis",this.chartTypes[0],!this.hasRightYAxis)};return this.hasRightYAxis&&(t.rightYAxis=this._makeYAxisScaleOption("rightYAxis",this.chartTypes[1])),t},_makeYAxisScaleOption:function(t,e,i){var n=this.yAxisOptions[e],o={isSingleYAxis:!!i};return i&&this.options.series&&this._setAdditionalOptions(o),{options:n,areaType:"yAxis",chartType:e,additionalOptions:o}},_makeYAxisOptions:function(t,e){var i={};return e=e||{},h.forEachArray(t,function(t,n){i[t]=e[n]||e}),i},addData:function(t,e){this._dynamicDataHelper.addData(t,e)},_setAdditionalOptions:function(t){var e=this.dataProcessor;h.forEach(this.options.series,function(i,n){var o;i.stackType&&(o=e.findChartType(n),a.isAllowedStackOption(o)&&(t.chartType=o,t.stackType=i.stackType))})},addDataRatios:function(t){var e,i=this,n=this.chartTypes||[this.chartType],o=this.options.series||{};e=this.dataProcessor.isCoordinateType()?function(e){i.dataProcessor.addDataRatiosForCoordinateType(e,t,!1)}:function(e){var n=(o[e]||o).stackType;i.dataProcessor.addDataRatios(t[e],n,e)},h.forEachArray(n,e)},_renderForZoom:function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},onZoom:function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},onResetZoom:function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=o.filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData(h.pick(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()}});t.exports=l},function(t,e,i){"use strict";var n=i(42),o=i(31),a=i(6),r=a.defineClass(n,{className:"tui-combo-chart",init:function(t,e,i){this.seriesTypes=a.keys(t.series).sort(),this.chartTypes=["pie","pie"],n.call(this,{rawData:t,theme:e,options:i,isVertical:!0})},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},addDataRatios:function(){var t=this,e=this.seriesTypes||[this.chartType];a.forEachArray(e,function(e){t.dataProcessor.addDataRatiosOfPieChart(e)})},onChangeCheckedLegends:function(t){var e=this.dataProcessor.getOriginalRawData(),i=o.filterCheckedRawData(e,t);n.prototype.onChangeCheckedLegends.call(this,t,i,{seriesTypes:this.seriesTypes})}});t.exports=r},function(t,e,i){"use strict";var n=i(42),o=i(8),a=i(6),r=a.defineClass(n,{className:"tui-pie-chart",init:function(t,e,i){i.tooltip=i.tooltip||{},i.tooltip.align||(i.tooltip.align=o.TOOLTIP_DEFAULT_ALIGN_OPTION),n.call(this,{rawData:t,theme:e,options:i})},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},addDataRatios:function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)}});t.exports=r},function(t,e,i){"use strict";var n=i(42),o=i(8),a=i(6),r=a.defineClass(n,{className:"tui-bubble-chart",init:function(t,e,i){i.tooltip=i.tooltip||{},i.circleLegend=i.circleLegend||{},i.tooltip.align||(i.tooltip.align=o.TOOLTIP_DEFAULT_ALIGN_OPTION),a.isUndefined(i.circleLegend.visible)&&(i.circleLegend.visible=!0),n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0})},getScaleOption:function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},_setDefaultOptions:function(t){n.prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},a.isUndefined(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},addDataRatios:function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)}});t.exports=r},function(t,e,i){"use strict";var n=i(42),o=i(8),a=i(6),r=a.defineClass(n,{className:"tui-scatter-chart",init:function(t,e,i){i.tooltip=i.tooltip||{},i.tooltip.align||(i.tooltip.align=o.TOOLTIP_DEFAULT_ALIGN_OPTION),n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0})},getScaleOption:function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},addDataRatios:function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)}});t.exports=r},function(t,e,i){"use strict";var n=i(42),o=i(137),a=i(8),r=i(6),s=r.defineClass(n,{className:"tui-heatmap-chart",init:function(t,e,i){i.tooltip=i.tooltip||{},i.tooltip.align||(i.tooltip.align=a.TOOLTIP_DEFAULT_ALIGN_OPTION),i.tooltip.grouped=!1,n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0,isVertical:!0})},_addComponents:function(){var t=this.theme.series[this.chartType],e=new o(t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},getScaleOption:function(){return{legend:!0}},addDataRatios:function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},addComponents:function(){var t=this.theme.series[this.chartType],e=new o(t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")}});t.exports=s},function(t,e,i){"use strict";var n=i(138),o=i(6),a=o.defineClass({init:function(t,e){var i;this.start=n.colorNameToHex(t),this.startRGB=n.hexToRGB(this.start),this.end=n.colorNameToHex(e),i=n.hexToRGB(this.end),this.distances=this._makeDistances(this.startRGB,i),this.colorMap={}},_makeDistances:function(t,e){return o.map(t,function(t,i){return e[i]-t})},getColor:function(t){var e,i,a=this.colorMap[t];return a||(e=this.distances,i=o.map(this.startRGB,function(i,n){return i+parseInt(e[n]*t,10)}),a=n.rgbToHEX.apply(null,i)),a||null}});t.exports=a},function(t,e){"use strict";var i=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},o={leadingZero:function(t,e){var i="",n=0;if(String(t).length>e)return String(t);for(;n<e-1;n+=1)i+="0";return(i+t).slice(e*-1)},isValidRGB:function(t){return i.test(t)},hexToRGB:function(t){var e,i,n;return!!o.isValidRGB(t)&&(t=t.substring(1),e=parseInt(t.substr(0,2),16),i=parseInt(t.substr(2,2),16),n=parseInt(t.substr(4,2),16),[e,i,n])},rgbToHEX:function(t,e,i){var n="#"+o.leadingZero(t.toString(16),2)+o.leadingZero(e.toString(16),2)+o.leadingZero(i.toString(16),2);return!!o.isValidRGB(n)&&n},colorNameToHex:function(t){return n[t.toLowerCase()]||t}};t.exports=o},function(t,e,i){"use strict";var n=i(42),o=i(137),a=i(6),r=a.defineClass(n,{className:"tui-treemap-chart",init:function(t,e,i){i.tooltip=i.tooltip||{},i.tooltip.grouped=!1,n.call(this,{rawData:t,theme:e,options:i,hasAxes:!1,isVertical:!0})},addComponents:function(){var t=this.theme.series[this.chartType],e=this.options.series.useColorValue,i=e?new o(t.startColor,t.endColor):null;this.componentManager.register("title","title"),this.componentManager.register("treemapSeries","treemapSeries",{colorSpectrum:i}),e&&this.options.legend.visible&&this.componentManager.register("legend","spectrumLegend",{colorSpectrum:i}),this.componentManager.register("tooltip","tooltip",a.extend({labelTheme:a.pick(this.theme,"series","label")})),this.componentManager.register("mouseEventDetector","mouseEventDetector"),this.componentManager.register("chartExportMenu","chartExportMenu")},getScaleOption:function(){return{legend:!0}},addDataRatios:function(t){this.dataProcessor.addDataRatiosForTreemapChart(t.legend,this.chartType)},onZoom:function(t){this.componentManager.render("zoom",null,{index:t})}});t.exports=r},function(t,e,i){"use strict";var n=i(42),o=i(35),a=i(141),r=i(142),s=i(137),h=i(6),l=h.defineClass(n,{init:function(t,e,i){this.className="tui-map-chart",i.map=o.get(i.map),i.tooltip=i.tooltip||{},i.legend=i.legend||{},n.call(this,{rawData:t,theme:e,options:i,DataProcessor:r})},addComponents:function(){var t=this.theme.series[this.chartType],e=new a(this.dataProcessor,this.options.map),i=new s(t.startColor,t.endColor);this.componentManager.register("mapSeries","mapSeries",{mapModel:e,colorSpectrum:i}),this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:i}),this.componentManager.register("tooltip","tooltip",{mapModel:e}),this.componentManager.register("zoom","zoom"),this.componentManager.register("mouseEventDetector","mapChartEventDetector")},getScaleOption:function(){return{legend:!0}},addDataRatios:function(t){this.dataProcessor.addDataRatios(t.legend)}});t.exports=l},function(t,e,i){"use strict";var n=i(8),o=i(10),a=i(6),r=a.defineClass({init:function(t,e){this.commandFuncMap={M:a.bind(this._makeCoordinate,this),m:a.bind(this._makeCoordinateFromRelativeCoordinate,this),L:a.bind(this._makeCoordinate,this),l:a.bind(this._makeCoordinateFromRelativeCoordinate,this),H:a.bind(this._makeXCoordinate,this),h:a.bind(this._makeXCoordinateFroRelativeCoordinate,this),V:a.bind(this._makeYCoordinate,this),v:a.bind(this._makeYCoordinateFromRelativeCoordinate,this)},this.ignoreCommandMap={Z:!0,z:!0},this.mapDimension=null,this.dataProcessor=t,this.rawMapData=e,this.mapData=null},_splitCoordinate:function(t){var e=t.split(","),i={x:parseFloat(e[0])};return e[1]&&(i.y=parseFloat(e[1])),i},_makeCoordinate:function(t){return this._splitCoordinate(t)},_makeCoordinateFromRelativeCoordinate:function(t,e){var i=this._splitCoordinate(t);return{x:i.x+e.x,y:i.y+e.y}},_makeXCoordinate:function(t){var e=this._splitCoordinate(t);return{x:e.x}},_makeXCoordinateFroRelativeCoordinate:function(t,e){var i=this._splitCoordinate(t);return{x:i.x+e.x}},_makeYCoordinate:function(t){var e=this._splitCoordinate(t);return{y:e.x}},_makeYCoordinateFromRelativeCoordinate:function(t,e){var i=this._splitCoordinate(t);return{y:i.x+e.y}},_splitPath:function(t){for(var e,i,n=0,o=t.length,a=[],r="";n<o;n+=1)e=t.charAt(n),this.commandFuncMap[e]?(i&&r&&a.push({type:i,coordinate:r}),i=e,r=""):this.ignoreCommandMap[e]||(r+=e);return i&&r&&a.push({type:i,coordinate:r}),a},_makeCoordinatesFromPath:function(t){var e=this,i=this._splitPath(t),n={x:0,y:0};return a.map(i,function(t){var i=e.commandFuncMap[t.type],o=i(t.coordinate,n);return a.extend(n,o),o})},_findBoundFromCoordinates:function(t){var e=a.filter(a.pluck(t,"x"),function(t){return!a.isUndefined(t)}),i=a.filter(a.pluck(t,"y"),function(t){return!a.isUndefined(t)}),n=o.max(e),r=o.min(e),s=o.max(i),h=o.min(i);return{dimension:{width:n-r,height:s-h},position:{left:r,top:h}}},_makeLabelPosition:function(t,e){return e=e||n.MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},_createMapData:function(t){var e=this;return a.map(t,function(t){var i,n,o,a,r,s=e._makeCoordinatesFromPath(t.path),h=e._findBoundFromCoordinates(s),l=e.dataProcessor.getValueMapDatum(t.code);return l&&(o=l.label,a=l.ratio,i=l.name||t.name,n=l.labelCoordinate||t.labelCoordinate),r={code:t.code,name:i,path:t.path,bound:h,labelPosition:e._makeLabelPosition(h,n)},o&&(r.label=o),a>=0&&(r.ratio=a),r})},getMapData:function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},getDatum:function(t){return this.getMapData()[t]},getLabelData:function(t){var e=this,i=this.getMapData(),n=a.filter(i,function(t){return e.dataProcessor.getValueMapDatum(t.code)});return a.map(n,function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}})},_makeMapDimension:function(){var t=this.getMapData(),e=a.map(t,function(t){return t.bound.position.left}),i=a.map(t,function(t){return t.bound.position.left+t.bound.dimension.width}),n=a.map(t,function(t){return t.bound.position.top}),r=a.map(t,function(t){return t.bound.position.top+t.bound.dimension.height});return{width:o.max(i)-o.min(e),height:o.max(r)-o.min(n)}},getMapDimension:function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension}});t.exports=r},function(t,e,i){"use strict";var n=i(102),o=i(7),a=i(6),r=a.defineClass(n,{init:function(t,e,i){this.rawData=t,this.options=i},initData:function(t){this.rawData=t,this.valueMap=null},_makeValueMap:function(){var t=this.rawData.series.map,e={},i=this._findFormatFunctions();return a.forEachArray(t,function(t){var n={value:t.data,label:o.formatValue({value:t.data,formatFunctions:i,chartType:"map",areaType:"series"})};t.name&&(n.name=t.name),t.labelCoordinate&&(n.labelCoordinate=t.labelCoordinate),e[t.code]=n}),e},getValueMap:function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},getValues:function(){return a.pluck(this.getValueMap(),"value")},getValueMapDatum:function(t){return this.getValueMap()[t]},addDataRatios:function(t){var e=t.min,i=t.max-e;a.forEach(this.getValueMap(),function(t){t.ratio=(t.value-e)/i})},createBaseValuesForLimit:function(){return this.getValues()},getLegendVisibility:function(){return null}});t.exports=r},function(t,e,i){"use strict";var n=i(42),o=i(6),a=i(85),r=o.defineClass(n,{className:"tui-radial-chart",Series:a,init:function(t,e,i){i.tooltip&&(i.tooltip.grouped=!1),n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0,isVertical:!0})},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},addDataRatios:function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},getScaleOption:function(){return{yAxis:{}}}});t.exports=r},function(t,e,i){"use strict";var n=i(42),o=i(31),a=i(6),r=a.defineClass(n,{className:"tui-boxplot-chart",init:function(t,e,i){o.appendOutliersToSeriesData(t),n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0,isVertical:!0})},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},getScaleOption:function(){return{yAxis:!0}},onChangeCheckedLegends:function(t){var e;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),n.prototype.onChangeCheckedLegends.call(this,t,null,e)},addDataRatios:function(t){var e=this.options.series||{},i=this.chartType,n=(e[i]||e).stackType;this.dataProcessor.addDataRatios(t[i],n,i)}});t.exports=r},function(t,e,i){"use strict";var n=i(42),o=i(31),a=i(6),r=a.defineClass(n,{className:"tui-bullet-chart",init:function(t,e,i){var a=!!i.series.vertical;o._makeRawSeriesDataForBulletChart(t),n.call(this,{rawData:t,theme:e,options:i,hasAxes:!0,isVertical:a})},addComponents:function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},getScaleOption:function(){return this.isVertical?{yAxis:!0}:{xAxis:!0}},addDataRatios:function(t){var e=this.chartType;this.dataProcessor.addDataRatios(t[e],null,e)}});t.exports=r},function(t,e,i){"use strict";var n=i(8),o=i(33),a=i(34);o.register(n.DEFAULT_THEME_NAME,a)},function(t,e){}])});
@@ -0,0 +1,49 @@
1
+ # Commit Message Convention
2
+
3
+ ## Commit Message Format
4
+
5
+ ```
6
+ <Type>: Short description (fix #1234)
7
+
8
+ Logger description here if necessary
9
+
10
+ BREAKING CHANGE: only contain breaking change
11
+ ```
12
+ * Any line of the commit message cannot be longer 100 characters!
13
+
14
+ ## Revert
15
+ ```
16
+ revert: commit <short-hash>
17
+
18
+ This reverts commit <full-hash>
19
+ More description if needed
20
+ ```
21
+
22
+ ## Type
23
+ Must be one of the following:
24
+
25
+ * **feat**: A new feature
26
+ * **fix**: A bug fix
27
+ * **docs**: Documentation only changes
28
+ * **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
29
+ * **refactor**: A code change that neither fixes a bug nor adds a feature
30
+ * **perf**: A code change that improves performance
31
+ * **test**: Adding missing or correcting existing tests
32
+ * **chore**: Changes to the build process or auxiliary tools and libraries such as documentation generation
33
+
34
+ ## Subject
35
+ * use the imperative, __present__ tense: "change" not "changed" nor "changes"
36
+ * don't capitalize the first letter
37
+ * no dot (.) at the end
38
+ * reference GitHub issues at the end. If the commit doesn’t completely fix the issue, then use `(refs #1234)` instead of `(fixes #1234)`.
39
+
40
+ ## Body
41
+
42
+ * use the imperative, __present__ tense: "change" not "changed" nor "changes".
43
+ * the motivation for the change and contrast this with previous behavior.
44
+
45
+ ## BREAKING CHANGE
46
+ * This commit contains breaking change(s).
47
+ * start with the word BREAKING CHANGE: with a space or two newlines. The rest of the commit message is then used for this.
48
+
49
+ This convention is based on [AngularJS](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits) and [ESLint](https://eslint.org/docs/developer-guide/contributing/pull-requests#step2)
@@ -0,0 +1,24 @@
1
+ <!--
2
+ Thank you for your contribution.
3
+
4
+ When it comes to write an issue, please, use the template below.
5
+ To use the template is mandatory for submit new issue and we won't reply the issue that without the template.
6
+ -->
7
+
8
+ <!-- TEMPLATE -->
9
+
10
+ ## Version
11
+ <!-- Write the version of the grid you are currently using. -->
12
+
13
+ ## Development Environment
14
+ <!-- Write the browser type, OS and so on -->
15
+
16
+ ## Current Behavior
17
+ <!-- Write a description of the current operation. You can add sample code, 'CodePen' or 'jsfiddle' links. -->
18
+
19
+ ```js
20
+ // Write example code
21
+ ```
22
+
23
+ ## Expected Behavior
24
+ <!-- Write a description of the future action. -->
@@ -0,0 +1,42 @@
1
+ <!-- EDIT TITLE PLEASE -->
2
+ <!-- It should be one of them
3
+ <ISSUE TYPE>: Short Description (<CLOSING TYPE> #<ISSUE NUMBERS>)
4
+ ex)
5
+ feat: add new feature (close #111)
6
+ fix: wrong behavior (fix #111)
7
+ chore: change build tool (ref #111)
8
+ -->
9
+
10
+ <!-- SPECIFY A ISSUE TYPE AT HEAD
11
+ feat: A new feature
12
+ fix: A bug fix
13
+ docs: Documentation only changes
14
+ style: Changes that do not affect the meaning of the code (white-space, formatting etc)
15
+ refactor: A code change that neither fixes a bug or adds a feature
16
+ perf: A code change that improves performance
17
+ test: Adding missing tests
18
+ chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
19
+ -->
20
+
21
+ <!-- ADD CLOSING TYPE AND ISSUE NUMBER AT TAIL
22
+ (<CLOSING TYPE> #<ISSUE NUMBERS>)
23
+ close: resolve not a bug(feature, docs, etc) completely
24
+ fix: resolve a bug completely
25
+ ref: not fully resolved or related to
26
+ -->
27
+
28
+ ### Please check if the PR fulfills these requirements
29
+ - [ ] It's submitted to right branch according to our branching model
30
+ - [ ] It's right issue type on title
31
+ - [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
32
+ - [ ] The commit message follows our guidelines
33
+ - [ ] Tests for the changes have been added (for bug fixes/features)
34
+ - [ ] Docs have been added/updated (for bug fixes/features)
35
+ - [ ] It does not introduce a breaking change or has description for the breaking change
36
+
37
+ ### Description
38
+
39
+
40
+
41
+ ---
42
+ Thank you for your contribution to TOAST UI product. 🎉 😘 ✨
@@ -0,0 +1,11 @@
1
+ ## Tutorials
2
+
3
+ * [Getting Started](./wiki/getting-started.md)
4
+ * [Discover more](./wiki/README.md)
5
+
6
+ ## Documents
7
+
8
+ * [Code of Conduct](../CODE_OF_CONDUCT.md)
9
+ * [Contribution Guide](../CONTRIBUTING.md)
10
+ * [Commit Message Convention](./COMMIT_MESSAGE_CONVENTION.md)
11
+ * [API & Examples](https://nhnent.github.io/tui.chart/latest)
@@ -0,0 +1,27 @@
1
+ # Tutorial
2
+
3
+ * Chart Types
4
+ * [Bar, Column chart](chart-types-bar,column.md)
5
+ * [Line, Area chart](chart-types-line,area.md)
6
+ * [Bubble chart](chart-types-bubble.md)
7
+ * [Scatter chart](chart-types-scatter.md)
8
+ * [Pie chart](chart-types-pie.md)
9
+ * Combo chart
10
+ * [Column & Line](chart-types-column-line-combo.md)
11
+ * [Line & Area](chart-types-line-area-combo.md)
12
+ * [Pie & Donut](chart-types-pie-donut-combo.md)
13
+ * [Map chart](chart-types-map.md)
14
+ * [Heatmap chart](chart-types-heatmap.md)
15
+ * [Treemap chart](chart-types-treemap.md)
16
+ * Features
17
+ * [Chart](features-chart.md)
18
+ * [Series](features-series.md)
19
+ * [Axes](features-axes.md)
20
+ * [Tooltip](features-tooltip.md)
21
+ * [Legend](features-legend.md)
22
+ * [Circle legend](features-circle-legend.md)
23
+ * [Plot](features-plot.md)
24
+ * [Chart Export Menu](chart-export-menu.md)
25
+ * [Import chart data from existing table element](import-chart-data-from-existing-table-element.md)
26
+ * [Table of supported options](table-of-supported-options.md)
27
+ * [Theme](theme.md)
@@ -0,0 +1,31 @@
1
+ #### [Getting started](getting-started)
2
+
3
+ #### [Tutorial](tutorial)
4
+
5
+ * Chart Types
6
+ * [Bar, Column chart](chart-types-bar,column.md)
7
+ * [Line, Area chart](chart-types-line,area.md)
8
+ * [Bubble chart](chart-types-bubble.md)
9
+ * [Scatter chart](chart-types-scatter.md)
10
+ * [Pie chart](chart-types-pie.md)
11
+ * Combo chart
12
+ * [Column & Line](chart-types-column-line-combo.md)
13
+ * [Line & Area](chart-types-line-area-combo.md)
14
+ * [Pie & Donut](chart-types-pie-donut-combo.md)
15
+ * [Line & Scatter](chart-types-line-scatter-combo.md)
16
+ * [Map chart](chart-types-map.md)
17
+ * [Heatmap chart](chart-types-heatmap.md)
18
+ * [Treemap chart](chart-types-treemap.md)
19
+ * [Radial chart](chart-type-radial.md)
20
+ * Optional Features
21
+ * [Chart](features-chart.md)
22
+ * [Series](features-series.md)
23
+ * [Axes](features-axes.md)
24
+ * [Tooltip](features-tooltip.md)
25
+ * [Legend](features-legend.md)
26
+ * [Circle legend](features-circle-legend.md)
27
+ * [Plot](features-plot.md)
28
+ * [Chart export menu](chart-export-menu.md)
29
+ * [Table of supported options](table-of-supported-options.md)
30
+ * [Theme](theme.md)
31
+ * [Import chart data from existing table element](import-chart-data-from-existing-table-element.md)
@@ -0,0 +1,66 @@
1
+ ## Chart export menu Feature
2
+ * This section introduces about chart export menu.
3
+
4
+ ***
5
+
6
+ ### Browser compatibility of Client-Side download
7
+ Chart export menu is using client-side download, which mean download from own web browser client.
8
+
9
+ Due to deferences between browsers, some browsers not support download methods that we use.
10
+ And export menu is appears depends on whether browser support or not.
11
+ Even if `chartExportMenu.visible` is `true`.
12
+
13
+ Please confirm supporting browser list below.
14
+
15
+ ||Internet Explorer 8|Internet Explorer 9|Internet Explorer 10| Internet Explorer 11| Edge | Chrome | Firefox | Safari|
16
+ |---|---|---|---|---|---|---|---|---|
17
+ |Support|X|X|O|O|O|O|O|X|
18
+
19
+ ### Data structure compatibility for chart data export (xls, csv)
20
+ And basically chart export menu appear on tabular data structure.
21
+
22
+ Coordinate data, tree data structure not supported.
23
+
24
+ ### Option
25
+
26
+ #### Visible option
27
+ Using `chartExportMenu.visible` option to set visibility.
28
+
29
+ ##### Example
30
+
31
+ ``` javascript
32
+ var options = {
33
+ chartExportMenu: {
34
+ visible: true // default is true.
35
+ }
36
+ };
37
+ ```
38
+
39
+ ### Browser compatibility for chart image export (png, jpeg)
40
+ Basically, Image download support browser is Chrome, firefox, Edge.
41
+ Because of browser's canvas bitmap image security constraint, IE(Internet Explorer) 10~11 couldn't download image the same way modern browsers does.
42
+
43
+ But, Enable image download feature is potentially available in IE 10~11.
44
+ Just load [canvg](https://github.com/canvg/canvg)bundle on page. That's all.
45
+
46
+ And export menu list items(xls, csv, png, jpeg) are appear depends on whether browser support or not.
47
+
48
+ ||Internet Explorer 8|Internet Explorer 9|Internet Explorer 10| Internet Explorer 11| Edge | Chrome | Firefox | Safari|
49
+ |---|---|---|---|---|---|---|---|---|
50
+ |Support|X|X|X (+canvg: O)|X (+canvg: O)|O|O|O|X|
51
+
52
+ ***
53
+
54
+ ### Specify the name of the file to be exported.
55
+ Using `chartExportMenu.filename` option, you can specify the name of the file to be exported.
56
+
57
+ ##### Example
58
+
59
+ ```javascript
60
+ //...
61
+ var options = {
62
+ chartExportMenu: {
63
+ filename: 'custom_file_name' // setting filename
64
+ }
65
+ };
66
+ ```
@@ -0,0 +1,121 @@
1
+ ## Radial chart
2
+ * This section describes how to create radial chart with options.
3
+ * You can refer to the [Getting started](getting-started.md) for base installation of Toast UI Chart.
4
+
5
+ ***
6
+
7
+ ### Data type
8
+ Radial chart use the basic data type.
9
+
10
+ #### Basic data type
11
+
12
+ Basic data type is default type for Toast UI Chart.
13
+
14
+ ```javascript
15
+ var rawData = {
16
+ categories: ['June', 'July', 'Aug', 'Sep', 'Oct', 'Nov'],
17
+ series: [
18
+ {
19
+ name: 'Budget',
20
+ data: [5000, 3000, 6000, 3000, 6000, 4000]
21
+ },
22
+ {
23
+ name: 'Income',
24
+ data: [8000, 1000, 7000, 2000, 5000, 3000]
25
+ }
26
+ ]
27
+ };
28
+ ```
29
+
30
+ ***
31
+
32
+ ### Creating a basic chart
33
+
34
+ ##### Example
35
+
36
+ ```javascript
37
+
38
+ tui.chart.radialChart(container, data);
39
+
40
+ ```
41
+
42
+ ***
43
+
44
+ ### Creating radial chart with area or line series
45
+
46
+ You can create a radial chart with area series by default or setting the `series.showArea` option `true`.
47
+ <br>
48
+ If you set `series.showArea` to `false`, rendering series type will be line.
49
+
50
+ ##### Example
51
+
52
+ ```javascript
53
+ //...
54
+ var options = {
55
+ //...
56
+ series: {
57
+ showArea: true // defalut
58
+ // showArea: false
59
+ }
60
+ };
61
+
62
+ tui.chart.radialChart(container, rawData, options);
63
+ ```
64
+ ![radialChart with area or line series](https://cloud.githubusercontent.com/assets/7088720/21558376/3dfe5f36-ce7c-11e6-812a-0698138a489d.gif)
65
+
66
+
67
+ * _[Sample](https://nhnent.github.io/tui.chart/latest/tutorial-example13-01-radial-chart-basic.html)_
68
+
69
+
70
+ ### Creating radial chart without series dot
71
+
72
+ You can create radial chart without series dots by defalut or setting the `series.showDot` option `true`.<br>
73
+ If you set `series.showDot` option to `false`, series dots are didn't appear your chart.
74
+
75
+ ##### Example
76
+
77
+ ```javascript
78
+ //...
79
+ var options = {
80
+ //...
81
+ series: {
82
+ showDot: true // defalut
83
+ // showDot: false
84
+ }
85
+ };
86
+ tui.chart.radialChart(container, rawData, options);
87
+ ```
88
+
89
+ ![radialChart with or without series dot](https://cloud.githubusercontent.com/assets/7088720/21558314/332c69e6-ce7b-11e6-9d1f-030dde5c4723.gif)
90
+
91
+
92
+
93
+
94
+ * _[Sample](https://nhnent.github.io/tui.chart/latest/tutorial-example13-01-radial-chart-basic.html)_
95
+
96
+ ***
97
+
98
+ ### Creating radial chart with spider web or circle plot
99
+
100
+ You can create radial chart without series dots by defalut or setting the `series.showDot` option `true`.<br>
101
+ If you set `series.showDot` option to `false`, series dots are didn't appear your chart.
102
+
103
+ ##### Example
104
+
105
+ ```javascript
106
+ //...
107
+ var options = {
108
+ //...
109
+ plot: {
110
+ type: 'spiderweb' // defalut
111
+ // type: 'circle'
112
+ }
113
+ };
114
+ tui.chart.radialChart(container, rawData, options);
115
+ ```
116
+
117
+ ![radialChart with spiderweb or circle plot](https://cloud.githubusercontent.com/assets/7088720/21558342/b9a06914-ce7b-11e6-8fb1-b21d042df1a1.gif)
118
+
119
+
120
+
121
+ * _[Sample](https://nhnent.github.io/tui.chart/latest/tutorial-example13-01-radial-chart-basic.html)_
@@ -0,0 +1,312 @@
1
+ ## Bar chart and column chart
2
+ * This section describes how to create bar chart and column chart with options.
3
+ * You can refer to the [Getting started](getting-started.md) for base installation of Toast UI Chart.
4
+
5
+ ***
6
+
7
+ ### Data type
8
+ Bar chart and column chart use the basic and range data type.
9
+
10
+ #### Basic data type
11
+
12
+ Basic data type is default type for Toast UI Chart.
13
+
14
+ ```javascript
15
+ var rawData = {
16
+ categories: ['cate1', 'cate2', 'cate3'],
17
+ series: [
18
+ {
19
+ name: 'Legend1',
20
+ data: [20, 30, 50]
21
+ },
22
+ {
23
+ name: 'Legend2',
24
+ data: [40, 40, 60]
25
+ },
26
+ {
27
+ name: 'Legend3',
28
+ data: [60, 50, 10]
29
+ },
30
+ {
31
+ name: 'Legend4',
32
+ data: [80, 10, 70]
33
+ }
34
+ ]
35
+ };
36
+ ```
37
+
38
+ #### Range data type
39
+
40
+ Range data type is used to represent the range of data.<br>
41
+ If you follow this example, you can use range data.
42
+
43
+ ```javascript
44
+ var rawData = {
45
+ categories: ['cate1', 'cate2', 'cate3'],
46
+ series: [
47
+ {
48
+ name: 'Legend1',
49
+ data: [[10, 20], [20, 30], [40, 60]]
50
+ },
51
+ //...
52
+ ]
53
+ };
54
+ ```
55
+
56
+ ***
57
+
58
+ ### Creating a basic chart
59
+
60
+ ##### Example
61
+
62
+ ```javascript
63
+ // bar chart
64
+ tui.chart.barChart(container, data);
65
+
66
+ // column chart
67
+ tui.chart.columnChart(container, data);
68
+ ```
69
+
70
+ ***
71
+
72
+ ### Creating a range chart
73
+
74
+ You can create range chart by using range data type.
75
+
76
+ ```javascript
77
+ //...
78
+ var rawData = {
79
+ categories: ['Jan', 'Feb', 'Mar','Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
80
+ series: [
81
+ {
82
+ name: 'Seoul',
83
+ data: [[-8.3, 0.3], [-5.8, 3.1], [-0.6, 9.1], [5.8, 16.9], [11.5, 22.6], [16.6, 26.6], [21.2, 28.8], [21.8, 30.0], [15.8, 25.6], [8.3, 19.6], [1.4, 11.1], [-5.2, 3.2]]
84
+ }
85
+ ]
86
+ };
87
+ tui.chart.barChart(container, rawData);
88
+ ```
89
+
90
+ ![Range bar chart](https://cloud.githubusercontent.com/assets/2888775/14136752/66d94eee-f69f-11e5-9e40-5b58c071e74d.png)
91
+
92
+ * _[Sample](https://nhnent.github.io/tui.chart/latest/tutorial-example01-06-bar-chart-range-data.html)_
93
+
94
+
95
+ ***
96
+
97
+ ### Creating a stacked chart
98
+
99
+ You can create a stacked chart by setting the `series.stackType` option.<br>
100
+ The stacked chart has two types, 'normal' and 'percent'.
101
+
102
+ #### Stacked bar chart of normal type
103
+
104
+ ##### Example
105
+
106
+ ```javascript
107
+ //...
108
+ var options = {
109
+ //...
110
+ series: {
111
+ stackType: 'normal'
112
+ }
113
+ };
114
+ tui.chart.barChart(container, rawData, options);
115
+ ```
116
+
117
+ ![Stacked bar chart of normal type](https://cloud.githubusercontent.com/assets/2888775/13161327/60cfc75a-d6e0-11e5-9771-9c625c39d9eb.png)
118
+
119
+ * _[Sample](https://nhnent.github.io/tui.chart/latest/tutorial-example01-03-bar-chart-normal-stack.html)_
120
+
121
+
122
+ #### Stacked column chart of percent type
123
+
124
+ ##### Example
125
+
126
+ ```javascript
127
+ //...
128
+ var options = {
129
+ //...
130
+ series: {
131
+ stackType: 'percent'
132
+ }
133
+ };
134
+ tui.chart.columnChart(container, rawData, options);
135
+ ```
136
+
137
+ ![Stacked bar chart of percent type](https://cloud.githubusercontent.com/assets/2888775/13161350/7d84b504-d6e0-11e5-854f-f4672fdb4c36.png)
138
+
139
+ * _[Sample](https://nhnent.github.io/tui.chart/latest/tutorial-example02-03-column-chart-percent-stack.html)_
140
+
141
+ #### Group stacked column chart
142
+
143
+ If you add the `stack` properties to the data, you can create group stacked chart.
144
+
145
+ ```javascript
146
+ //...
147
+ var rawData = {
148
+ categories: ["0 ~ 9", "10 ~ 19", "20 ~ 29", "30 ~ 39", "40 ~ 49", "50 ~ 59", "60 ~ 69", "70 ~ 79", "80 ~ 89", "90 ~ 99", "100 ~"],
149
+ series: [
150
+ {
151
+ name: 'Male - Seoul',
152
+ data: [400718, 506749, 722122, 835851, 850007, 773094, 496232, 267037, 67004, 7769, 1314],
153
+ stack: 'Male'
154
+ },
155
+ {
156
+ name: 'Female - Seoul',
157
+ data: [380595, 472893, 724408, 829149, 853032, 812687, 548381, 316142, 127406, 22177, 3770],
158
+ stack: 'Female'
159
+ },
160
+ {
161
+ name: 'Male - Incheon',
162
+ data: [139283, 167132, 209256, 233977, 261195, 251151, 127721, 61452, 17138, 1974, 194],
163
+ stack: 'Male'
164
+ },
165
+ {
166
+ name: 'Female - Incheon',
167
+ data: [132088, 155895, 192760, 221250, 255601, 243374, 130406, 80763, 38005, 6057, 523],
168
+ stack: 'Female'
169
+ }
170
+ ]
171
+ };
172
+ var options = {
173
+ //...
174
+ series: {
175
+ stackType: 'normal'
176
+ }
177
+ };
178
+ tui.chart.columnChart(container, rawData, options);
179
+ ```
180
+
181
+ ![Group stacked bar chart](https://cloud.githubusercontent.com/assets/2888775/14137076/143d9bde-f6a1-11e5-818a-da6b24ad8031.png)
182
+
183
+ * _[Sample](https://nhnent.github.io/tui.chart/latest/tutorial-example02-04-column-chart-group-stack.html)_
184
+
185
+ ***
186
+
187
+ ### Creating a diverging chart
188
+ Using `series.diverging` option, you can create a normal diverging chart that is like population distribution chart.<br>
189
+ If you use `yAxis.align=center` option, you can create diverging chart, which yAxis is placed at the center.
190
+ And also use `series.stackType` option to create stacked diverging chart.
191
+
192
+ #### Diverging bar Chart
193
+
194
+ The diverging chart uses the first and second elements in `data.series`.<br>
195
+ Also, using two `yAxis` options, you can place Y axes the left and right.
196
+
197
+
198
+ ##### Example
199
+
200
+ ```javascript
201
+ //...
202
+ var rawData = {
203
+ categories: ['100 ~', '90 ~ 99', '80 ~ 89', '70 ~ 79', '60 ~ 69', '50 ~ 59', '40 ~ 49', '30 ~ 39', '20 ~ 29', '10 ~ 19', '0 ~ 9'],
204
+ series: [
205
+ {
206
+ name: 'Male',
207
+ data: [3832, 38696, 395906, 1366738, 2482657, 4198869, 4510524, 3911135, 3526321, 2966126, 2362433]
208
+ },
209
+ {
210
+ name: 'Female',
211
+ data: [12550, 128464, 839761, 1807901, 2630336, 4128479, 4359815, 3743214, 3170926, 2724383, 2232516]
212
+ }
213
+ ]
214
+ };
215
+ var options = {
216
+ //...
217
+ yAxis: [{
218
+ title: 'Age Group'
219
+ }, {
220
+ title: 'Age Group'
221
+ }],
222
+ series: {
223
+ diverging: true
224
+ }
225
+ };
226
+ tui.chart.barChart(container, rawData, options);
227
+ ```
228
+ ![Diverging Bar Chart](https://cloud.githubusercontent.com/assets/2888775/13161827/9dab5ef2-d6e3-11e5-9716-fe54b5acb864.png)
229
+
230
+ * _[Sample](https://nhnent.github.io/tui.chart/latest/tutorial-example01-04-bar-chart-diverging.html)_
231
+
232
+ #### Diverging bar chart, which yAxis is placed at the center.
233
+ If you set single yAxis option and setting `yAxis.align` to 'center', you can create diverging chart, which yAxis is placed at the center.
234
+
235
+ ##### Example
236
+
237
+ ```javascript
238
+ //...
239
+ var rawData = {
240
+ categories: ['100 ~', '90 ~ 99', '80 ~ 89', '70 ~ 79', '60 ~ 69', '50 ~ 59', '40 ~ 49', '30 ~ 39', '20 ~ 29', '10 ~ 19', '0 ~ 9'],
241
+ series: [
242
+ {
243
+ name: 'Male',
244
+ data: [3832, 38696, 395906, 1366738, 2482657, 4198869, 4510524, 3911135, 3526321, 2966126, 2362433]
245
+ },
246
+ {
247
+ name: 'Female',
248
+ data: [12550, 128464, 839761, 1807901, 2630336, 4128479, 4359815, 3743214, 3170926, 2724383, 2232516]
249
+ }
250
+ ]
251
+ };
252
+ var options = {
253
+ //...
254
+ yAxis: {
255
+ title: 'Age Group',
256
+ align: 'center'
257
+ },
258
+ series: {
259
+ diverging: true
260
+ }
261
+ };
262
+ tui.chart.barChart(container, rawData, options);
263
+ ```
264
+ ![Single yAxis Diverging Bar Chart](https://cloud.githubusercontent.com/assets/2888775/14136037/bac25112-f69b-11e5-8df1-dcd75bf9356c.png)
265
+
266
+ * _[Sample](https://nhnent.github.io/tui.chart/latest/tutorial-example01-05-bar-chart-diverging-and-center-yaxis.html)_
267
+
268
+ #### Stacked diverging column chart
269
+ The stacked diverging chart is groupings based on the stack properties of `data.series` elements,
270
+ and then uses the first and second group.
271
+
272
+ ##### Example
273
+
274
+ ```javascript
275
+ //...
276
+ var rawData = {
277
+ categories: ["0 ~ 9", "10 ~ 19", "20 ~ 29", "30 ~ 39", "40 ~ 49", "50 ~ 59", "60 ~ 69", "70 ~ 79", "80 ~ 89", "90 ~ 99", "100 ~"],
278
+ series: [
279
+ {
280
+ name: 'Seoul Male',
281
+ data: [400718, 506749, 722122, 835851, 850007, 773094, 496232, 267037, 67004, 7769, 1314],
282
+ stack: 'Male'
283
+ },
284
+ {
285
+ name: 'Seoul Female',
286
+ data: [380595, 472893, 724408, 829149, 853032, 812687, 548381, 316142, 127406, 22177, 3770],
287
+ stack: 'Female'
288
+ },
289
+ {
290
+ name: 'Incheon Male',
291
+ data: [139283, 167132, 209256, 233977, 261195, 251151, 127721, 61452, 17138, 1974, 194],
292
+ stack: 'Male'
293
+ },
294
+ {
295
+ name: 'Incheon Female',
296
+ data: [132088, 155895, 192760, 221250, 255601, 243374, 130406, 80763, 38005, 6057, 523],
297
+ stack: 'Female'
298
+ }
299
+ ]
300
+ };
301
+ var options = {
302
+ //...
303
+ series: {
304
+ diverging: true,
305
+ stackType: 'normal'
306
+ }
307
+ };
308
+ tui.chart.columnChart(container, rawData, options);
309
+ ```
310
+ ![Diverging Stacked Column Chart](https://cloud.githubusercontent.com/assets/2888775/13162206/95824e7c-d6e6-11e5-8b6b-3b729b8a9fe7.png)
311
+
312
+ * _[Sample](https://nhnent.github.io/tui.chart/latest/tutorial-example02-05-column-chart-diverging-and-stacked.html)_