tui-charts.init.js 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366
  1. /******/ (function() { // webpackBootstrap
  2. var __webpack_exports__ = {};
  3. /*!***********************************************!*\
  4. !*** ./resources/js/pages/tui-charts.init.js ***!
  5. \***********************************************/
  6. /*
  7. Template Name: Skote - Admin & Dashboard Template
  8. Author: Themesbrand
  9. Website: https://themesbrand.com/
  10. Contact: themesbrand@gmail.com
  11. File: Tui charts init Js File
  12. */
  13. // get colors array from the string
  14. function getChartColorsArray(chartId) {
  15. if (document.getElementById(chartId) !== null) {
  16. var colors = document.getElementById(chartId).getAttribute("data-colors");
  17. if (colors) {
  18. colors = JSON.parse(colors);
  19. return colors.map(function (value) {
  20. var newValue = value.replace(" ", "");
  21. if (newValue.indexOf(",") === -1) {
  22. var color = getComputedStyle(document.documentElement).getPropertyValue(newValue);
  23. if (color){
  24. color = color.replace(" ", "");
  25. return color;
  26. }
  27. else return newValue;;
  28. } else {
  29. var val = value.split(',');
  30. if (val.length == 2) {
  31. var rgbaColor = getComputedStyle(document.documentElement).getPropertyValue(val[0]);
  32. rgbaColor = "rgba(" + rgbaColor + "," + val[1] + ")";
  33. return rgbaColor;
  34. } else {
  35. return newValue;
  36. }
  37. }
  38. });
  39. }
  40. }
  41. } // Bar charts
  42. var barChartColors = getChartColorsArray("bar-charts");
  43. if (barChartColors) {
  44. var barChartWidth = $("#bar-charts").width();
  45. var container = document.getElementById('bar-charts');
  46. var data = {
  47. categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June'],
  48. series: [{
  49. name: 'Budget',
  50. data: [5000, 3000, 5000, 7000, 6000, 4000]
  51. }, {
  52. name: 'Income',
  53. data: [8000, 1000, 7000, 2000, 5000, 3000]
  54. }]
  55. };
  56. var options = {
  57. chart: {
  58. width: barChartWidth,
  59. height: 380,
  60. title: 'Monthly Revenue',
  61. format: '1,000'
  62. },
  63. yAxis: {
  64. title: 'Month'
  65. },
  66. xAxis: {
  67. title: 'Amount',
  68. min: 0,
  69. max: 9000,
  70. suffix: '$'
  71. },
  72. series: {
  73. showLabel: false
  74. }
  75. };
  76. var theme = {
  77. chart: {
  78. background: {
  79. color: '#fff',
  80. opacity: 0
  81. }
  82. },
  83. title: {
  84. color: '#8791af'
  85. },
  86. xAxis: {
  87. title: {
  88. color: '#8791af'
  89. },
  90. label: {
  91. color: '#8791af'
  92. },
  93. tickColor: '#8791af'
  94. },
  95. yAxis: {
  96. title: {
  97. color: '#8791af'
  98. },
  99. label: {
  100. color: '#8791af'
  101. },
  102. tickColor: '#8791af'
  103. },
  104. plot: {
  105. lineColor: 'rgba(166, 176, 207, 0.1)'
  106. },
  107. series: {
  108. colors: barChartColors
  109. },
  110. legend: {
  111. label: {
  112. color: '#8791af'
  113. }
  114. }
  115. };
  116. tui.chart.registerTheme('myTheme', theme);
  117. options.theme = 'myTheme';
  118. var barChart = tui.chart.barChart(container, data, options);
  119. }
  120. $(window).resize(function () {
  121. barChartWidth = $("#bar-charts").width();
  122. barChart.resize({
  123. width: barChartWidth,
  124. height: 350
  125. });
  126. }); // column charts
  127. var columnChartColors = getChartColorsArray("column-charts");
  128. if (columnChartColors) {
  129. var columnChartWidth = $("#column-charts").width();
  130. var container = document.getElementById('column-charts');
  131. var data = {
  132. categories: ['Jun, 2019', 'Jul, 2019', 'Aug, 2019', 'Sep, 2019', 'Oct, 2019', 'Nov, 2019', 'Dec, 2019'],
  133. series: [{
  134. name: 'Budget',
  135. data: [5000, 3000, 5000, 7000, 6000, 4000, 1000]
  136. }, {
  137. name: 'Income',
  138. data: [8000, 1000, 7000, 2000, 6000, 3000, 5000]
  139. }, {
  140. name: 'Expenses',
  141. data: [4000, 4000, 6000, 3000, 4000, 5000, 7000]
  142. }]
  143. };
  144. var options = {
  145. chart: {
  146. width: columnChartWidth,
  147. height: 380,
  148. title: 'Monthly Revenue',
  149. format: '1,000'
  150. },
  151. yAxis: {
  152. title: 'Amount',
  153. min: 0,
  154. max: 9000
  155. },
  156. xAxis: {
  157. title: 'Month'
  158. },
  159. legend: {
  160. align: 'top'
  161. }
  162. };
  163. var theme = {
  164. chart: {
  165. background: {
  166. color: '#fff',
  167. opacity: 0
  168. }
  169. },
  170. title: {
  171. color: '#8791af'
  172. },
  173. xAxis: {
  174. title: {
  175. color: '#8791af'
  176. },
  177. label: {
  178. color: '#8791af'
  179. },
  180. tickColor: '#8791af'
  181. },
  182. yAxis: {
  183. title: {
  184. color: '#8791af'
  185. },
  186. label: {
  187. color: '#8791af'
  188. },
  189. tickColor: '#8791af'
  190. },
  191. plot: {
  192. lineColor: 'rgba(166, 176, 207, 0.1)'
  193. },
  194. legend: {
  195. label: {
  196. color: '#8791af'
  197. }
  198. },
  199. series: {
  200. colors: columnChartColors
  201. }
  202. }; // For apply theme
  203. tui.chart.registerTheme('myTheme', theme);
  204. options.theme = 'myTheme';
  205. var columnChart = tui.chart.columnChart(container, data, options);
  206. }
  207. $(window).resize(function () {
  208. columnChartWidth = $("#column-charts").width();
  209. columnChart.resize({
  210. width: columnChartWidth,
  211. height: 350
  212. });
  213. }); // Line charts
  214. var lineChartColors = getChartColorsArray("line-charts");
  215. if (lineChartColors) {
  216. var lineChartWidth = $("#line-charts").width();
  217. var container = document.getElementById('line-charts');
  218. var data = {
  219. categories: ['June', 'July', 'Aug', 'Sep', 'Oct', 'Nov'],
  220. series: [{
  221. name: 'Budget',
  222. data: [5000, 3000, 6000, 3000, 6000, 4000]
  223. }, {
  224. name: 'Income',
  225. data: [8000, 1000, 7000, 2000, 5000, 3000]
  226. }, {
  227. name: 'Outgo',
  228. data: [900, 6000, 1000, 9000, 3000, 1000]
  229. }]
  230. };
  231. var options = {
  232. chart: {
  233. width: lineChartWidth,
  234. height: 380,
  235. title: '24-hr Average Temperature'
  236. },
  237. yAxis: {
  238. title: 'Amount',
  239. pointOnColumn: true
  240. },
  241. xAxis: {
  242. title: 'Month'
  243. },
  244. series: {
  245. spline: true,
  246. showDot: false
  247. },
  248. tooltip: {
  249. suffix: '°C'
  250. }
  251. };
  252. var theme = {
  253. chart: {
  254. background: {
  255. color: '#fff',
  256. opacity: 0
  257. }
  258. },
  259. title: {
  260. color: '#8791af'
  261. },
  262. xAxis: {
  263. title: {
  264. color: '#8791af'
  265. },
  266. label: {
  267. color: '#8791af'
  268. },
  269. tickColor: '#8791af'
  270. },
  271. yAxis: {
  272. title: {
  273. color: '#8791af'
  274. },
  275. label: {
  276. color: '#8791af'
  277. },
  278. tickColor: '#8791af'
  279. },
  280. plot: {
  281. lineColor: 'rgba(166, 176, 207, 0.1)'
  282. },
  283. legend: {
  284. label: {
  285. color: '#8791af'
  286. }
  287. },
  288. series: {
  289. colors: lineChartColors
  290. }
  291. };
  292. tui.chart.registerTheme('myTheme', theme);
  293. options.theme = 'myTheme';
  294. var lineChart = tui.chart.lineChart(container, data, options);
  295. }
  296. $(window).resize(function () {
  297. lineChartWidth = $("#line-charts").width();
  298. lineChart.resize({
  299. width: lineChartWidth,
  300. height: 350
  301. });
  302. }); // Area charts
  303. var areaChartColors = getChartColorsArray("area-charts");
  304. if (areaChartColors) {
  305. var areaChartWidth = $("#area-charts").width();
  306. var container = document.getElementById('area-charts');
  307. var data = {
  308. categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  309. series: [{
  310. name: 'Seoul',
  311. data: [20, 40, 25, 50, 15, 45, 33, 34, 20, 30, 22, 13]
  312. }, {
  313. name: 'Sydney',
  314. data: [5, 30, 21, 18, 59, 50, 28, 33, 7, 20, 10, 30]
  315. }, {
  316. name: 'Moskva',
  317. data: [30, 5, 18, 21, 33, 41, 29, 15, 30, 10, 33, 5]
  318. }]
  319. };
  320. var options = {
  321. chart: {
  322. width: areaChartWidth,
  323. height: 380,
  324. title: '24-hr Average Temperature'
  325. },
  326. series: {
  327. zoomable: true,
  328. showDot: false,
  329. areaOpacity: 1
  330. },
  331. yAxis: {
  332. title: 'Temperature (Celsius)',
  333. pointOnColumn: true
  334. },
  335. xAxis: {
  336. title: 'Month'
  337. },
  338. tooltip: {
  339. suffix: '°C'
  340. }
  341. };
  342. var theme = {
  343. chart: {
  344. background: {
  345. color: '#fff',
  346. opacity: 0
  347. }
  348. },
  349. title: {
  350. color: '#8791af'
  351. },
  352. xAxis: {
  353. title: {
  354. color: '#8791af'
  355. },
  356. label: {
  357. color: '#8791af'
  358. },
  359. tickColor: '#8791af'
  360. },
  361. yAxis: {
  362. title: {
  363. color: '#8791af'
  364. },
  365. label: {
  366. color: '#8791af'
  367. },
  368. tickColor: '#8791af'
  369. },
  370. plot: {
  371. lineColor: 'rgba(166, 176, 207, 0.1)'
  372. },
  373. legend: {
  374. label: {
  375. color: '#8791af'
  376. }
  377. },
  378. series: {
  379. colors: areaChartColors
  380. }
  381. }; // For apply theme
  382. tui.chart.registerTheme('myTheme', theme);
  383. options.theme = 'myTheme';
  384. var areaChart = tui.chart.areaChart(container, data, options);
  385. }
  386. $(window).resize(function () {
  387. areaChartWidth = $("#area-charts").width();
  388. areaChart.resize({
  389. width: areaChartWidth,
  390. height: 350
  391. });
  392. }); // Radial charts
  393. var radialChartColors = getChartColorsArray("radial-charts");
  394. if (radialChartColors) {
  395. var radialChartWidth = $("#radial-charts").width();
  396. var container = document.getElementById('radial-charts');
  397. var data = {
  398. categories: ["Jan", "Feb", "Mar", "April", "May", "Jun"],
  399. series: [{
  400. name: 'Budget',
  401. data: [5000, 3000, 5000, 7000, 6000, 4000]
  402. }, {
  403. name: 'Income',
  404. data: [8000, 8000, 7000, 2000, 5000, 3000]
  405. }, {
  406. name: 'Expenses',
  407. data: [4000, 4000, 6000, 3000, 4000, 5000]
  408. }, {
  409. name: 'Debt',
  410. data: [6000, 3000, 3000, 1000, 2000, 4000]
  411. }]
  412. };
  413. var options = {
  414. chart: {
  415. title: 'Annual Incomes',
  416. width: radialChartWidth,
  417. height: 380
  418. },
  419. series: {
  420. showDot: false,
  421. showArea: false
  422. },
  423. plot: {
  424. type: 'circle'
  425. },
  426. legend: {
  427. align: 'bottom'
  428. }
  429. };
  430. var theme = {
  431. chart: {
  432. background: {
  433. color: '#fff',
  434. opacity: 0
  435. }
  436. },
  437. title: {
  438. color: '#8791af'
  439. },
  440. xAxis: {
  441. title: {
  442. color: '#8791af'
  443. },
  444. label: {
  445. color: '#8791af'
  446. },
  447. tickColor: '#8791af'
  448. },
  449. yAxis: {
  450. title: {
  451. color: '#8791af'
  452. },
  453. label: {
  454. color: '#8791af'
  455. },
  456. tickColor: '#8791af'
  457. },
  458. plot: {
  459. lineColor: 'rgba(166, 176, 207, 0.1)'
  460. },
  461. legend: {
  462. label: {
  463. color: '#8791af'
  464. }
  465. },
  466. series: {
  467. colors: radialChartColors
  468. }
  469. }; // For apply theme
  470. tui.chart.registerTheme('myTheme', theme);
  471. options.theme = 'myTheme';
  472. var radialChart = tui.chart.radialChart(container, data, options);
  473. }
  474. $(window).resize(function () {
  475. radialChartWidth = $("#radial-charts").width();
  476. radialChart.resize({
  477. width: radialChartWidth,
  478. height: 350
  479. });
  480. }); // Bubble chart
  481. var bubbleChartColors = getChartColorsArray("bubble-charts");
  482. if (bubbleChartColors) {
  483. var bubbleChartWidth = $("#bubble-charts").width();
  484. var container = document.getElementById('bubble-charts');
  485. var data = {
  486. series: [{
  487. name: 'Africa',
  488. data: [{
  489. x: 4200,
  490. y: 70.35,
  491. r: 32209101,
  492. label: 'Morocco'
  493. }, {
  494. x: 4200,
  495. y: 70.71,
  496. r: 76117421,
  497. label: 'Egypt'
  498. }, {
  499. x: 5900,
  500. y: 56.46,
  501. r: 1355246,
  502. label: 'Gabon'
  503. }, {
  504. x: 6600,
  505. y: 72.74,
  506. r: 32129324,
  507. label: 'Algeria'
  508. }, {
  509. x: 6700,
  510. y: 76.28,
  511. r: 5631585,
  512. label: 'Libya'
  513. }, {
  514. x: 7100,
  515. y: 74.66,
  516. r: 9974722,
  517. label: 'Tunisia'
  518. }, {
  519. x: 10500,
  520. y: 69.28,
  521. r: 1096585,
  522. label: 'Trinidad and Tobago'
  523. }, {
  524. x: 12800,
  525. y: 72.09,
  526. r: 1220481,
  527. label: 'Mauritius'
  528. }, {
  529. x: 18200,
  530. y: 78.68,
  531. r: 396851,
  532. label: 'Malta'
  533. }]
  534. }, {
  535. name: 'America',
  536. data: [{
  537. x: 4800,
  538. y: 74.64,
  539. r: 6191368,
  540. label: 'Paraguay'
  541. }, {
  542. x: 4900,
  543. y: 70.92,
  544. r: 6587541,
  545. label: 'El Salvador'
  546. }, {
  547. x: 5600,
  548. y: 69.22,
  549. r: 2754430,
  550. label: 'Peru'
  551. }, {
  552. x: 5800,
  553. y: 74.06,
  554. r: 2501738,
  555. label: 'Venezuela'
  556. }, {
  557. x: 6300,
  558. y: 67.63,
  559. r: 8833634,
  560. label: 'Dominican Republic'
  561. }, {
  562. x: 6500,
  563. y: 67.43,
  564. r: 272945,
  565. label: 'Belize'
  566. }, {
  567. x: 6600,
  568. y: 71.43,
  569. r: 4231077,
  570. label: 'Colombia'
  571. }, {
  572. x: 6900,
  573. y: 72.14,
  574. r: 3000463,
  575. label: 'Panama'
  576. }, {
  577. x: 8100,
  578. y: 71.41,
  579. r: 78410118,
  580. label: 'Brazil'
  581. }, {
  582. x: 9600,
  583. y: 76.63,
  584. r: 3956507,
  585. label: 'Costa Rica'
  586. }, {
  587. x: 9600,
  588. y: 74.94,
  589. r: 4495959,
  590. label: 'Mexico'
  591. }, {
  592. x: 12400,
  593. y: 75.7,
  594. r: 6914475,
  595. label: 'Argentina'
  596. }, {
  597. x: 14500,
  598. y: 75.92,
  599. r: 3399237,
  600. label: 'Uruguay'
  601. }, {
  602. x: 16400,
  603. y: 71.64,
  604. r: 278289,
  605. label: 'Barbados'
  606. }, {
  607. x: 17700,
  608. y: 65.63,
  609. r: 299697,
  610. label: 'Bahamas, The'
  611. }, {
  612. x: 17700,
  613. y: 77.49,
  614. r: 3897960,
  615. label: 'Puerto Rico'
  616. }, {
  617. x: 31500,
  618. y: 79.96,
  619. r: 32507874,
  620. label: 'Canada'
  621. }, {
  622. x: 32100,
  623. y: 77.43,
  624. r: 89302754,
  625. label: 'United States'
  626. }]
  627. }, {
  628. name: 'Asia',
  629. data: [{
  630. x: 5600,
  631. y: 71.96,
  632. r: 92988000,
  633. label: 'China'
  634. }, {
  635. x: 5700,
  636. y: 61.29,
  637. r: 4863169,
  638. label: 'Turkmenistan'
  639. }, {
  640. x: 7700,
  641. y: 69.66,
  642. r: 19018924,
  643. label: 'Iran'
  644. }, {
  645. x: 7800,
  646. y: 66.07,
  647. r: 1514370,
  648. label: 'Kazakhstan'
  649. }, {
  650. x: 8100,
  651. y: 71.41,
  652. r: 14865523,
  653. label: 'Thailand'
  654. }, {
  655. x: 9700,
  656. y: 71.95,
  657. r: 23522482,
  658. label: 'Malaysia'
  659. }, {
  660. x: 12000,
  661. y: 75.23,
  662. r: 25795938,
  663. label: 'Saudi Arabia'
  664. }, {
  665. x: 13100,
  666. y: 72.85,
  667. r: 2903165,
  668. label: 'Oman'
  669. }, {
  670. x: 19200,
  671. y: 75.58,
  672. r: 48598170,
  673. label: 'Korea, South'
  674. }, {
  675. x: 19200,
  676. y: 73.98,
  677. r: 677886,
  678. label: 'Bahrain'
  679. }, {
  680. x: 20800,
  681. y: 79.17,
  682. r: 6199008,
  683. label: 'Israel'
  684. }, {
  685. x: 21300,
  686. y: 76.84,
  687. r: 2257549,
  688. label: 'Kuwait'
  689. }, {
  690. x: 23200,
  691. y: 73.4,
  692. r: 840290,
  693. label: 'Qatar'
  694. }, {
  695. x: 25200,
  696. y: 74.99,
  697. r: 2523915,
  698. label: 'United Arab Emirates'
  699. }, {
  700. x: 25300,
  701. y: 77.06,
  702. r: 22749838,
  703. label: 'Taiwan'
  704. }, {
  705. x: 27800,
  706. y: 81.53,
  707. r: 4353893,
  708. label: 'Singapore'
  709. }, {
  710. x: 29400,
  711. y: 81.04,
  712. r: 52733300,
  713. label: 'Japan'
  714. }, {
  715. x: 34200,
  716. y: 81.39,
  717. r: 6855125,
  718. label: 'Hong Kong'
  719. }]
  720. }, {
  721. name: 'Europe',
  722. data: [{
  723. x: 7700,
  724. y: 71.12,
  725. r: 2235555,
  726. label: 'Romania'
  727. }, {
  728. x: 8200,
  729. y: 71.75,
  730. r: 7517973,
  731. label: 'Bulgaria'
  732. }, {
  733. x: 9800,
  734. y: 66.39,
  735. r: 54378233,
  736. label: 'Russia'
  737. }, {
  738. x: 10700,
  739. y: 76.38,
  740. r: 1582395,
  741. label: 'Chile'
  742. }, {
  743. x: 11200,
  744. y: 74.14,
  745. r: 4496869,
  746. label: 'Croatia'
  747. }, {
  748. x: 11500,
  749. y: 70.86,
  750. r: 2306306,
  751. label: 'Latvia'
  752. }, {
  753. x: 12000,
  754. y: 74.16,
  755. r: 38626349,
  756. label: 'Poland'
  757. }, {
  758. x: 12500,
  759. y: 73.46,
  760. r: 3607899,
  761. label: 'Lithuania'
  762. }, {
  763. x: 14300,
  764. y: 71.38,
  765. r: 1341664,
  766. label: 'Estonia'
  767. }, {
  768. x: 14500,
  769. y: 74.19,
  770. r: 5423567,
  771. label: 'Slovakia'
  772. }, {
  773. x: 14900,
  774. y: 72.25,
  775. r: 1003237,
  776. label: 'Hungary'
  777. }, {
  778. x: 16800,
  779. y: 75.78,
  780. r: 1024617,
  781. label: 'Czech Republic'
  782. }, {
  783. x: 17900,
  784. y: 77.35,
  785. r: 1052414,
  786. label: 'Portugal'
  787. }, {
  788. x: 19600,
  789. y: 75.93,
  790. r: 2011473,
  791. label: 'Slovenia'
  792. }, {
  793. x: 21300,
  794. y: 78.94,
  795. r: 10647529,
  796. label: 'Greece'
  797. }, {
  798. x: 23300,
  799. y: 79.37,
  800. r: 40280780,
  801. label: 'Spain'
  802. }, {
  803. x: 27700,
  804. y: 79.54,
  805. r: 58057477,
  806. label: 'Italy'
  807. }, {
  808. x: 28400,
  809. y: 80.3,
  810. r: 898640,
  811. label: 'Sweden'
  812. }, {
  813. x: 28700,
  814. y: 78.54,
  815. r: 22424609,
  816. label: 'Germany'
  817. }, {
  818. x: 28700,
  819. y: 79.44,
  820. r: 30424213,
  821. label: 'France'
  822. }, {
  823. x: 29000,
  824. y: 78.24,
  825. r: 5214512,
  826. label: 'Finland'
  827. }, {
  828. x: 29500,
  829. y: 78.68,
  830. r: 16318199,
  831. label: 'Netherlands'
  832. }, {
  833. x: 29600,
  834. y: 78.27,
  835. r: 60270708,
  836. label: 'United Kingdom'
  837. }, {
  838. x: 30600,
  839. y: 78.44,
  840. r: 10348276,
  841. label: 'Belgium'
  842. }, {
  843. x: 31300,
  844. y: 78.87,
  845. r: 8174762,
  846. label: 'Austria'
  847. }, {
  848. x: 31900,
  849. y: 77.36,
  850. r: 3969558,
  851. label: 'Ireland'
  852. }, {
  853. x: 31900,
  854. y: 80.18,
  855. r: 293966,
  856. label: 'Iceland'
  857. }, {
  858. x: 32200,
  859. y: 77.44,
  860. r: 5413392,
  861. label: 'Denmark'
  862. }, {
  863. x: 33800,
  864. y: 80.31,
  865. r: 7450867,
  866. label: 'Switzerland'
  867. }]
  868. }, {
  869. name: 'Oceania',
  870. data: [{
  871. x: 2200,
  872. y: 64.56,
  873. r: 5420280,
  874. label: 'Papua New Guinea'
  875. }, {
  876. x: 2700,
  877. y: 61.32,
  878. r: 100798,
  879. label: 'Kiribati'
  880. }, {
  881. x: 5900,
  882. y: 69.2,
  883. r: 880874,
  884. label: 'Fiji'
  885. }, {
  886. x: 14500,
  887. y: 78.75,
  888. r: 108775,
  889. label: 'Virgin Islands'
  890. }, {
  891. x: 23200,
  892. y: 78.49,
  893. r: 1993817,
  894. label: 'New Zealand'
  895. }, {
  896. x: 30700,
  897. y: 80.26,
  898. r: 5991314,
  899. label: 'Australia'
  900. }]
  901. }]
  902. };
  903. var options = {
  904. chart: {
  905. width: radialChartWidth,
  906. height: 380,
  907. title: 'Life Expectancy per GDP',
  908. format: function format(value, chartType, areaType, valueType) {
  909. if (valueType === 'r' || valueType === 'x') {
  910. value = tui.chart.renderUtil.formatToComma(value);
  911. if (valueType === 'x') {
  912. value = '$' + value;
  913. }
  914. }
  915. return value;
  916. }
  917. },
  918. yAxis: {
  919. title: 'Life Expectancy (years)'
  920. },
  921. xAxis: {
  922. title: 'GDP'
  923. },
  924. tooltip: {
  925. template: function template(category, items) {
  926. return '<div class="tui-chart-default-tooltip">' + '<div class="tui-chart-tooltip-head">' + '<span class="tui-chart-legend-rect" style="' + items.cssText + '; width: 10px; height: 10px"></span>' + '<span>' + items.legend + '</span>' + '<span>' + items.label + '</span>' + '</div>' + '<table class="tui-chart-tooltip-body">' + '<tr>' + '<td>GDP</td>' + '<td class="tui-chart-tooltip-value">' + items.x + '</td>' + '</tr>' + '<tr>' + '<td>Life Expectancy</td>' + '<td class="tui-chart-tooltip-value">' + items.y + '</td>' + '</tr>' + '<tr>' + '<td>Population</td>' + '<td class="tui-chart-tooltip-value">' + items.r + '</td>' + '</tr>' + '</table>';
  927. '</div>';
  928. }
  929. }
  930. };
  931. var theme = {
  932. chart: {
  933. background: {
  934. color: '#fff',
  935. opacity: 0
  936. }
  937. },
  938. title: {
  939. color: '#8791af'
  940. },
  941. xAxis: {
  942. title: {
  943. color: '#8791af'
  944. },
  945. label: {
  946. color: '#8791af'
  947. },
  948. tickColor: '#8791af'
  949. },
  950. yAxis: {
  951. title: {
  952. color: '#8791af'
  953. },
  954. label: {
  955. color: '#8791af'
  956. },
  957. tickColor: '#8791af'
  958. },
  959. plot: {
  960. lineColor: 'rgba(166, 176, 207, 0.1)'
  961. },
  962. legend: {
  963. label: {
  964. color: '#8791af'
  965. }
  966. },
  967. series: {
  968. colors: bubbleChartColors
  969. }
  970. }; // For apply theme
  971. tui.chart.registerTheme('myTheme', theme);
  972. options.theme = 'myTheme';
  973. var bubbleChart = tui.chart.bubbleChart(container, data, options);
  974. }
  975. $(window).resize(function () {
  976. bubbleChartWidth = $("#bubble-charts").width();
  977. bubbleChart.resize({
  978. width: bubbleChartWidth,
  979. height: 350
  980. });
  981. }); // Scatter chart
  982. var scatterChartColors = getChartColorsArray("bubble-charts");
  983. if (scatterChartColors) {
  984. var scatterChartWidth = $("#scatter-charts").width();
  985. var container = document.getElementById('scatter-charts');
  986. var data = {
  987. series: [{
  988. name: 'male',
  989. data: [{
  990. x: 174,
  991. y: 65.6
  992. }, {
  993. x: 175.3,
  994. y: 71.8
  995. }, {
  996. x: 193.5,
  997. y: 80.7
  998. }, {
  999. x: 186.5,
  1000. y: 72.6
  1001. }, {
  1002. x: 187.2,
  1003. y: 78.8
  1004. }, {
  1005. x: 181.5,
  1006. y: 74.8
  1007. }, {
  1008. x: 184,
  1009. y: 86.4
  1010. }, {
  1011. x: 184.5,
  1012. y: 78.4
  1013. }, {
  1014. x: 175,
  1015. y: 62
  1016. }, {
  1017. x: 184,
  1018. y: 81.6
  1019. }, {
  1020. x: 180,
  1021. y: 76.6
  1022. }, {
  1023. x: 177.8,
  1024. y: 83.6
  1025. }, {
  1026. x: 192,
  1027. y: 90
  1028. }, {
  1029. x: 176,
  1030. y: 74.6
  1031. }, {
  1032. x: 174,
  1033. y: 71
  1034. }, {
  1035. x: 184,
  1036. y: 79.6
  1037. }, {
  1038. x: 192.7,
  1039. y: 93.8
  1040. }, {
  1041. x: 171.5,
  1042. y: 70
  1043. }, {
  1044. x: 173,
  1045. y: 72.4
  1046. }, {
  1047. x: 176,
  1048. y: 85.9
  1049. }, {
  1050. x: 176,
  1051. y: 78.8
  1052. }, {
  1053. x: 180.5,
  1054. y: 77.8
  1055. }, {
  1056. x: 172.7,
  1057. y: 66.2
  1058. }, {
  1059. x: 176,
  1060. y: 86.4
  1061. }, {
  1062. x: 173.5,
  1063. y: 81.8
  1064. }, {
  1065. x: 178,
  1066. y: 89.6
  1067. }, {
  1068. x: 180.3,
  1069. y: 82.8
  1070. }, {
  1071. x: 180.3,
  1072. y: 76.4
  1073. }, {
  1074. x: 164.5,
  1075. y: 63.2
  1076. }, {
  1077. x: 173,
  1078. y: 60.9
  1079. }, {
  1080. x: 183.5,
  1081. y: 74.8
  1082. }, {
  1083. x: 175.5,
  1084. y: 70
  1085. }, {
  1086. x: 188,
  1087. y: 72.4
  1088. }, {
  1089. x: 189.2,
  1090. y: 84.1
  1091. }, {
  1092. x: 172.8,
  1093. y: 69.1
  1094. }, {
  1095. x: 170,
  1096. y: 59.5
  1097. }, {
  1098. x: 182,
  1099. y: 67.2
  1100. }, {
  1101. x: 170,
  1102. y: 61.3
  1103. }, {
  1104. x: 177.8,
  1105. y: 68.6
  1106. }, {
  1107. x: 184.2,
  1108. y: 80.1
  1109. }, {
  1110. x: 186.7,
  1111. y: 87.8
  1112. }, {
  1113. x: 171.4,
  1114. y: 84.7
  1115. }, {
  1116. x: 172.7,
  1117. y: 73.4
  1118. }, {
  1119. x: 175.3,
  1120. y: 72.1
  1121. }, {
  1122. x: 180.3,
  1123. y: 82.6
  1124. }, {
  1125. x: 182.9,
  1126. y: 88.7
  1127. }, {
  1128. x: 188,
  1129. y: 84.1
  1130. }, {
  1131. x: 177.2,
  1132. y: 94.1
  1133. }, {
  1134. x: 172.1,
  1135. y: 74.9
  1136. }, {
  1137. x: 167,
  1138. y: 59.1
  1139. }, {
  1140. x: 169.5,
  1141. y: 75.6
  1142. }, {
  1143. x: 174,
  1144. y: 86.2
  1145. }, {
  1146. x: 172.7,
  1147. y: 75.3
  1148. }, {
  1149. x: 182.2,
  1150. y: 87.1
  1151. }, {
  1152. x: 164.1,
  1153. y: 55.2
  1154. }, {
  1155. x: 163,
  1156. y: 57
  1157. }, {
  1158. x: 171.5,
  1159. y: 61.4
  1160. }, {
  1161. x: 184.2,
  1162. y: 76.8
  1163. }, {
  1164. x: 174,
  1165. y: 86.8
  1166. }, {
  1167. x: 174,
  1168. y: 72.2
  1169. }, {
  1170. x: 177,
  1171. y: 71.6
  1172. }, {
  1173. x: 186,
  1174. y: 84.8
  1175. }, {
  1176. x: 167,
  1177. y: 68.2
  1178. }, {
  1179. x: 171.8,
  1180. y: 66.1
  1181. }, {
  1182. x: 182,
  1183. y: 72
  1184. }, {
  1185. x: 167,
  1186. y: 64.6
  1187. }, {
  1188. x: 177.8,
  1189. y: 74.8
  1190. }, {
  1191. x: 164.5,
  1192. y: 70
  1193. }, {
  1194. x: 192,
  1195. y: 101.6
  1196. }, {
  1197. x: 175.5,
  1198. y: 63.2
  1199. }, {
  1200. x: 171.2,
  1201. y: 79.1
  1202. }, {
  1203. x: 181.6,
  1204. y: 78.9
  1205. }, {
  1206. x: 167.4,
  1207. y: 67.7
  1208. }, {
  1209. x: 181.1,
  1210. y: 66
  1211. }, {
  1212. x: 177,
  1213. y: 68.2
  1214. }, {
  1215. x: 174.5,
  1216. y: 63.9
  1217. }, {
  1218. x: 177.5,
  1219. y: 72
  1220. }, {
  1221. x: 170.5,
  1222. y: 56.8
  1223. }, {
  1224. x: 182.4,
  1225. y: 74.5
  1226. }, {
  1227. x: 197.1,
  1228. y: 90.9
  1229. }, {
  1230. x: 180.1,
  1231. y: 93
  1232. }, {
  1233. x: 175.5,
  1234. y: 80.9
  1235. }, {
  1236. x: 180.6,
  1237. y: 72.7
  1238. }, {
  1239. x: 184.4,
  1240. y: 68
  1241. }, {
  1242. x: 175.5,
  1243. y: 70.9
  1244. }, {
  1245. x: 180.6,
  1246. y: 72.5
  1247. }, {
  1248. x: 177,
  1249. y: 72.5
  1250. }, {
  1251. x: 177.1,
  1252. y: 83.4
  1253. }, {
  1254. x: 181.6,
  1255. y: 75.5
  1256. }, {
  1257. x: 176.5,
  1258. y: 73
  1259. }, {
  1260. x: 175,
  1261. y: 70.2
  1262. }, {
  1263. x: 174,
  1264. y: 73.4
  1265. }, {
  1266. x: 165.1,
  1267. y: 70.5
  1268. }, {
  1269. x: 177,
  1270. y: 68.9
  1271. }, {
  1272. x: 192,
  1273. y: 102.3
  1274. }, {
  1275. x: 176.5,
  1276. y: 68.4
  1277. }, {
  1278. x: 169.4,
  1279. y: 65.9
  1280. }, {
  1281. x: 182.1,
  1282. y: 75.7
  1283. }, {
  1284. x: 179.8,
  1285. y: 84.5
  1286. }, {
  1287. x: 175.3,
  1288. y: 87.7
  1289. }, {
  1290. x: 184.9,
  1291. y: 86.4
  1292. }, {
  1293. x: 177.3,
  1294. y: 73.2
  1295. }, {
  1296. x: 167.4,
  1297. y: 53.9
  1298. }, {
  1299. x: 178.1,
  1300. y: 72
  1301. }, {
  1302. x: 168.9,
  1303. y: 55.5
  1304. }, {
  1305. x: 157.2,
  1306. y: 58.4
  1307. }, {
  1308. x: 180.3,
  1309. y: 83.2
  1310. }, {
  1311. x: 170.2,
  1312. y: 72.7
  1313. }, {
  1314. x: 177.8,
  1315. y: 64.1
  1316. }, {
  1317. x: 172.7,
  1318. y: 72.3
  1319. }, {
  1320. x: 165.1,
  1321. y: 65
  1322. }, {
  1323. x: 186.7,
  1324. y: 86.4
  1325. }, {
  1326. x: 165.1,
  1327. y: 65
  1328. }, {
  1329. x: 174,
  1330. y: 88.6
  1331. }, {
  1332. x: 175.3,
  1333. y: 84.1
  1334. }, {
  1335. x: 185.4,
  1336. y: 66.8
  1337. }, {
  1338. x: 177.8,
  1339. y: 75.5
  1340. }, {
  1341. x: 180.3,
  1342. y: 93.2
  1343. }, {
  1344. x: 180.3,
  1345. y: 82.7
  1346. }, {
  1347. x: 177.8,
  1348. y: 58
  1349. }, {
  1350. x: 177.8,
  1351. y: 79.5
  1352. }, {
  1353. x: 177.8,
  1354. y: 78.6
  1355. }, {
  1356. x: 177.8,
  1357. y: 71.8
  1358. }, {
  1359. x: 177.8,
  1360. y: 116.4
  1361. }, {
  1362. x: 163.8,
  1363. y: 72.2
  1364. }, {
  1365. x: 188,
  1366. y: 83.6
  1367. }, {
  1368. x: 198.1,
  1369. y: 85.5
  1370. }, {
  1371. x: 175.3,
  1372. y: 90.9
  1373. }, {
  1374. x: 166.4,
  1375. y: 85.9
  1376. }, {
  1377. x: 190.5,
  1378. y: 89.1
  1379. }, {
  1380. x: 166.4,
  1381. y: 75
  1382. }, {
  1383. x: 177.8,
  1384. y: 77.7
  1385. }, {
  1386. x: 179.7,
  1387. y: 86.4
  1388. }, {
  1389. x: 172.7,
  1390. y: 90.9
  1391. }, {
  1392. x: 190.5,
  1393. y: 73.6
  1394. }, {
  1395. x: 185.4,
  1396. y: 76.4
  1397. }, {
  1398. x: 168.9,
  1399. y: 69.1
  1400. }, {
  1401. x: 167.6,
  1402. y: 84.5
  1403. }, {
  1404. x: 175.3,
  1405. y: 64.5
  1406. }, {
  1407. x: 170.2,
  1408. y: 69.1
  1409. }, {
  1410. x: 190.5,
  1411. y: 108.6
  1412. }, {
  1413. x: 177.8,
  1414. y: 86.4
  1415. }, {
  1416. x: 190.5,
  1417. y: 80.9
  1418. }, {
  1419. x: 177.8,
  1420. y: 87.7
  1421. }, {
  1422. x: 184.2,
  1423. y: 94.5
  1424. }, {
  1425. x: 176.5,
  1426. y: 80.2
  1427. }, {
  1428. x: 177.8,
  1429. y: 72
  1430. }, {
  1431. x: 180.3,
  1432. y: 71.4
  1433. }, {
  1434. x: 171.4,
  1435. y: 72.7
  1436. }, {
  1437. x: 172.7,
  1438. y: 84.1
  1439. }, {
  1440. x: 172.7,
  1441. y: 76.8
  1442. }, {
  1443. x: 177.8,
  1444. y: 63.6
  1445. }, {
  1446. x: 177.8,
  1447. y: 80.9
  1448. }, {
  1449. x: 182.9,
  1450. y: 80.9
  1451. }, {
  1452. x: 170.2,
  1453. y: 85.5
  1454. }, {
  1455. x: 167.6,
  1456. y: 68.6
  1457. }, {
  1458. x: 175.3,
  1459. y: 67.7
  1460. }, {
  1461. x: 165.1,
  1462. y: 66.4
  1463. }, {
  1464. x: 185.4,
  1465. y: 102.3
  1466. }, {
  1467. x: 181.6,
  1468. y: 70.5
  1469. }, {
  1470. x: 172.7,
  1471. y: 95.9
  1472. }, {
  1473. x: 190.5,
  1474. y: 84.1
  1475. }, {
  1476. x: 179.1,
  1477. y: 87.3
  1478. }, {
  1479. x: 175.3,
  1480. y: 71.8
  1481. }, {
  1482. x: 170.2,
  1483. y: 65.9
  1484. }, {
  1485. x: 193,
  1486. y: 95.9
  1487. }, {
  1488. x: 171.4,
  1489. y: 91.4
  1490. }, {
  1491. x: 177.8,
  1492. y: 81.8
  1493. }, {
  1494. x: 177.8,
  1495. y: 96.8
  1496. }, {
  1497. x: 167.6,
  1498. y: 69.1
  1499. }, {
  1500. x: 167.6,
  1501. y: 82.7
  1502. }, {
  1503. x: 180.3,
  1504. y: 75.5
  1505. }, {
  1506. x: 182.9,
  1507. y: 79.5
  1508. }, {
  1509. x: 176.5,
  1510. y: 73.6
  1511. }, {
  1512. x: 186.7,
  1513. y: 91.8
  1514. }, {
  1515. x: 188,
  1516. y: 84.1
  1517. }, {
  1518. x: 188,
  1519. y: 85.9
  1520. }, {
  1521. x: 177.8,
  1522. y: 81.8
  1523. }, {
  1524. x: 174,
  1525. y: 82.5
  1526. }, {
  1527. x: 177.8,
  1528. y: 80.5
  1529. }, {
  1530. x: 171.4,
  1531. y: 70
  1532. }, {
  1533. x: 185.4,
  1534. y: 81.8
  1535. }, {
  1536. x: 185.4,
  1537. y: 84.1
  1538. }, {
  1539. x: 188,
  1540. y: 90.5
  1541. }, {
  1542. x: 188,
  1543. y: 91.4
  1544. }, {
  1545. x: 182.9,
  1546. y: 89.1
  1547. }, {
  1548. x: 176.5,
  1549. y: 85
  1550. }, {
  1551. x: 175.3,
  1552. y: 69.1
  1553. }, {
  1554. x: 175.3,
  1555. y: 73.6
  1556. }, {
  1557. x: 188,
  1558. y: 80.5
  1559. }, {
  1560. x: 188,
  1561. y: 82.7
  1562. }, {
  1563. x: 175.3,
  1564. y: 86.4
  1565. }, {
  1566. x: 170.5,
  1567. y: 67.7
  1568. }, {
  1569. x: 179.1,
  1570. y: 92.7
  1571. }, {
  1572. x: 177.8,
  1573. y: 93.6
  1574. }, {
  1575. x: 175.3,
  1576. y: 70.9
  1577. }, {
  1578. x: 182.9,
  1579. y: 75
  1580. }, {
  1581. x: 170.8,
  1582. y: 93.2
  1583. }, {
  1584. x: 188,
  1585. y: 93.2
  1586. }, {
  1587. x: 180.3,
  1588. y: 77.7
  1589. }, {
  1590. x: 177.8,
  1591. y: 61.4
  1592. }, {
  1593. x: 185.4,
  1594. y: 94.1
  1595. }, {
  1596. x: 168.9,
  1597. y: 75
  1598. }, {
  1599. x: 185.4,
  1600. y: 83.6
  1601. }, {
  1602. x: 180.3,
  1603. y: 85.5
  1604. }, {
  1605. x: 174,
  1606. y: 73.9
  1607. }, {
  1608. x: 167.6,
  1609. y: 66.8
  1610. }, {
  1611. x: 182.9,
  1612. y: 87.3
  1613. }, {
  1614. x: 160,
  1615. y: 72.3
  1616. }, {
  1617. x: 180.3,
  1618. y: 88.6
  1619. }, {
  1620. x: 167.6,
  1621. y: 75.5
  1622. }, {
  1623. x: 186.7,
  1624. y: 101.4
  1625. }, {
  1626. x: 175.3,
  1627. y: 91.1
  1628. }, {
  1629. x: 175.3,
  1630. y: 67.3
  1631. }, {
  1632. x: 175.9,
  1633. y: 77.7
  1634. }, {
  1635. x: 175.3,
  1636. y: 81.8
  1637. }, {
  1638. x: 179.1,
  1639. y: 75.5
  1640. }, {
  1641. x: 181.6,
  1642. y: 84.5
  1643. }, {
  1644. x: 177.8,
  1645. y: 76.6
  1646. }, {
  1647. x: 182.9,
  1648. y: 85
  1649. }, {
  1650. x: 177.8,
  1651. y: 102.5
  1652. }, {
  1653. x: 184.2,
  1654. y: 77.3
  1655. }, {
  1656. x: 179.1,
  1657. y: 71.8
  1658. }, {
  1659. x: 176.5,
  1660. y: 87.9
  1661. }, {
  1662. x: 188,
  1663. y: 94.3
  1664. }, {
  1665. x: 174,
  1666. y: 70.9
  1667. }, {
  1668. x: 167.6,
  1669. y: 64.5
  1670. }, {
  1671. x: 170.2,
  1672. y: 77.3
  1673. }, {
  1674. x: 167.6,
  1675. y: 72.3
  1676. }, {
  1677. x: 188,
  1678. y: 87.3
  1679. }, {
  1680. x: 174,
  1681. y: 80
  1682. }, {
  1683. x: 176.5,
  1684. y: 82.3
  1685. }, {
  1686. x: 180.3,
  1687. y: 73.6
  1688. }, {
  1689. x: 167.6,
  1690. y: 74.1
  1691. }, {
  1692. x: 188,
  1693. y: 85.9
  1694. }, {
  1695. x: 180.3,
  1696. y: 73.2
  1697. }, {
  1698. x: 167.6,
  1699. y: 76.3
  1700. }, {
  1701. x: 183,
  1702. y: 65.9
  1703. }, {
  1704. x: 183,
  1705. y: 90.9
  1706. }, {
  1707. x: 179.1,
  1708. y: 89.1
  1709. }, {
  1710. x: 170.2,
  1711. y: 62.3
  1712. }, {
  1713. x: 177.8,
  1714. y: 82.7
  1715. }, {
  1716. x: 179.1,
  1717. y: 79.1
  1718. }, {
  1719. x: 190.5,
  1720. y: 98.2
  1721. }, {
  1722. x: 177.8,
  1723. y: 84.1
  1724. }, {
  1725. x: 180.3,
  1726. y: 83.2
  1727. }, {
  1728. x: 180.3,
  1729. y: 83.2
  1730. }]
  1731. }, {
  1732. name: 'female',
  1733. data: [{
  1734. x: 161.2,
  1735. y: 51.6
  1736. }, {
  1737. x: 167.5,
  1738. y: 59
  1739. }, {
  1740. x: 159.5,
  1741. y: 49.2
  1742. }, {
  1743. x: 157,
  1744. y: 63
  1745. }, {
  1746. x: 155.8,
  1747. y: 53.6
  1748. }, {
  1749. x: 170,
  1750. y: 59
  1751. }, {
  1752. x: 159.1,
  1753. y: 47.6
  1754. }, {
  1755. x: 166,
  1756. y: 69.8
  1757. }, {
  1758. x: 176.2,
  1759. y: 66.8
  1760. }, {
  1761. x: 160.2,
  1762. y: 75.2
  1763. }, {
  1764. x: 172.5,
  1765. y: 55.2
  1766. }, {
  1767. x: 170.9,
  1768. y: 54.2
  1769. }, {
  1770. x: 172.9,
  1771. y: 62.5
  1772. }, {
  1773. x: 153.4,
  1774. y: 42
  1775. }, {
  1776. x: 160,
  1777. y: 50
  1778. }, {
  1779. x: 147.2,
  1780. y: 49.8
  1781. }, {
  1782. x: 168.2,
  1783. y: 49.2
  1784. }, {
  1785. x: 175,
  1786. y: 73.2
  1787. }, {
  1788. x: 157,
  1789. y: 47.8
  1790. }, {
  1791. x: 167.6,
  1792. y: 68.8
  1793. }, {
  1794. x: 159.5,
  1795. y: 50.6
  1796. }, {
  1797. x: 175,
  1798. y: 82.5
  1799. }, {
  1800. x: 166.8,
  1801. y: 57.2
  1802. }, {
  1803. x: 176.5,
  1804. y: 87.8
  1805. }, {
  1806. x: 170.2,
  1807. y: 72.8
  1808. }, {
  1809. x: 174,
  1810. y: 54.5
  1811. }, {
  1812. x: 173,
  1813. y: 59.8
  1814. }, {
  1815. x: 179.9,
  1816. y: 67.3
  1817. }, {
  1818. x: 170.5,
  1819. y: 67.8
  1820. }, {
  1821. x: 160,
  1822. y: 47
  1823. }, {
  1824. x: 154.4,
  1825. y: 46.2
  1826. }, {
  1827. x: 162,
  1828. y: 55
  1829. }, {
  1830. x: 176.5,
  1831. y: 83
  1832. }, {
  1833. x: 160,
  1834. y: 54.4
  1835. }, {
  1836. x: 152,
  1837. y: 45.8
  1838. }, {
  1839. x: 162.1,
  1840. y: 53.6
  1841. }, {
  1842. x: 170,
  1843. y: 73.2
  1844. }, {
  1845. x: 160.2,
  1846. y: 52.1
  1847. }, {
  1848. x: 161.3,
  1849. y: 67.9
  1850. }, {
  1851. x: 166.4,
  1852. y: 56.6
  1853. }, {
  1854. x: 168.9,
  1855. y: 62.3
  1856. }, {
  1857. x: 163.8,
  1858. y: 58.5
  1859. }, {
  1860. x: 167.6,
  1861. y: 54.5
  1862. }, {
  1863. x: 160,
  1864. y: 50.2
  1865. }, {
  1866. x: 161.3,
  1867. y: 60.3
  1868. }, {
  1869. x: 167.6,
  1870. y: 58.3
  1871. }, {
  1872. x: 165.1,
  1873. y: 56.2
  1874. }, {
  1875. x: 160,
  1876. y: 50.2
  1877. }, {
  1878. x: 170,
  1879. y: 72.9
  1880. }, {
  1881. x: 157.5,
  1882. y: 59.8
  1883. }, {
  1884. x: 167.6,
  1885. y: 61
  1886. }, {
  1887. x: 160.7,
  1888. y: 69.1
  1889. }, {
  1890. x: 163.2,
  1891. y: 55.9
  1892. }, {
  1893. x: 152.4,
  1894. y: 46.5
  1895. }, {
  1896. x: 157.5,
  1897. y: 54.3
  1898. }, {
  1899. x: 168.3,
  1900. y: 54.8
  1901. }, {
  1902. x: 180.3,
  1903. y: 60.7
  1904. }, {
  1905. x: 165.5,
  1906. y: 60
  1907. }, {
  1908. x: 165,
  1909. y: 62
  1910. }, {
  1911. x: 164.5,
  1912. y: 60.3
  1913. }, {
  1914. x: 156,
  1915. y: 52.7
  1916. }, {
  1917. x: 160,
  1918. y: 74.3
  1919. }, {
  1920. x: 163,
  1921. y: 62
  1922. }, {
  1923. x: 165.7,
  1924. y: 73.1
  1925. }, {
  1926. x: 161,
  1927. y: 80
  1928. }, {
  1929. x: 162,
  1930. y: 54.7
  1931. }, {
  1932. x: 166,
  1933. y: 53.2
  1934. }, {
  1935. x: 174,
  1936. y: 75.7
  1937. }, {
  1938. x: 172.7,
  1939. y: 61.1
  1940. }, {
  1941. x: 167.6,
  1942. y: 55.7
  1943. }, {
  1944. x: 151.1,
  1945. y: 48.7
  1946. }, {
  1947. x: 164.5,
  1948. y: 52.3
  1949. }, {
  1950. x: 163.5,
  1951. y: 50
  1952. }, {
  1953. x: 152,
  1954. y: 59.3
  1955. }, {
  1956. x: 169,
  1957. y: 62.5
  1958. }, {
  1959. x: 164,
  1960. y: 55.7
  1961. }, {
  1962. x: 161.2,
  1963. y: 54.8
  1964. }, {
  1965. x: 155,
  1966. y: 45.9
  1967. }, {
  1968. x: 170,
  1969. y: 70.6
  1970. }, {
  1971. x: 176.2,
  1972. y: 67.2
  1973. }, {
  1974. x: 170,
  1975. y: 69.4
  1976. }, {
  1977. x: 162.5,
  1978. y: 58.2
  1979. }, {
  1980. x: 170.3,
  1981. y: 64.8
  1982. }, {
  1983. x: 164.1,
  1984. y: 71.6
  1985. }, {
  1986. x: 169.5,
  1987. y: 52.8
  1988. }, {
  1989. x: 163.2,
  1990. y: 59.8
  1991. }, {
  1992. x: 154.5,
  1993. y: 49
  1994. }, {
  1995. x: 159.8,
  1996. y: 50
  1997. }, {
  1998. x: 173.2,
  1999. y: 69.2
  2000. }, {
  2001. x: 170,
  2002. y: 55.9
  2003. }, {
  2004. x: 161.4,
  2005. y: 63.4
  2006. }, {
  2007. x: 169,
  2008. y: 58.2
  2009. }, {
  2010. x: 166.2,
  2011. y: 58.6
  2012. }, {
  2013. x: 159.4,
  2014. y: 45.7
  2015. }, {
  2016. x: 162.5,
  2017. y: 52.2
  2018. }, {
  2019. x: 159,
  2020. y: 48.6
  2021. }, {
  2022. x: 162.8,
  2023. y: 57.8
  2024. }, {
  2025. x: 159,
  2026. y: 55.6
  2027. }, {
  2028. x: 179.8,
  2029. y: 66.8
  2030. }, {
  2031. x: 162.9,
  2032. y: 59.4
  2033. }, {
  2034. x: 161,
  2035. y: 53.6
  2036. }, {
  2037. x: 151.1,
  2038. y: 73.2
  2039. }, {
  2040. x: 168.2,
  2041. y: 53.4
  2042. }, {
  2043. x: 168.9,
  2044. y: 69
  2045. }, {
  2046. x: 173.2,
  2047. y: 58.4
  2048. }, {
  2049. x: 171.8,
  2050. y: 56.2
  2051. }, {
  2052. x: 178,
  2053. y: 70.6
  2054. }, {
  2055. x: 164.3,
  2056. y: 59.8
  2057. }, {
  2058. x: 163,
  2059. y: 72
  2060. }, {
  2061. x: 168.5,
  2062. y: 65.2
  2063. }, {
  2064. x: 166.8,
  2065. y: 56.6
  2066. }, {
  2067. x: 172.7,
  2068. y: 105.2
  2069. }, {
  2070. x: 163.5,
  2071. y: 51.8
  2072. }, {
  2073. x: 169.4,
  2074. y: 63.4
  2075. }, {
  2076. x: 167.8,
  2077. y: 59
  2078. }, {
  2079. x: 159.5,
  2080. y: 47.6
  2081. }, {
  2082. x: 167.6,
  2083. y: 63
  2084. }, {
  2085. x: 161.2,
  2086. y: 55.2
  2087. }, {
  2088. x: 160,
  2089. y: 45
  2090. }, {
  2091. x: 163.2,
  2092. y: 54
  2093. }, {
  2094. x: 162.2,
  2095. y: 50.2
  2096. }, {
  2097. x: 161.3,
  2098. y: 60.2
  2099. }, {
  2100. x: 149.5,
  2101. y: 44.8
  2102. }, {
  2103. x: 157.5,
  2104. y: 58.8
  2105. }, {
  2106. x: 163.2,
  2107. y: 56.4
  2108. }, {
  2109. x: 172.7,
  2110. y: 62
  2111. }, {
  2112. x: 155,
  2113. y: 49.2
  2114. }, {
  2115. x: 156.5,
  2116. y: 67.2
  2117. }, {
  2118. x: 164,
  2119. y: 53.8
  2120. }, {
  2121. x: 160.9,
  2122. y: 54.4
  2123. }, {
  2124. x: 162.8,
  2125. y: 58
  2126. }, {
  2127. x: 167,
  2128. y: 59.8
  2129. }, {
  2130. x: 160,
  2131. y: 54.8
  2132. }, {
  2133. x: 160,
  2134. y: 43.2
  2135. }, {
  2136. x: 168.9,
  2137. y: 60.5
  2138. }, {
  2139. x: 158.2,
  2140. y: 46.4
  2141. }, {
  2142. x: 156,
  2143. y: 64.4
  2144. }, {
  2145. x: 160,
  2146. y: 48.8
  2147. }, {
  2148. x: 167.1,
  2149. y: 62.2
  2150. }, {
  2151. x: 158,
  2152. y: 55.5
  2153. }, {
  2154. x: 167.6,
  2155. y: 57.8
  2156. }, {
  2157. x: 156,
  2158. y: 54.6
  2159. }, {
  2160. x: 162.1,
  2161. y: 59.2
  2162. }, {
  2163. x: 173.4,
  2164. y: 52.7
  2165. }, {
  2166. x: 159.8,
  2167. y: 53.2
  2168. }, {
  2169. x: 170.5,
  2170. y: 64.5
  2171. }, {
  2172. x: 159.2,
  2173. y: 51.8
  2174. }, {
  2175. x: 157.5,
  2176. y: 56
  2177. }, {
  2178. x: 161.3,
  2179. y: 63.6
  2180. }, {
  2181. x: 162.6,
  2182. y: 63.2
  2183. }, {
  2184. x: 160,
  2185. y: 59.5
  2186. }, {
  2187. x: 168.9,
  2188. y: 56.8
  2189. }, {
  2190. x: 165.1,
  2191. y: 64.1
  2192. }, {
  2193. x: 162.6,
  2194. y: 50
  2195. }, {
  2196. x: 165.1,
  2197. y: 72.3
  2198. }, {
  2199. x: 166.4,
  2200. y: 55
  2201. }, {
  2202. x: 160,
  2203. y: 55.9
  2204. }, {
  2205. x: 152.4,
  2206. y: 60.4
  2207. }, {
  2208. x: 170.2,
  2209. y: 69.1
  2210. }, {
  2211. x: 162.6,
  2212. y: 84.5
  2213. }, {
  2214. x: 170.2,
  2215. y: 55.9
  2216. }, {
  2217. x: 158.8,
  2218. y: 55.5
  2219. }, {
  2220. x: 172.7,
  2221. y: 69.5
  2222. }, {
  2223. x: 167.6,
  2224. y: 76.4
  2225. }, {
  2226. x: 162.6,
  2227. y: 61.4
  2228. }, {
  2229. x: 167.6,
  2230. y: 65.9
  2231. }, {
  2232. x: 156.2,
  2233. y: 58.6
  2234. }, {
  2235. x: 175.2,
  2236. y: 66.8
  2237. }, {
  2238. x: 172.1,
  2239. y: 56.6
  2240. }, {
  2241. x: 162.6,
  2242. y: 58.6
  2243. }, {
  2244. x: 160,
  2245. y: 55.9
  2246. }, {
  2247. x: 165.1,
  2248. y: 59.1
  2249. }, {
  2250. x: 182.9,
  2251. y: 81.8
  2252. }, {
  2253. x: 166.4,
  2254. y: 70.7
  2255. }, {
  2256. x: 165.1,
  2257. y: 56.8
  2258. }, {
  2259. x: 177.8,
  2260. y: 60
  2261. }, {
  2262. x: 165.1,
  2263. y: 58.2
  2264. }, {
  2265. x: 175.3,
  2266. y: 72.7
  2267. }, {
  2268. x: 154.9,
  2269. y: 54.1
  2270. }, {
  2271. x: 158.8,
  2272. y: 49.1
  2273. }, {
  2274. x: 172.7,
  2275. y: 75.9
  2276. }, {
  2277. x: 168.9,
  2278. y: 55
  2279. }, {
  2280. x: 161.3,
  2281. y: 57.3
  2282. }, {
  2283. x: 167.6,
  2284. y: 55
  2285. }, {
  2286. x: 165.1,
  2287. y: 65.5
  2288. }, {
  2289. x: 175.3,
  2290. y: 65.5
  2291. }, {
  2292. x: 157.5,
  2293. y: 48.6
  2294. }, {
  2295. x: 163.8,
  2296. y: 58.6
  2297. }, {
  2298. x: 167.6,
  2299. y: 63.6
  2300. }, {
  2301. x: 165.1,
  2302. y: 55.2
  2303. }, {
  2304. x: 165.1,
  2305. y: 62.7
  2306. }, {
  2307. x: 168.9,
  2308. y: 56.6
  2309. }, {
  2310. x: 162.6,
  2311. y: 53.9
  2312. }, {
  2313. x: 164.5,
  2314. y: 63.2
  2315. }, {
  2316. x: 176.5,
  2317. y: 73.6
  2318. }, {
  2319. x: 168.9,
  2320. y: 62
  2321. }, {
  2322. x: 175.3,
  2323. y: 63.6
  2324. }, {
  2325. x: 159.4,
  2326. y: 53.2
  2327. }, {
  2328. x: 160,
  2329. y: 53.4
  2330. }, {
  2331. x: 170.2,
  2332. y: 55
  2333. }, {
  2334. x: 162.6,
  2335. y: 70.5
  2336. }, {
  2337. x: 167.6,
  2338. y: 54.5
  2339. }, {
  2340. x: 162.6,
  2341. y: 54.5
  2342. }, {
  2343. x: 160.7,
  2344. y: 55.9
  2345. }, {
  2346. x: 160,
  2347. y: 59
  2348. }, {
  2349. x: 157.5,
  2350. y: 63.6
  2351. }, {
  2352. x: 162.6,
  2353. y: 54.5
  2354. }, {
  2355. x: 152.4,
  2356. y: 47.3
  2357. }, {
  2358. x: 170.2,
  2359. y: 67.7
  2360. }, {
  2361. x: 165.1,
  2362. y: 80.9
  2363. }, {
  2364. x: 172.7,
  2365. y: 70.5
  2366. }, {
  2367. x: 165.1,
  2368. y: 60.9
  2369. }, {
  2370. x: 170.2,
  2371. y: 63.6
  2372. }, {
  2373. x: 170.2,
  2374. y: 54.5
  2375. }, {
  2376. x: 170.2,
  2377. y: 59.1
  2378. }, {
  2379. x: 161.3,
  2380. y: 70.5
  2381. }, {
  2382. x: 167.6,
  2383. y: 52.7
  2384. }, {
  2385. x: 167.6,
  2386. y: 62.7
  2387. }, {
  2388. x: 165.1,
  2389. y: 86.3
  2390. }, {
  2391. x: 162.6,
  2392. y: 66.4
  2393. }, {
  2394. x: 152.4,
  2395. y: 67.3
  2396. }, {
  2397. x: 168.9,
  2398. y: 63
  2399. }, {
  2400. x: 170.2,
  2401. y: 73.6
  2402. }, {
  2403. x: 175.2,
  2404. y: 62.3
  2405. }, {
  2406. x: 175.2,
  2407. y: 57.7
  2408. }, {
  2409. x: 160,
  2410. y: 55.4
  2411. }, {
  2412. x: 165.1,
  2413. y: 104.1
  2414. }, {
  2415. x: 174,
  2416. y: 55.5
  2417. }, {
  2418. x: 170.2,
  2419. y: 77.3
  2420. }, {
  2421. x: 160,
  2422. y: 80.5
  2423. }, {
  2424. x: 167.6,
  2425. y: 64.5
  2426. }, {
  2427. x: 167.6,
  2428. y: 72.3
  2429. }, {
  2430. x: 167.6,
  2431. y: 61.4
  2432. }, {
  2433. x: 154.9,
  2434. y: 58.2
  2435. }, {
  2436. x: 162.6,
  2437. y: 81.8
  2438. }, {
  2439. x: 175.3,
  2440. y: 63.6
  2441. }, {
  2442. x: 171.4,
  2443. y: 53.4
  2444. }, {
  2445. x: 157.5,
  2446. y: 54.5
  2447. }, {
  2448. x: 165.1,
  2449. y: 53.6
  2450. }, {
  2451. x: 160,
  2452. y: 60
  2453. }, {
  2454. x: 174,
  2455. y: 73.6
  2456. }, {
  2457. x: 162.6,
  2458. y: 61.4
  2459. }, {
  2460. x: 174,
  2461. y: 55.5
  2462. }, {
  2463. x: 162.6,
  2464. y: 63.6
  2465. }, {
  2466. x: 161.3,
  2467. y: 60.9
  2468. }, {
  2469. x: 156.2,
  2470. y: 60
  2471. }, {
  2472. x: 149.9,
  2473. y: 46.8
  2474. }, {
  2475. x: 169.5,
  2476. y: 57.3
  2477. }, {
  2478. x: 160,
  2479. y: 64.1
  2480. }, {
  2481. x: 175.3,
  2482. y: 63.6
  2483. }, {
  2484. x: 169.5,
  2485. y: 67.3
  2486. }, {
  2487. x: 160,
  2488. y: 75.5
  2489. }, {
  2490. x: 172.7,
  2491. y: 68.2
  2492. }, {
  2493. x: 162.6,
  2494. y: 61.4
  2495. }, {
  2496. x: 157.5,
  2497. y: 76.8
  2498. }, {
  2499. x: 176.5,
  2500. y: 71.8
  2501. }, {
  2502. x: 164.4,
  2503. y: 55.5
  2504. }, {
  2505. x: 160.7,
  2506. y: 48.6
  2507. }, {
  2508. x: 174,
  2509. y: 66.4
  2510. }, {
  2511. x: 163.8,
  2512. y: 67.3
  2513. }]
  2514. }]
  2515. };
  2516. var options = {
  2517. chart: {
  2518. width: scatterChartWidth,
  2519. height: 380,
  2520. title: 'Height vs Weight'
  2521. },
  2522. yAxis: {
  2523. title: 'Weight (kg)'
  2524. },
  2525. xAxis: {
  2526. title: 'Height (cm)'
  2527. },
  2528. tooltip: {
  2529. template: function template(category, items) {
  2530. return '<div class="tui-chart-default-tooltip">' + '<div class="tui-chart-tooltip-head">' + items.legend + '</div>' + '<table class="tui-chart-tooltip-body">' + '<tr>' + '<td>Weight</td>' + '<td class="tui-chart-tooltip-value">' + items.x + 'kg</td>' + '</tr>' + '<tr>' + '<td>Height</td>' + '<td class="tui-chart-tooltip-value">' + items.y + 'cm</td>' + '</tr>' + '</table>' + '</div>';
  2531. }
  2532. }
  2533. };
  2534. var theme = {
  2535. chart: {
  2536. background: {
  2537. color: '#fff',
  2538. opacity: 0
  2539. }
  2540. },
  2541. title: {
  2542. color: '#8791af'
  2543. },
  2544. xAxis: {
  2545. title: {
  2546. color: '#8791af'
  2547. },
  2548. label: {
  2549. color: '#8791af'
  2550. },
  2551. tickColor: '#8791af'
  2552. },
  2553. yAxis: {
  2554. title: {
  2555. color: '#8791af'
  2556. },
  2557. label: {
  2558. color: '#8791af'
  2559. },
  2560. tickColor: '#8791af'
  2561. },
  2562. plot: {
  2563. lineColor: 'rgba(166, 176, 207, 0.1)'
  2564. },
  2565. legend: {
  2566. label: {
  2567. color: '#8791af'
  2568. }
  2569. },
  2570. series: {
  2571. colors: scatterChartColors
  2572. }
  2573. }; // For apply theme
  2574. tui.chart.registerTheme('myTheme', theme);
  2575. options.theme = 'myTheme';
  2576. var scatterChart = tui.chart.scatterChart(container, data, options);
  2577. }
  2578. $(window).resize(function () {
  2579. scatterChartWidth = $("#scatter-charts").width();
  2580. scatterChart.resize({
  2581. width: scatterChartWidth,
  2582. height: 350
  2583. });
  2584. }); // Pie charts
  2585. var pieChartColors = getChartColorsArray("pie-charts");
  2586. if (pieChartColors) {
  2587. var pieChartWidth = $("#pie-charts").width();
  2588. var container = document.getElementById('pie-charts');
  2589. var data = {
  2590. categories: ['Browser'],
  2591. series: [{
  2592. name: 'Chrome',
  2593. data: 46.02
  2594. }, {
  2595. name: 'IE',
  2596. data: 20.47
  2597. }, {
  2598. name: 'Firefox',
  2599. data: 17.71
  2600. }, {
  2601. name: 'Safari',
  2602. data: 5.45
  2603. }, {
  2604. name: 'Etc',
  2605. data: 10.35
  2606. }]
  2607. };
  2608. var options = {
  2609. chart: {
  2610. width: pieChartWidth,
  2611. height: 380,
  2612. title: 'Usage share of web browsers'
  2613. },
  2614. tooltip: {
  2615. suffix: '%'
  2616. }
  2617. };
  2618. var theme = {
  2619. chart: {
  2620. background: {
  2621. color: '#fff',
  2622. opacity: 0
  2623. }
  2624. },
  2625. title: {
  2626. color: '#8791af'
  2627. },
  2628. plot: {
  2629. lineColor: 'rgba(166, 176, 207, 0.1)'
  2630. },
  2631. legend: {
  2632. label: {
  2633. color: '#8791af'
  2634. }
  2635. },
  2636. series: {
  2637. colors: pieChartColors
  2638. }
  2639. }; // For apply theme
  2640. tui.chart.registerTheme('myTheme', theme);
  2641. options.theme = 'myTheme';
  2642. var pieChart = tui.chart.pieChart(container, data, options);
  2643. }
  2644. $(window).resize(function () {
  2645. pieChartWidth = $("#pie-charts").width();
  2646. pieChart.resize({
  2647. width: pieChartWidth,
  2648. height: 350
  2649. });
  2650. }); // Donut pie chart
  2651. var donutPieChartColors = getChartColorsArray("donut-charts");
  2652. if (donutPieChartColors) {
  2653. var donutpieChartWidth = $("#donut-charts").width();
  2654. var container = document.getElementById('donut-charts');
  2655. var data = {
  2656. categories: ['Browser'],
  2657. series: [{
  2658. name: 'Chrome',
  2659. data: 46.02
  2660. }, {
  2661. name: 'IE',
  2662. data: 20.47
  2663. }, {
  2664. name: 'Firefox',
  2665. data: 17.71
  2666. }, {
  2667. name: 'Safari',
  2668. data: 5.45
  2669. }, {
  2670. name: 'Etc',
  2671. data: 10.35
  2672. }]
  2673. };
  2674. var options = {
  2675. chart: {
  2676. width: donutpieChartWidth,
  2677. height: 380,
  2678. title: 'Usage share of web browsers',
  2679. format: function format(value, chartType, areaType, valuetype, legendName) {
  2680. if (areaType === 'makingSeriesLabel') {
  2681. // formatting at series area
  2682. value = value + '%';
  2683. }
  2684. return value;
  2685. }
  2686. },
  2687. series: {
  2688. radiusRange: ['40%', '100%'],
  2689. showLabel: true
  2690. },
  2691. tooltip: {
  2692. suffix: '%'
  2693. },
  2694. legend: {
  2695. align: 'bottom'
  2696. }
  2697. };
  2698. var theme = {
  2699. chart: {
  2700. background: {
  2701. color: '#fff',
  2702. opacity: 0
  2703. }
  2704. },
  2705. title: {
  2706. color: '#8791af'
  2707. },
  2708. plot: {
  2709. lineColor: 'rgba(166, 176, 207, 0.1)'
  2710. },
  2711. legend: {
  2712. label: {
  2713. color: '#8791af'
  2714. }
  2715. },
  2716. series: {
  2717. colors: donutPieChartColors,
  2718. label: {
  2719. color: '#fff',
  2720. fontFamily: 'sans-serif'
  2721. }
  2722. }
  2723. }; // For apply theme
  2724. tui.chart.registerTheme('myTheme', theme);
  2725. options.theme = 'myTheme';
  2726. var donutChart = tui.chart.pieChart(container, data, options);
  2727. }
  2728. $(window).resize(function () {
  2729. donutpieChartWidth = $("#donut-charts").width();
  2730. donutChart.resize({
  2731. width: donutpieChartWidth,
  2732. height: 350
  2733. });
  2734. }); // Heatmap chart
  2735. var heatMapChartColors = getChartColorsArray("heatmap-charts");
  2736. if (heatMapChartColors) {
  2737. var heatmapchartsWidth = $("#heatmap-charts").width();
  2738. var container = document.getElementById('heatmap-charts');
  2739. var data = {
  2740. categories: {
  2741. x: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  2742. y: ['Seoul', 'Seattle', 'Sydney', 'Moskva', 'Jungfrau']
  2743. },
  2744. series: [[-3.5, -1.1, 4.0, 11.3, 17.5, 21.5, 24.9, 25.2, 20.4, 13.9, 6.6, -0.6], [3.8, 5.6, 7.0, 9.1, 12.4, 15.3, 17.5, 17.8, 15.0, 10.6, 6.4, 3.7], [22.1, 22.0, 20.9, 18.3, 15.2, 12.8, 11.8, 13.0, 15.2, 17.6, 19.4, 21.2], [-10.3, -9.1, -4.1, 4.4, 12.2, 16.3, 18.5, 16.7, 10.9, 4.2, -2.0, -7.5], [-13.2, -13.7, -13.1, -10.3, -6.1, -3.2, 0.0, -0.1, -1.8, -4.5, -9.0, -10.9]]
  2745. };
  2746. var options = {
  2747. chart: {
  2748. width: heatmapchartsWidth,
  2749. height: 380,
  2750. title: '24-hr Average Temperature'
  2751. },
  2752. yAxis: {
  2753. title: 'City'
  2754. },
  2755. xAxis: {
  2756. title: 'Month'
  2757. },
  2758. series: {
  2759. showLabel: true
  2760. },
  2761. tooltip: {
  2762. suffix: '°C'
  2763. }
  2764. };
  2765. var theme = {
  2766. chart: {
  2767. background: {
  2768. color: '#fff',
  2769. opacity: 0
  2770. }
  2771. },
  2772. title: {
  2773. color: '#8791af'
  2774. },
  2775. xAxis: {
  2776. title: {
  2777. color: '#8791af'
  2778. },
  2779. label: {
  2780. color: '#8791af'
  2781. },
  2782. tickColor: '#8791af'
  2783. },
  2784. yAxis: {
  2785. title: {
  2786. color: '#8791af'
  2787. },
  2788. label: {
  2789. color: '#8791af'
  2790. },
  2791. tickColor: '#8791af'
  2792. },
  2793. plot: {
  2794. lineColor: 'rgba(166, 176, 207, 0.1)'
  2795. },
  2796. legend: {
  2797. label: {
  2798. color: '#8791af'
  2799. }
  2800. },
  2801. series: {
  2802. startColor: heatMapChartColors[0],
  2803. endColor: heatMapChartColors[1],
  2804. overColor: heatMapChartColors[1],
  2805. borderColor: heatMapChartColors[2]
  2806. }
  2807. }; // For apply theme
  2808. tui.chart.registerTheme('myTheme', theme);
  2809. options.theme = 'myTheme';
  2810. var heatmapChart = tui.chart.heatmapChart(container, data, options);
  2811. }
  2812. $(window).resize(function () {
  2813. heatmapChartChartWidth = $("#heatmap-charts").width();
  2814. heatmapChart.resize({
  2815. width: heatmapChartChartWidth,
  2816. height: 350
  2817. });
  2818. }); // Treemap chart
  2819. var treemapChartColors = getChartColorsArray("treemap-charts");
  2820. if (treemapChartColors) {
  2821. var treemapchartsWidth = $("#treemap-charts").width();
  2822. var container = document.getElementById('treemap-charts');
  2823. var data = {
  2824. series: [{
  2825. label: 'Documents',
  2826. children: [{
  2827. label: 'docs',
  2828. children: [{
  2829. label: 'pages',
  2830. value: 1.3
  2831. }, {
  2832. label: 'keynote',
  2833. value: 2.5
  2834. }, {
  2835. label: 'numbers',
  2836. value: 1.2
  2837. }]
  2838. }, {
  2839. label: 'photos',
  2840. value: 5.5
  2841. }, {
  2842. label: 'videos',
  2843. value: 20.7
  2844. }]
  2845. }, {
  2846. label: 'Downloads',
  2847. children: [{
  2848. label: 'recents',
  2849. value: 5.3
  2850. }, {
  2851. label: '2015',
  2852. value: 10.1
  2853. }, {
  2854. label: '2014',
  2855. value: 8.2
  2856. }]
  2857. }, {
  2858. label: 'Application',
  2859. value: 16.4
  2860. }, {
  2861. label: 'Desktop',
  2862. value: 4.5
  2863. }]
  2864. };
  2865. var options = {
  2866. chart: {
  2867. width: treemapchartsWidth,
  2868. height: 380,
  2869. title: 'Used disk space'
  2870. },
  2871. series: {
  2872. showLabel: true,
  2873. zoomable: false,
  2874. useLeafLabel: true
  2875. },
  2876. tooltip: {
  2877. suffix: 'GB'
  2878. }
  2879. };
  2880. var theme = {
  2881. chart: {
  2882. background: {
  2883. color: '#fff',
  2884. opacity: 0
  2885. }
  2886. },
  2887. title: {
  2888. color: '#8791af'
  2889. },
  2890. plot: {
  2891. lineColor: 'rgba(166, 176, 207, 0.1)'
  2892. },
  2893. legend: {
  2894. label: {
  2895. color: '#8791af'
  2896. }
  2897. },
  2898. series: {
  2899. colors: treemapChartColors,
  2900. borderColor: 'rgba(255, 255, 255, 0.4)',
  2901. borderWidth: 4
  2902. }
  2903. }; // For apply theme
  2904. tui.chart.registerTheme('myTheme', theme);
  2905. options.theme = 'myTheme';
  2906. var treemapChart = tui.chart.treemapChart(container, data, options);
  2907. }
  2908. $(window).resize(function () {
  2909. treemapChartChartWidth = $("#treemap-charts").width();
  2910. treemapChart.resize({
  2911. width: treemapChartChartWidth,
  2912. height: 350
  2913. });
  2914. }); // Map charts
  2915. var mapChartColors = getChartColorsArray("map-charts");
  2916. if (mapChartColors) {
  2917. var mapchartsWidth = $("#map-charts").width();
  2918. var container = document.getElementById('map-charts');
  2919. var data = {
  2920. series: [{
  2921. code: 'US-AK',
  2922. data: -3.0
  2923. }, {
  2924. code: 'US-AL',
  2925. data: 17.1
  2926. }, {
  2927. code: 'US-AZ',
  2928. data: 15.7
  2929. }, {
  2930. code: 'US-CA',
  2931. data: 15.2
  2932. }, {
  2933. code: 'US-CO',
  2934. data: 7.3
  2935. }, {
  2936. code: 'US-CT',
  2937. data: 9.4
  2938. }, {
  2939. code: 'US-DC',
  2940. data: 12.3
  2941. }, {
  2942. code: 'US-DE',
  2943. data: 12.9
  2944. }, {
  2945. code: 'US-FL',
  2946. data: 21.5
  2947. }, {
  2948. code: 'US-GA',
  2949. data: 17.5
  2950. }, {
  2951. code: 'US-HI',
  2952. data: 21.1
  2953. }, {
  2954. code: 'US-IA',
  2955. data: 8.8
  2956. }, {
  2957. code: 'US-ID',
  2958. data: 6.9
  2959. }, {
  2960. code: 'US-IL',
  2961. data: 11.0
  2962. }, {
  2963. code: 'US-IN',
  2964. data: 10.9
  2965. }, {
  2966. code: 'US-KS',
  2967. data: 12.4
  2968. }, {
  2969. code: 'US-KY',
  2970. data: 13.1
  2971. }, {
  2972. code: 'US-LA',
  2973. data: 19.1
  2974. }, {
  2975. code: 'US-MA',
  2976. data: 8.8
  2977. }, {
  2978. code: 'US-MD',
  2979. data: 12.3
  2980. }, {
  2981. code: 'US-ME',
  2982. data: 5.0
  2983. }, {
  2984. code: 'US-MI',
  2985. data: 6.9
  2986. }, {
  2987. code: 'US-MN',
  2988. data: 5.1
  2989. }, {
  2990. code: 'US-MO',
  2991. data: 12.5
  2992. }, {
  2993. code: 'US-MS',
  2994. data: 17.4
  2995. }, {
  2996. code: 'US-NC',
  2997. data: 15.0
  2998. }, {
  2999. code: 'US-ND',
  3000. data: 4.7
  3001. }, {
  3002. code: 'US-NE',
  3003. data: 9.3
  3004. }, {
  3005. code: 'US-NH',
  3006. data: 6.6
  3007. }, {
  3008. code: 'US-NJ',
  3009. data: 11.5
  3010. }, {
  3011. code: 'US-NM',
  3012. data: 11.9
  3013. }, {
  3014. code: 'US-NV',
  3015. data: 9.9
  3016. }, {
  3017. code: 'US-NY',
  3018. data: 7.4
  3019. }, {
  3020. code: 'US-OH',
  3021. data: 10.4
  3022. }, {
  3023. code: 'US-OK',
  3024. data: 15.3
  3025. }, {
  3026. code: 'US-OR',
  3027. data: 9.1
  3028. }, {
  3029. code: 'US-PA',
  3030. data: 9.3
  3031. }, {
  3032. code: 'US-RI',
  3033. data: 10.1
  3034. }, {
  3035. code: 'US-SC',
  3036. data: 16.9
  3037. }, {
  3038. code: 'US-SD',
  3039. data: 7.3
  3040. }, {
  3041. code: 'US-TN',
  3042. data: 14.2
  3043. }, {
  3044. code: 'US-TX',
  3045. data: 18.2
  3046. }, {
  3047. code: 'US-UT',
  3048. data: 9.2
  3049. }, {
  3050. code: 'US-VA',
  3051. data: 12.8
  3052. }, {
  3053. code: 'US-VT',
  3054. data: 6.1
  3055. }, {
  3056. code: 'US-WA',
  3057. data: 9.1
  3058. }, {
  3059. code: 'US-WI',
  3060. data: 11.0
  3061. }, {
  3062. code: 'US-WV',
  3063. data: 6.2
  3064. }, {
  3065. code: 'US-WY',
  3066. data: 5.6
  3067. }]
  3068. };
  3069. var options = {
  3070. chart: {
  3071. width: mapchartsWidth,
  3072. height: 380,
  3073. title: 'Average annual temperature of USA (°C)'
  3074. },
  3075. map: 'usa',
  3076. legend: {
  3077. align: 'right'
  3078. },
  3079. tooltip: {
  3080. suffix: '°C'
  3081. }
  3082. };
  3083. var theme = {
  3084. chart: {
  3085. background: {
  3086. color: '#fff',
  3087. opacity: 0
  3088. }
  3089. },
  3090. title: {
  3091. color: '#8791af'
  3092. },
  3093. legend: {
  3094. label: {
  3095. color: '#8791af'
  3096. }
  3097. },
  3098. series: {
  3099. startColor: mapChartColors[0],
  3100. endColor: mapChartColors[1],
  3101. overColor: mapChartColors[1],
  3102. borderColor: mapChartColors[2]
  3103. }
  3104. }; // For apply theme
  3105. tui.chart.registerTheme('myTheme', theme);
  3106. options.theme = 'myTheme';
  3107. var mapChart = tui.chart.mapChart(container, data, options);
  3108. }
  3109. $(window).resize(function () {
  3110. mapChartChartWidth = $("#map-charts").width();
  3111. mapChart.resize({
  3112. width: mapChartChartWidth,
  3113. height: 350
  3114. });
  3115. }); // Boxplot charts
  3116. var boxPlotChartColors = getChartColorsArray("boxplot-charts");
  3117. if (boxPlotChartColors) {
  3118. var boxplotchartsWidth = $("#boxplot-charts").width();
  3119. var container = document.getElementById('boxplot-charts');
  3120. var data = {
  3121. categories: ['Budget', 'Income', 'Expenses', 'Debt'],
  3122. series: [{
  3123. name: '2015',
  3124. data: [[1000, 2500, 3714, 5500, 7000], [1000, 2750, 4571, 5250, 8000], [3000, 4000, 4714, 6000, 7000], [1000, 2250, 3142, 4750, 6000]],
  3125. outliers: [[0, 14000], [2, 10000], [3, 9600]]
  3126. }, {
  3127. name: '2016',
  3128. data: [[2000, 4500, 6714, 11500, 13000], [3000, 5750, 7571, 8250, 9000], [5000, 8000, 8714, 9000, 10000], [7000, 9250, 10142, 11750, 12000]],
  3129. outliers: [[1, 14000]]
  3130. }]
  3131. };
  3132. var options = {
  3133. chart: {
  3134. width: boxplotchartsWidth,
  3135. height: 380,
  3136. title: 'Monthly Revenue',
  3137. format: '1,000'
  3138. },
  3139. yAxis: {
  3140. title: 'Amount',
  3141. min: 0,
  3142. max: 15000
  3143. },
  3144. xAxis: {
  3145. title: 'Month'
  3146. },
  3147. legend: {
  3148. align: 'bottom'
  3149. }
  3150. };
  3151. var theme = {
  3152. chart: {
  3153. background: {
  3154. color: '#fff',
  3155. opacity: 0
  3156. }
  3157. },
  3158. title: {
  3159. color: '#8791af'
  3160. },
  3161. xAxis: {
  3162. title: {
  3163. color: '#8791af'
  3164. },
  3165. label: {
  3166. color: '#8791af'
  3167. },
  3168. tickColor: '#8791af'
  3169. },
  3170. yAxis: {
  3171. title: {
  3172. color: '#8791af'
  3173. },
  3174. label: {
  3175. color: '#8791af'
  3176. },
  3177. tickColor: '#8791af'
  3178. },
  3179. plot: {
  3180. lineColor: 'rgba(166, 176, 207, 0.1)'
  3181. },
  3182. legend: {
  3183. label: {
  3184. color: '#8791af'
  3185. }
  3186. },
  3187. series: {
  3188. colors: boxPlotChartColors
  3189. }
  3190. }; // For apply theme
  3191. tui.chart.registerTheme('myTheme', theme);
  3192. options.theme = 'myTheme';
  3193. var boxplotChart = tui.chart.boxplotChart(container, data, options);
  3194. }
  3195. $(window).resize(function () {
  3196. boxplotChartChartWidth = $("#boxplot-charts").width();
  3197. boxplotChart.resize({
  3198. width: boxplotChartChartWidth,
  3199. height: 350
  3200. });
  3201. }); // Bullet charts
  3202. var bulletChartColors = getChartColorsArray("bullet-charts");
  3203. if (bulletChartColors) {
  3204. var bulletchartsWidth = $("#bullet-charts").width();
  3205. var container = document.getElementById('bullet-charts');
  3206. var data = {
  3207. categories: ['July', 'August'],
  3208. series: [{
  3209. name: 'Budget',
  3210. data: 25,
  3211. markers: [28, 2, 15],
  3212. ranges: [[-1, 10], [10, 20], [20, 30]]
  3213. }, {
  3214. name: 'Hello',
  3215. data: 11,
  3216. markers: [20],
  3217. ranges: [[0, 8], [8, 15]]
  3218. }, {
  3219. name: 'World',
  3220. data: 30,
  3221. markers: [25],
  3222. ranges: [[0, 10], [10, 19], [19, 28]]
  3223. }, {
  3224. name: 'Income',
  3225. data: 23,
  3226. markers: [],
  3227. ranges: [[19, 25], [13, 19], [0, 13]]
  3228. }]
  3229. };
  3230. var options = {
  3231. chart: {
  3232. width: bulletchartsWidth,
  3233. height: 380,
  3234. title: 'Monthly Revenue',
  3235. format: '1,000'
  3236. },
  3237. legend: {
  3238. visible: true
  3239. },
  3240. xAxis: {
  3241. max: 35
  3242. },
  3243. series: {
  3244. showLabel: true,
  3245. vertical: false
  3246. }
  3247. };
  3248. var theme = {
  3249. chart: {
  3250. background: {
  3251. color: '#fff',
  3252. opacity: 0
  3253. }
  3254. },
  3255. title: {
  3256. color: '#8791af'
  3257. },
  3258. xAxis: {
  3259. title: {
  3260. color: '#8791af'
  3261. },
  3262. label: {
  3263. color: '#8791af'
  3264. },
  3265. tickColor: '#8791af'
  3266. },
  3267. yAxis: {
  3268. title: {
  3269. color: '#8791af'
  3270. },
  3271. label: {
  3272. color: '#8791af'
  3273. },
  3274. tickColor: '#8791af'
  3275. },
  3276. plot: {
  3277. lineColor: 'rgba(166, 176, 207, 0.1)'
  3278. },
  3279. legend: {
  3280. label: {
  3281. color: '#8791af'
  3282. }
  3283. },
  3284. series: {
  3285. colors: bulletchartsWidth,
  3286. ranges: [{
  3287. color: '#eee',
  3288. opacity: 0.7
  3289. }, null, {
  3290. color: '#556ee6'
  3291. }]
  3292. }
  3293. }; // For apply theme
  3294. tui.chart.registerTheme('myTheme', theme);
  3295. options.theme = 'myTheme';
  3296. var bulletChart = tui.chart.bulletChart(container, data, options);
  3297. }
  3298. $(window).resize(function () {
  3299. bulletChartWidth = $("#bullet-charts").width();
  3300. bulletChart.resize({
  3301. width: bulletChartWidth,
  3302. height: 350
  3303. });
  3304. });
  3305. /******/ })()
  3306. ;