| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366 |
- /******/ (function() { // webpackBootstrap
- var __webpack_exports__ = {};
- /*!***********************************************!*\
- !*** ./resources/js/pages/tui-charts.init.js ***!
- \***********************************************/
- /*
- Template Name: Skote - Admin & Dashboard Template
- Author: Themesbrand
- Website: https://themesbrand.com/
- Contact: themesbrand@gmail.com
- File: Tui charts init Js File
- */
- // get colors array from the string
- function getChartColorsArray(chartId) {
- if (document.getElementById(chartId) !== null) {
- var colors = document.getElementById(chartId).getAttribute("data-colors");
-
- if (colors) {
- colors = JSON.parse(colors);
- return colors.map(function (value) {
- var newValue = value.replace(" ", "");
- if (newValue.indexOf(",") === -1) {
- var color = getComputedStyle(document.documentElement).getPropertyValue(newValue);
-
- if (color){
- color = color.replace(" ", "");
- return color;
- }
- else return newValue;;
- } else {
- var val = value.split(',');
- if (val.length == 2) {
- var rgbaColor = getComputedStyle(document.documentElement).getPropertyValue(val[0]);
- rgbaColor = "rgba(" + rgbaColor + "," + val[1] + ")";
- return rgbaColor;
- } else {
- return newValue;
- }
- }
- });
- }
- }
- } // Bar charts
- var barChartColors = getChartColorsArray("bar-charts");
- if (barChartColors) {
- var barChartWidth = $("#bar-charts").width();
- var container = document.getElementById('bar-charts');
- var data = {
- categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June'],
- series: [{
- name: 'Budget',
- data: [5000, 3000, 5000, 7000, 6000, 4000]
- }, {
- name: 'Income',
- data: [8000, 1000, 7000, 2000, 5000, 3000]
- }]
- };
- var options = {
- chart: {
- width: barChartWidth,
- height: 380,
- title: 'Monthly Revenue',
- format: '1,000'
- },
- yAxis: {
- title: 'Month'
- },
- xAxis: {
- title: 'Amount',
- min: 0,
- max: 9000,
- suffix: '$'
- },
- series: {
- showLabel: false
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- xAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- yAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- series: {
- colors: barChartColors
- },
- legend: {
- label: {
- color: '#8791af'
- }
- }
- };
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var barChart = tui.chart.barChart(container, data, options);
- }
- $(window).resize(function () {
- barChartWidth = $("#bar-charts").width();
- barChart.resize({
- width: barChartWidth,
- height: 350
- });
- }); // column charts
- var columnChartColors = getChartColorsArray("column-charts");
- if (columnChartColors) {
- var columnChartWidth = $("#column-charts").width();
- var container = document.getElementById('column-charts');
- var data = {
- categories: ['Jun, 2019', 'Jul, 2019', 'Aug, 2019', 'Sep, 2019', 'Oct, 2019', 'Nov, 2019', 'Dec, 2019'],
- series: [{
- name: 'Budget',
- data: [5000, 3000, 5000, 7000, 6000, 4000, 1000]
- }, {
- name: 'Income',
- data: [8000, 1000, 7000, 2000, 6000, 3000, 5000]
- }, {
- name: 'Expenses',
- data: [4000, 4000, 6000, 3000, 4000, 5000, 7000]
- }]
- };
- var options = {
- chart: {
- width: columnChartWidth,
- height: 380,
- title: 'Monthly Revenue',
- format: '1,000'
- },
- yAxis: {
- title: 'Amount',
- min: 0,
- max: 9000
- },
- xAxis: {
- title: 'Month'
- },
- legend: {
- align: 'top'
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- xAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- yAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: columnChartColors
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var columnChart = tui.chart.columnChart(container, data, options);
- }
- $(window).resize(function () {
- columnChartWidth = $("#column-charts").width();
- columnChart.resize({
- width: columnChartWidth,
- height: 350
- });
- }); // Line charts
- var lineChartColors = getChartColorsArray("line-charts");
- if (lineChartColors) {
- var lineChartWidth = $("#line-charts").width();
- var container = document.getElementById('line-charts');
- var data = {
- categories: ['June', 'July', 'Aug', 'Sep', 'Oct', 'Nov'],
- series: [{
- name: 'Budget',
- data: [5000, 3000, 6000, 3000, 6000, 4000]
- }, {
- name: 'Income',
- data: [8000, 1000, 7000, 2000, 5000, 3000]
- }, {
- name: 'Outgo',
- data: [900, 6000, 1000, 9000, 3000, 1000]
- }]
- };
- var options = {
- chart: {
- width: lineChartWidth,
- height: 380,
- title: '24-hr Average Temperature'
- },
- yAxis: {
- title: 'Amount',
- pointOnColumn: true
- },
- xAxis: {
- title: 'Month'
- },
- series: {
- spline: true,
- showDot: false
- },
- tooltip: {
- suffix: '°C'
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- xAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- yAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: lineChartColors
- }
- };
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var lineChart = tui.chart.lineChart(container, data, options);
- }
- $(window).resize(function () {
- lineChartWidth = $("#line-charts").width();
- lineChart.resize({
- width: lineChartWidth,
- height: 350
- });
- }); // Area charts
- var areaChartColors = getChartColorsArray("area-charts");
- if (areaChartColors) {
- var areaChartWidth = $("#area-charts").width();
- var container = document.getElementById('area-charts');
- var data = {
- categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
- series: [{
- name: 'Seoul',
- data: [20, 40, 25, 50, 15, 45, 33, 34, 20, 30, 22, 13]
- }, {
- name: 'Sydney',
- data: [5, 30, 21, 18, 59, 50, 28, 33, 7, 20, 10, 30]
- }, {
- name: 'Moskva',
- data: [30, 5, 18, 21, 33, 41, 29, 15, 30, 10, 33, 5]
- }]
- };
- var options = {
- chart: {
- width: areaChartWidth,
- height: 380,
- title: '24-hr Average Temperature'
- },
- series: {
- zoomable: true,
- showDot: false,
- areaOpacity: 1
- },
- yAxis: {
- title: 'Temperature (Celsius)',
- pointOnColumn: true
- },
- xAxis: {
- title: 'Month'
- },
- tooltip: {
- suffix: '°C'
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- xAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- yAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: areaChartColors
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var areaChart = tui.chart.areaChart(container, data, options);
- }
- $(window).resize(function () {
- areaChartWidth = $("#area-charts").width();
- areaChart.resize({
- width: areaChartWidth,
- height: 350
- });
- }); // Radial charts
- var radialChartColors = getChartColorsArray("radial-charts");
- if (radialChartColors) {
- var radialChartWidth = $("#radial-charts").width();
- var container = document.getElementById('radial-charts');
- var data = {
- categories: ["Jan", "Feb", "Mar", "April", "May", "Jun"],
- series: [{
- name: 'Budget',
- data: [5000, 3000, 5000, 7000, 6000, 4000]
- }, {
- name: 'Income',
- data: [8000, 8000, 7000, 2000, 5000, 3000]
- }, {
- name: 'Expenses',
- data: [4000, 4000, 6000, 3000, 4000, 5000]
- }, {
- name: 'Debt',
- data: [6000, 3000, 3000, 1000, 2000, 4000]
- }]
- };
- var options = {
- chart: {
- title: 'Annual Incomes',
- width: radialChartWidth,
- height: 380
- },
- series: {
- showDot: false,
- showArea: false
- },
- plot: {
- type: 'circle'
- },
- legend: {
- align: 'bottom'
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- xAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- yAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: radialChartColors
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var radialChart = tui.chart.radialChart(container, data, options);
- }
- $(window).resize(function () {
- radialChartWidth = $("#radial-charts").width();
- radialChart.resize({
- width: radialChartWidth,
- height: 350
- });
- }); // Bubble chart
- var bubbleChartColors = getChartColorsArray("bubble-charts");
- if (bubbleChartColors) {
- var bubbleChartWidth = $("#bubble-charts").width();
- var container = document.getElementById('bubble-charts');
- var data = {
- series: [{
- name: 'Africa',
- data: [{
- x: 4200,
- y: 70.35,
- r: 32209101,
- label: 'Morocco'
- }, {
- x: 4200,
- y: 70.71,
- r: 76117421,
- label: 'Egypt'
- }, {
- x: 5900,
- y: 56.46,
- r: 1355246,
- label: 'Gabon'
- }, {
- x: 6600,
- y: 72.74,
- r: 32129324,
- label: 'Algeria'
- }, {
- x: 6700,
- y: 76.28,
- r: 5631585,
- label: 'Libya'
- }, {
- x: 7100,
- y: 74.66,
- r: 9974722,
- label: 'Tunisia'
- }, {
- x: 10500,
- y: 69.28,
- r: 1096585,
- label: 'Trinidad and Tobago'
- }, {
- x: 12800,
- y: 72.09,
- r: 1220481,
- label: 'Mauritius'
- }, {
- x: 18200,
- y: 78.68,
- r: 396851,
- label: 'Malta'
- }]
- }, {
- name: 'America',
- data: [{
- x: 4800,
- y: 74.64,
- r: 6191368,
- label: 'Paraguay'
- }, {
- x: 4900,
- y: 70.92,
- r: 6587541,
- label: 'El Salvador'
- }, {
- x: 5600,
- y: 69.22,
- r: 2754430,
- label: 'Peru'
- }, {
- x: 5800,
- y: 74.06,
- r: 2501738,
- label: 'Venezuela'
- }, {
- x: 6300,
- y: 67.63,
- r: 8833634,
- label: 'Dominican Republic'
- }, {
- x: 6500,
- y: 67.43,
- r: 272945,
- label: 'Belize'
- }, {
- x: 6600,
- y: 71.43,
- r: 4231077,
- label: 'Colombia'
- }, {
- x: 6900,
- y: 72.14,
- r: 3000463,
- label: 'Panama'
- }, {
- x: 8100,
- y: 71.41,
- r: 78410118,
- label: 'Brazil'
- }, {
- x: 9600,
- y: 76.63,
- r: 3956507,
- label: 'Costa Rica'
- }, {
- x: 9600,
- y: 74.94,
- r: 4495959,
- label: 'Mexico'
- }, {
- x: 12400,
- y: 75.7,
- r: 6914475,
- label: 'Argentina'
- }, {
- x: 14500,
- y: 75.92,
- r: 3399237,
- label: 'Uruguay'
- }, {
- x: 16400,
- y: 71.64,
- r: 278289,
- label: 'Barbados'
- }, {
- x: 17700,
- y: 65.63,
- r: 299697,
- label: 'Bahamas, The'
- }, {
- x: 17700,
- y: 77.49,
- r: 3897960,
- label: 'Puerto Rico'
- }, {
- x: 31500,
- y: 79.96,
- r: 32507874,
- label: 'Canada'
- }, {
- x: 32100,
- y: 77.43,
- r: 89302754,
- label: 'United States'
- }]
- }, {
- name: 'Asia',
- data: [{
- x: 5600,
- y: 71.96,
- r: 92988000,
- label: 'China'
- }, {
- x: 5700,
- y: 61.29,
- r: 4863169,
- label: 'Turkmenistan'
- }, {
- x: 7700,
- y: 69.66,
- r: 19018924,
- label: 'Iran'
- }, {
- x: 7800,
- y: 66.07,
- r: 1514370,
- label: 'Kazakhstan'
- }, {
- x: 8100,
- y: 71.41,
- r: 14865523,
- label: 'Thailand'
- }, {
- x: 9700,
- y: 71.95,
- r: 23522482,
- label: 'Malaysia'
- }, {
- x: 12000,
- y: 75.23,
- r: 25795938,
- label: 'Saudi Arabia'
- }, {
- x: 13100,
- y: 72.85,
- r: 2903165,
- label: 'Oman'
- }, {
- x: 19200,
- y: 75.58,
- r: 48598170,
- label: 'Korea, South'
- }, {
- x: 19200,
- y: 73.98,
- r: 677886,
- label: 'Bahrain'
- }, {
- x: 20800,
- y: 79.17,
- r: 6199008,
- label: 'Israel'
- }, {
- x: 21300,
- y: 76.84,
- r: 2257549,
- label: 'Kuwait'
- }, {
- x: 23200,
- y: 73.4,
- r: 840290,
- label: 'Qatar'
- }, {
- x: 25200,
- y: 74.99,
- r: 2523915,
- label: 'United Arab Emirates'
- }, {
- x: 25300,
- y: 77.06,
- r: 22749838,
- label: 'Taiwan'
- }, {
- x: 27800,
- y: 81.53,
- r: 4353893,
- label: 'Singapore'
- }, {
- x: 29400,
- y: 81.04,
- r: 52733300,
- label: 'Japan'
- }, {
- x: 34200,
- y: 81.39,
- r: 6855125,
- label: 'Hong Kong'
- }]
- }, {
- name: 'Europe',
- data: [{
- x: 7700,
- y: 71.12,
- r: 2235555,
- label: 'Romania'
- }, {
- x: 8200,
- y: 71.75,
- r: 7517973,
- label: 'Bulgaria'
- }, {
- x: 9800,
- y: 66.39,
- r: 54378233,
- label: 'Russia'
- }, {
- x: 10700,
- y: 76.38,
- r: 1582395,
- label: 'Chile'
- }, {
- x: 11200,
- y: 74.14,
- r: 4496869,
- label: 'Croatia'
- }, {
- x: 11500,
- y: 70.86,
- r: 2306306,
- label: 'Latvia'
- }, {
- x: 12000,
- y: 74.16,
- r: 38626349,
- label: 'Poland'
- }, {
- x: 12500,
- y: 73.46,
- r: 3607899,
- label: 'Lithuania'
- }, {
- x: 14300,
- y: 71.38,
- r: 1341664,
- label: 'Estonia'
- }, {
- x: 14500,
- y: 74.19,
- r: 5423567,
- label: 'Slovakia'
- }, {
- x: 14900,
- y: 72.25,
- r: 1003237,
- label: 'Hungary'
- }, {
- x: 16800,
- y: 75.78,
- r: 1024617,
- label: 'Czech Republic'
- }, {
- x: 17900,
- y: 77.35,
- r: 1052414,
- label: 'Portugal'
- }, {
- x: 19600,
- y: 75.93,
- r: 2011473,
- label: 'Slovenia'
- }, {
- x: 21300,
- y: 78.94,
- r: 10647529,
- label: 'Greece'
- }, {
- x: 23300,
- y: 79.37,
- r: 40280780,
- label: 'Spain'
- }, {
- x: 27700,
- y: 79.54,
- r: 58057477,
- label: 'Italy'
- }, {
- x: 28400,
- y: 80.3,
- r: 898640,
- label: 'Sweden'
- }, {
- x: 28700,
- y: 78.54,
- r: 22424609,
- label: 'Germany'
- }, {
- x: 28700,
- y: 79.44,
- r: 30424213,
- label: 'France'
- }, {
- x: 29000,
- y: 78.24,
- r: 5214512,
- label: 'Finland'
- }, {
- x: 29500,
- y: 78.68,
- r: 16318199,
- label: 'Netherlands'
- }, {
- x: 29600,
- y: 78.27,
- r: 60270708,
- label: 'United Kingdom'
- }, {
- x: 30600,
- y: 78.44,
- r: 10348276,
- label: 'Belgium'
- }, {
- x: 31300,
- y: 78.87,
- r: 8174762,
- label: 'Austria'
- }, {
- x: 31900,
- y: 77.36,
- r: 3969558,
- label: 'Ireland'
- }, {
- x: 31900,
- y: 80.18,
- r: 293966,
- label: 'Iceland'
- }, {
- x: 32200,
- y: 77.44,
- r: 5413392,
- label: 'Denmark'
- }, {
- x: 33800,
- y: 80.31,
- r: 7450867,
- label: 'Switzerland'
- }]
- }, {
- name: 'Oceania',
- data: [{
- x: 2200,
- y: 64.56,
- r: 5420280,
- label: 'Papua New Guinea'
- }, {
- x: 2700,
- y: 61.32,
- r: 100798,
- label: 'Kiribati'
- }, {
- x: 5900,
- y: 69.2,
- r: 880874,
- label: 'Fiji'
- }, {
- x: 14500,
- y: 78.75,
- r: 108775,
- label: 'Virgin Islands'
- }, {
- x: 23200,
- y: 78.49,
- r: 1993817,
- label: 'New Zealand'
- }, {
- x: 30700,
- y: 80.26,
- r: 5991314,
- label: 'Australia'
- }]
- }]
- };
- var options = {
- chart: {
- width: radialChartWidth,
- height: 380,
- title: 'Life Expectancy per GDP',
- format: function format(value, chartType, areaType, valueType) {
- if (valueType === 'r' || valueType === 'x') {
- value = tui.chart.renderUtil.formatToComma(value);
- if (valueType === 'x') {
- value = '$' + value;
- }
- }
- return value;
- }
- },
- yAxis: {
- title: 'Life Expectancy (years)'
- },
- xAxis: {
- title: 'GDP'
- },
- tooltip: {
- template: function template(category, items) {
- 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>';
- '</div>';
- }
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- xAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- yAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: bubbleChartColors
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var bubbleChart = tui.chart.bubbleChart(container, data, options);
- }
- $(window).resize(function () {
- bubbleChartWidth = $("#bubble-charts").width();
- bubbleChart.resize({
- width: bubbleChartWidth,
- height: 350
- });
- }); // Scatter chart
- var scatterChartColors = getChartColorsArray("bubble-charts");
- if (scatterChartColors) {
- var scatterChartWidth = $("#scatter-charts").width();
- var container = document.getElementById('scatter-charts');
- var data = {
- series: [{
- name: 'male',
- data: [{
- x: 174,
- y: 65.6
- }, {
- x: 175.3,
- y: 71.8
- }, {
- x: 193.5,
- y: 80.7
- }, {
- x: 186.5,
- y: 72.6
- }, {
- x: 187.2,
- y: 78.8
- }, {
- x: 181.5,
- y: 74.8
- }, {
- x: 184,
- y: 86.4
- }, {
- x: 184.5,
- y: 78.4
- }, {
- x: 175,
- y: 62
- }, {
- x: 184,
- y: 81.6
- }, {
- x: 180,
- y: 76.6
- }, {
- x: 177.8,
- y: 83.6
- }, {
- x: 192,
- y: 90
- }, {
- x: 176,
- y: 74.6
- }, {
- x: 174,
- y: 71
- }, {
- x: 184,
- y: 79.6
- }, {
- x: 192.7,
- y: 93.8
- }, {
- x: 171.5,
- y: 70
- }, {
- x: 173,
- y: 72.4
- }, {
- x: 176,
- y: 85.9
- }, {
- x: 176,
- y: 78.8
- }, {
- x: 180.5,
- y: 77.8
- }, {
- x: 172.7,
- y: 66.2
- }, {
- x: 176,
- y: 86.4
- }, {
- x: 173.5,
- y: 81.8
- }, {
- x: 178,
- y: 89.6
- }, {
- x: 180.3,
- y: 82.8
- }, {
- x: 180.3,
- y: 76.4
- }, {
- x: 164.5,
- y: 63.2
- }, {
- x: 173,
- y: 60.9
- }, {
- x: 183.5,
- y: 74.8
- }, {
- x: 175.5,
- y: 70
- }, {
- x: 188,
- y: 72.4
- }, {
- x: 189.2,
- y: 84.1
- }, {
- x: 172.8,
- y: 69.1
- }, {
- x: 170,
- y: 59.5
- }, {
- x: 182,
- y: 67.2
- }, {
- x: 170,
- y: 61.3
- }, {
- x: 177.8,
- y: 68.6
- }, {
- x: 184.2,
- y: 80.1
- }, {
- x: 186.7,
- y: 87.8
- }, {
- x: 171.4,
- y: 84.7
- }, {
- x: 172.7,
- y: 73.4
- }, {
- x: 175.3,
- y: 72.1
- }, {
- x: 180.3,
- y: 82.6
- }, {
- x: 182.9,
- y: 88.7
- }, {
- x: 188,
- y: 84.1
- }, {
- x: 177.2,
- y: 94.1
- }, {
- x: 172.1,
- y: 74.9
- }, {
- x: 167,
- y: 59.1
- }, {
- x: 169.5,
- y: 75.6
- }, {
- x: 174,
- y: 86.2
- }, {
- x: 172.7,
- y: 75.3
- }, {
- x: 182.2,
- y: 87.1
- }, {
- x: 164.1,
- y: 55.2
- }, {
- x: 163,
- y: 57
- }, {
- x: 171.5,
- y: 61.4
- }, {
- x: 184.2,
- y: 76.8
- }, {
- x: 174,
- y: 86.8
- }, {
- x: 174,
- y: 72.2
- }, {
- x: 177,
- y: 71.6
- }, {
- x: 186,
- y: 84.8
- }, {
- x: 167,
- y: 68.2
- }, {
- x: 171.8,
- y: 66.1
- }, {
- x: 182,
- y: 72
- }, {
- x: 167,
- y: 64.6
- }, {
- x: 177.8,
- y: 74.8
- }, {
- x: 164.5,
- y: 70
- }, {
- x: 192,
- y: 101.6
- }, {
- x: 175.5,
- y: 63.2
- }, {
- x: 171.2,
- y: 79.1
- }, {
- x: 181.6,
- y: 78.9
- }, {
- x: 167.4,
- y: 67.7
- }, {
- x: 181.1,
- y: 66
- }, {
- x: 177,
- y: 68.2
- }, {
- x: 174.5,
- y: 63.9
- }, {
- x: 177.5,
- y: 72
- }, {
- x: 170.5,
- y: 56.8
- }, {
- x: 182.4,
- y: 74.5
- }, {
- x: 197.1,
- y: 90.9
- }, {
- x: 180.1,
- y: 93
- }, {
- x: 175.5,
- y: 80.9
- }, {
- x: 180.6,
- y: 72.7
- }, {
- x: 184.4,
- y: 68
- }, {
- x: 175.5,
- y: 70.9
- }, {
- x: 180.6,
- y: 72.5
- }, {
- x: 177,
- y: 72.5
- }, {
- x: 177.1,
- y: 83.4
- }, {
- x: 181.6,
- y: 75.5
- }, {
- x: 176.5,
- y: 73
- }, {
- x: 175,
- y: 70.2
- }, {
- x: 174,
- y: 73.4
- }, {
- x: 165.1,
- y: 70.5
- }, {
- x: 177,
- y: 68.9
- }, {
- x: 192,
- y: 102.3
- }, {
- x: 176.5,
- y: 68.4
- }, {
- x: 169.4,
- y: 65.9
- }, {
- x: 182.1,
- y: 75.7
- }, {
- x: 179.8,
- y: 84.5
- }, {
- x: 175.3,
- y: 87.7
- }, {
- x: 184.9,
- y: 86.4
- }, {
- x: 177.3,
- y: 73.2
- }, {
- x: 167.4,
- y: 53.9
- }, {
- x: 178.1,
- y: 72
- }, {
- x: 168.9,
- y: 55.5
- }, {
- x: 157.2,
- y: 58.4
- }, {
- x: 180.3,
- y: 83.2
- }, {
- x: 170.2,
- y: 72.7
- }, {
- x: 177.8,
- y: 64.1
- }, {
- x: 172.7,
- y: 72.3
- }, {
- x: 165.1,
- y: 65
- }, {
- x: 186.7,
- y: 86.4
- }, {
- x: 165.1,
- y: 65
- }, {
- x: 174,
- y: 88.6
- }, {
- x: 175.3,
- y: 84.1
- }, {
- x: 185.4,
- y: 66.8
- }, {
- x: 177.8,
- y: 75.5
- }, {
- x: 180.3,
- y: 93.2
- }, {
- x: 180.3,
- y: 82.7
- }, {
- x: 177.8,
- y: 58
- }, {
- x: 177.8,
- y: 79.5
- }, {
- x: 177.8,
- y: 78.6
- }, {
- x: 177.8,
- y: 71.8
- }, {
- x: 177.8,
- y: 116.4
- }, {
- x: 163.8,
- y: 72.2
- }, {
- x: 188,
- y: 83.6
- }, {
- x: 198.1,
- y: 85.5
- }, {
- x: 175.3,
- y: 90.9
- }, {
- x: 166.4,
- y: 85.9
- }, {
- x: 190.5,
- y: 89.1
- }, {
- x: 166.4,
- y: 75
- }, {
- x: 177.8,
- y: 77.7
- }, {
- x: 179.7,
- y: 86.4
- }, {
- x: 172.7,
- y: 90.9
- }, {
- x: 190.5,
- y: 73.6
- }, {
- x: 185.4,
- y: 76.4
- }, {
- x: 168.9,
- y: 69.1
- }, {
- x: 167.6,
- y: 84.5
- }, {
- x: 175.3,
- y: 64.5
- }, {
- x: 170.2,
- y: 69.1
- }, {
- x: 190.5,
- y: 108.6
- }, {
- x: 177.8,
- y: 86.4
- }, {
- x: 190.5,
- y: 80.9
- }, {
- x: 177.8,
- y: 87.7
- }, {
- x: 184.2,
- y: 94.5
- }, {
- x: 176.5,
- y: 80.2
- }, {
- x: 177.8,
- y: 72
- }, {
- x: 180.3,
- y: 71.4
- }, {
- x: 171.4,
- y: 72.7
- }, {
- x: 172.7,
- y: 84.1
- }, {
- x: 172.7,
- y: 76.8
- }, {
- x: 177.8,
- y: 63.6
- }, {
- x: 177.8,
- y: 80.9
- }, {
- x: 182.9,
- y: 80.9
- }, {
- x: 170.2,
- y: 85.5
- }, {
- x: 167.6,
- y: 68.6
- }, {
- x: 175.3,
- y: 67.7
- }, {
- x: 165.1,
- y: 66.4
- }, {
- x: 185.4,
- y: 102.3
- }, {
- x: 181.6,
- y: 70.5
- }, {
- x: 172.7,
- y: 95.9
- }, {
- x: 190.5,
- y: 84.1
- }, {
- x: 179.1,
- y: 87.3
- }, {
- x: 175.3,
- y: 71.8
- }, {
- x: 170.2,
- y: 65.9
- }, {
- x: 193,
- y: 95.9
- }, {
- x: 171.4,
- y: 91.4
- }, {
- x: 177.8,
- y: 81.8
- }, {
- x: 177.8,
- y: 96.8
- }, {
- x: 167.6,
- y: 69.1
- }, {
- x: 167.6,
- y: 82.7
- }, {
- x: 180.3,
- y: 75.5
- }, {
- x: 182.9,
- y: 79.5
- }, {
- x: 176.5,
- y: 73.6
- }, {
- x: 186.7,
- y: 91.8
- }, {
- x: 188,
- y: 84.1
- }, {
- x: 188,
- y: 85.9
- }, {
- x: 177.8,
- y: 81.8
- }, {
- x: 174,
- y: 82.5
- }, {
- x: 177.8,
- y: 80.5
- }, {
- x: 171.4,
- y: 70
- }, {
- x: 185.4,
- y: 81.8
- }, {
- x: 185.4,
- y: 84.1
- }, {
- x: 188,
- y: 90.5
- }, {
- x: 188,
- y: 91.4
- }, {
- x: 182.9,
- y: 89.1
- }, {
- x: 176.5,
- y: 85
- }, {
- x: 175.3,
- y: 69.1
- }, {
- x: 175.3,
- y: 73.6
- }, {
- x: 188,
- y: 80.5
- }, {
- x: 188,
- y: 82.7
- }, {
- x: 175.3,
- y: 86.4
- }, {
- x: 170.5,
- y: 67.7
- }, {
- x: 179.1,
- y: 92.7
- }, {
- x: 177.8,
- y: 93.6
- }, {
- x: 175.3,
- y: 70.9
- }, {
- x: 182.9,
- y: 75
- }, {
- x: 170.8,
- y: 93.2
- }, {
- x: 188,
- y: 93.2
- }, {
- x: 180.3,
- y: 77.7
- }, {
- x: 177.8,
- y: 61.4
- }, {
- x: 185.4,
- y: 94.1
- }, {
- x: 168.9,
- y: 75
- }, {
- x: 185.4,
- y: 83.6
- }, {
- x: 180.3,
- y: 85.5
- }, {
- x: 174,
- y: 73.9
- }, {
- x: 167.6,
- y: 66.8
- }, {
- x: 182.9,
- y: 87.3
- }, {
- x: 160,
- y: 72.3
- }, {
- x: 180.3,
- y: 88.6
- }, {
- x: 167.6,
- y: 75.5
- }, {
- x: 186.7,
- y: 101.4
- }, {
- x: 175.3,
- y: 91.1
- }, {
- x: 175.3,
- y: 67.3
- }, {
- x: 175.9,
- y: 77.7
- }, {
- x: 175.3,
- y: 81.8
- }, {
- x: 179.1,
- y: 75.5
- }, {
- x: 181.6,
- y: 84.5
- }, {
- x: 177.8,
- y: 76.6
- }, {
- x: 182.9,
- y: 85
- }, {
- x: 177.8,
- y: 102.5
- }, {
- x: 184.2,
- y: 77.3
- }, {
- x: 179.1,
- y: 71.8
- }, {
- x: 176.5,
- y: 87.9
- }, {
- x: 188,
- y: 94.3
- }, {
- x: 174,
- y: 70.9
- }, {
- x: 167.6,
- y: 64.5
- }, {
- x: 170.2,
- y: 77.3
- }, {
- x: 167.6,
- y: 72.3
- }, {
- x: 188,
- y: 87.3
- }, {
- x: 174,
- y: 80
- }, {
- x: 176.5,
- y: 82.3
- }, {
- x: 180.3,
- y: 73.6
- }, {
- x: 167.6,
- y: 74.1
- }, {
- x: 188,
- y: 85.9
- }, {
- x: 180.3,
- y: 73.2
- }, {
- x: 167.6,
- y: 76.3
- }, {
- x: 183,
- y: 65.9
- }, {
- x: 183,
- y: 90.9
- }, {
- x: 179.1,
- y: 89.1
- }, {
- x: 170.2,
- y: 62.3
- }, {
- x: 177.8,
- y: 82.7
- }, {
- x: 179.1,
- y: 79.1
- }, {
- x: 190.5,
- y: 98.2
- }, {
- x: 177.8,
- y: 84.1
- }, {
- x: 180.3,
- y: 83.2
- }, {
- x: 180.3,
- y: 83.2
- }]
- }, {
- name: 'female',
- data: [{
- x: 161.2,
- y: 51.6
- }, {
- x: 167.5,
- y: 59
- }, {
- x: 159.5,
- y: 49.2
- }, {
- x: 157,
- y: 63
- }, {
- x: 155.8,
- y: 53.6
- }, {
- x: 170,
- y: 59
- }, {
- x: 159.1,
- y: 47.6
- }, {
- x: 166,
- y: 69.8
- }, {
- x: 176.2,
- y: 66.8
- }, {
- x: 160.2,
- y: 75.2
- }, {
- x: 172.5,
- y: 55.2
- }, {
- x: 170.9,
- y: 54.2
- }, {
- x: 172.9,
- y: 62.5
- }, {
- x: 153.4,
- y: 42
- }, {
- x: 160,
- y: 50
- }, {
- x: 147.2,
- y: 49.8
- }, {
- x: 168.2,
- y: 49.2
- }, {
- x: 175,
- y: 73.2
- }, {
- x: 157,
- y: 47.8
- }, {
- x: 167.6,
- y: 68.8
- }, {
- x: 159.5,
- y: 50.6
- }, {
- x: 175,
- y: 82.5
- }, {
- x: 166.8,
- y: 57.2
- }, {
- x: 176.5,
- y: 87.8
- }, {
- x: 170.2,
- y: 72.8
- }, {
- x: 174,
- y: 54.5
- }, {
- x: 173,
- y: 59.8
- }, {
- x: 179.9,
- y: 67.3
- }, {
- x: 170.5,
- y: 67.8
- }, {
- x: 160,
- y: 47
- }, {
- x: 154.4,
- y: 46.2
- }, {
- x: 162,
- y: 55
- }, {
- x: 176.5,
- y: 83
- }, {
- x: 160,
- y: 54.4
- }, {
- x: 152,
- y: 45.8
- }, {
- x: 162.1,
- y: 53.6
- }, {
- x: 170,
- y: 73.2
- }, {
- x: 160.2,
- y: 52.1
- }, {
- x: 161.3,
- y: 67.9
- }, {
- x: 166.4,
- y: 56.6
- }, {
- x: 168.9,
- y: 62.3
- }, {
- x: 163.8,
- y: 58.5
- }, {
- x: 167.6,
- y: 54.5
- }, {
- x: 160,
- y: 50.2
- }, {
- x: 161.3,
- y: 60.3
- }, {
- x: 167.6,
- y: 58.3
- }, {
- x: 165.1,
- y: 56.2
- }, {
- x: 160,
- y: 50.2
- }, {
- x: 170,
- y: 72.9
- }, {
- x: 157.5,
- y: 59.8
- }, {
- x: 167.6,
- y: 61
- }, {
- x: 160.7,
- y: 69.1
- }, {
- x: 163.2,
- y: 55.9
- }, {
- x: 152.4,
- y: 46.5
- }, {
- x: 157.5,
- y: 54.3
- }, {
- x: 168.3,
- y: 54.8
- }, {
- x: 180.3,
- y: 60.7
- }, {
- x: 165.5,
- y: 60
- }, {
- x: 165,
- y: 62
- }, {
- x: 164.5,
- y: 60.3
- }, {
- x: 156,
- y: 52.7
- }, {
- x: 160,
- y: 74.3
- }, {
- x: 163,
- y: 62
- }, {
- x: 165.7,
- y: 73.1
- }, {
- x: 161,
- y: 80
- }, {
- x: 162,
- y: 54.7
- }, {
- x: 166,
- y: 53.2
- }, {
- x: 174,
- y: 75.7
- }, {
- x: 172.7,
- y: 61.1
- }, {
- x: 167.6,
- y: 55.7
- }, {
- x: 151.1,
- y: 48.7
- }, {
- x: 164.5,
- y: 52.3
- }, {
- x: 163.5,
- y: 50
- }, {
- x: 152,
- y: 59.3
- }, {
- x: 169,
- y: 62.5
- }, {
- x: 164,
- y: 55.7
- }, {
- x: 161.2,
- y: 54.8
- }, {
- x: 155,
- y: 45.9
- }, {
- x: 170,
- y: 70.6
- }, {
- x: 176.2,
- y: 67.2
- }, {
- x: 170,
- y: 69.4
- }, {
- x: 162.5,
- y: 58.2
- }, {
- x: 170.3,
- y: 64.8
- }, {
- x: 164.1,
- y: 71.6
- }, {
- x: 169.5,
- y: 52.8
- }, {
- x: 163.2,
- y: 59.8
- }, {
- x: 154.5,
- y: 49
- }, {
- x: 159.8,
- y: 50
- }, {
- x: 173.2,
- y: 69.2
- }, {
- x: 170,
- y: 55.9
- }, {
- x: 161.4,
- y: 63.4
- }, {
- x: 169,
- y: 58.2
- }, {
- x: 166.2,
- y: 58.6
- }, {
- x: 159.4,
- y: 45.7
- }, {
- x: 162.5,
- y: 52.2
- }, {
- x: 159,
- y: 48.6
- }, {
- x: 162.8,
- y: 57.8
- }, {
- x: 159,
- y: 55.6
- }, {
- x: 179.8,
- y: 66.8
- }, {
- x: 162.9,
- y: 59.4
- }, {
- x: 161,
- y: 53.6
- }, {
- x: 151.1,
- y: 73.2
- }, {
- x: 168.2,
- y: 53.4
- }, {
- x: 168.9,
- y: 69
- }, {
- x: 173.2,
- y: 58.4
- }, {
- x: 171.8,
- y: 56.2
- }, {
- x: 178,
- y: 70.6
- }, {
- x: 164.3,
- y: 59.8
- }, {
- x: 163,
- y: 72
- }, {
- x: 168.5,
- y: 65.2
- }, {
- x: 166.8,
- y: 56.6
- }, {
- x: 172.7,
- y: 105.2
- }, {
- x: 163.5,
- y: 51.8
- }, {
- x: 169.4,
- y: 63.4
- }, {
- x: 167.8,
- y: 59
- }, {
- x: 159.5,
- y: 47.6
- }, {
- x: 167.6,
- y: 63
- }, {
- x: 161.2,
- y: 55.2
- }, {
- x: 160,
- y: 45
- }, {
- x: 163.2,
- y: 54
- }, {
- x: 162.2,
- y: 50.2
- }, {
- x: 161.3,
- y: 60.2
- }, {
- x: 149.5,
- y: 44.8
- }, {
- x: 157.5,
- y: 58.8
- }, {
- x: 163.2,
- y: 56.4
- }, {
- x: 172.7,
- y: 62
- }, {
- x: 155,
- y: 49.2
- }, {
- x: 156.5,
- y: 67.2
- }, {
- x: 164,
- y: 53.8
- }, {
- x: 160.9,
- y: 54.4
- }, {
- x: 162.8,
- y: 58
- }, {
- x: 167,
- y: 59.8
- }, {
- x: 160,
- y: 54.8
- }, {
- x: 160,
- y: 43.2
- }, {
- x: 168.9,
- y: 60.5
- }, {
- x: 158.2,
- y: 46.4
- }, {
- x: 156,
- y: 64.4
- }, {
- x: 160,
- y: 48.8
- }, {
- x: 167.1,
- y: 62.2
- }, {
- x: 158,
- y: 55.5
- }, {
- x: 167.6,
- y: 57.8
- }, {
- x: 156,
- y: 54.6
- }, {
- x: 162.1,
- y: 59.2
- }, {
- x: 173.4,
- y: 52.7
- }, {
- x: 159.8,
- y: 53.2
- }, {
- x: 170.5,
- y: 64.5
- }, {
- x: 159.2,
- y: 51.8
- }, {
- x: 157.5,
- y: 56
- }, {
- x: 161.3,
- y: 63.6
- }, {
- x: 162.6,
- y: 63.2
- }, {
- x: 160,
- y: 59.5
- }, {
- x: 168.9,
- y: 56.8
- }, {
- x: 165.1,
- y: 64.1
- }, {
- x: 162.6,
- y: 50
- }, {
- x: 165.1,
- y: 72.3
- }, {
- x: 166.4,
- y: 55
- }, {
- x: 160,
- y: 55.9
- }, {
- x: 152.4,
- y: 60.4
- }, {
- x: 170.2,
- y: 69.1
- }, {
- x: 162.6,
- y: 84.5
- }, {
- x: 170.2,
- y: 55.9
- }, {
- x: 158.8,
- y: 55.5
- }, {
- x: 172.7,
- y: 69.5
- }, {
- x: 167.6,
- y: 76.4
- }, {
- x: 162.6,
- y: 61.4
- }, {
- x: 167.6,
- y: 65.9
- }, {
- x: 156.2,
- y: 58.6
- }, {
- x: 175.2,
- y: 66.8
- }, {
- x: 172.1,
- y: 56.6
- }, {
- x: 162.6,
- y: 58.6
- }, {
- x: 160,
- y: 55.9
- }, {
- x: 165.1,
- y: 59.1
- }, {
- x: 182.9,
- y: 81.8
- }, {
- x: 166.4,
- y: 70.7
- }, {
- x: 165.1,
- y: 56.8
- }, {
- x: 177.8,
- y: 60
- }, {
- x: 165.1,
- y: 58.2
- }, {
- x: 175.3,
- y: 72.7
- }, {
- x: 154.9,
- y: 54.1
- }, {
- x: 158.8,
- y: 49.1
- }, {
- x: 172.7,
- y: 75.9
- }, {
- x: 168.9,
- y: 55
- }, {
- x: 161.3,
- y: 57.3
- }, {
- x: 167.6,
- y: 55
- }, {
- x: 165.1,
- y: 65.5
- }, {
- x: 175.3,
- y: 65.5
- }, {
- x: 157.5,
- y: 48.6
- }, {
- x: 163.8,
- y: 58.6
- }, {
- x: 167.6,
- y: 63.6
- }, {
- x: 165.1,
- y: 55.2
- }, {
- x: 165.1,
- y: 62.7
- }, {
- x: 168.9,
- y: 56.6
- }, {
- x: 162.6,
- y: 53.9
- }, {
- x: 164.5,
- y: 63.2
- }, {
- x: 176.5,
- y: 73.6
- }, {
- x: 168.9,
- y: 62
- }, {
- x: 175.3,
- y: 63.6
- }, {
- x: 159.4,
- y: 53.2
- }, {
- x: 160,
- y: 53.4
- }, {
- x: 170.2,
- y: 55
- }, {
- x: 162.6,
- y: 70.5
- }, {
- x: 167.6,
- y: 54.5
- }, {
- x: 162.6,
- y: 54.5
- }, {
- x: 160.7,
- y: 55.9
- }, {
- x: 160,
- y: 59
- }, {
- x: 157.5,
- y: 63.6
- }, {
- x: 162.6,
- y: 54.5
- }, {
- x: 152.4,
- y: 47.3
- }, {
- x: 170.2,
- y: 67.7
- }, {
- x: 165.1,
- y: 80.9
- }, {
- x: 172.7,
- y: 70.5
- }, {
- x: 165.1,
- y: 60.9
- }, {
- x: 170.2,
- y: 63.6
- }, {
- x: 170.2,
- y: 54.5
- }, {
- x: 170.2,
- y: 59.1
- }, {
- x: 161.3,
- y: 70.5
- }, {
- x: 167.6,
- y: 52.7
- }, {
- x: 167.6,
- y: 62.7
- }, {
- x: 165.1,
- y: 86.3
- }, {
- x: 162.6,
- y: 66.4
- }, {
- x: 152.4,
- y: 67.3
- }, {
- x: 168.9,
- y: 63
- }, {
- x: 170.2,
- y: 73.6
- }, {
- x: 175.2,
- y: 62.3
- }, {
- x: 175.2,
- y: 57.7
- }, {
- x: 160,
- y: 55.4
- }, {
- x: 165.1,
- y: 104.1
- }, {
- x: 174,
- y: 55.5
- }, {
- x: 170.2,
- y: 77.3
- }, {
- x: 160,
- y: 80.5
- }, {
- x: 167.6,
- y: 64.5
- }, {
- x: 167.6,
- y: 72.3
- }, {
- x: 167.6,
- y: 61.4
- }, {
- x: 154.9,
- y: 58.2
- }, {
- x: 162.6,
- y: 81.8
- }, {
- x: 175.3,
- y: 63.6
- }, {
- x: 171.4,
- y: 53.4
- }, {
- x: 157.5,
- y: 54.5
- }, {
- x: 165.1,
- y: 53.6
- }, {
- x: 160,
- y: 60
- }, {
- x: 174,
- y: 73.6
- }, {
- x: 162.6,
- y: 61.4
- }, {
- x: 174,
- y: 55.5
- }, {
- x: 162.6,
- y: 63.6
- }, {
- x: 161.3,
- y: 60.9
- }, {
- x: 156.2,
- y: 60
- }, {
- x: 149.9,
- y: 46.8
- }, {
- x: 169.5,
- y: 57.3
- }, {
- x: 160,
- y: 64.1
- }, {
- x: 175.3,
- y: 63.6
- }, {
- x: 169.5,
- y: 67.3
- }, {
- x: 160,
- y: 75.5
- }, {
- x: 172.7,
- y: 68.2
- }, {
- x: 162.6,
- y: 61.4
- }, {
- x: 157.5,
- y: 76.8
- }, {
- x: 176.5,
- y: 71.8
- }, {
- x: 164.4,
- y: 55.5
- }, {
- x: 160.7,
- y: 48.6
- }, {
- x: 174,
- y: 66.4
- }, {
- x: 163.8,
- y: 67.3
- }]
- }]
- };
- var options = {
- chart: {
- width: scatterChartWidth,
- height: 380,
- title: 'Height vs Weight'
- },
- yAxis: {
- title: 'Weight (kg)'
- },
- xAxis: {
- title: 'Height (cm)'
- },
- tooltip: {
- template: function template(category, items) {
- 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>';
- }
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- xAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- yAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: scatterChartColors
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var scatterChart = tui.chart.scatterChart(container, data, options);
- }
- $(window).resize(function () {
- scatterChartWidth = $("#scatter-charts").width();
- scatterChart.resize({
- width: scatterChartWidth,
- height: 350
- });
- }); // Pie charts
- var pieChartColors = getChartColorsArray("pie-charts");
- if (pieChartColors) {
- var pieChartWidth = $("#pie-charts").width();
- var container = document.getElementById('pie-charts');
- var data = {
- categories: ['Browser'],
- series: [{
- name: 'Chrome',
- data: 46.02
- }, {
- name: 'IE',
- data: 20.47
- }, {
- name: 'Firefox',
- data: 17.71
- }, {
- name: 'Safari',
- data: 5.45
- }, {
- name: 'Etc',
- data: 10.35
- }]
- };
- var options = {
- chart: {
- width: pieChartWidth,
- height: 380,
- title: 'Usage share of web browsers'
- },
- tooltip: {
- suffix: '%'
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: pieChartColors
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var pieChart = tui.chart.pieChart(container, data, options);
- }
- $(window).resize(function () {
- pieChartWidth = $("#pie-charts").width();
- pieChart.resize({
- width: pieChartWidth,
- height: 350
- });
- }); // Donut pie chart
- var donutPieChartColors = getChartColorsArray("donut-charts");
- if (donutPieChartColors) {
- var donutpieChartWidth = $("#donut-charts").width();
- var container = document.getElementById('donut-charts');
- var data = {
- categories: ['Browser'],
- series: [{
- name: 'Chrome',
- data: 46.02
- }, {
- name: 'IE',
- data: 20.47
- }, {
- name: 'Firefox',
- data: 17.71
- }, {
- name: 'Safari',
- data: 5.45
- }, {
- name: 'Etc',
- data: 10.35
- }]
- };
- var options = {
- chart: {
- width: donutpieChartWidth,
- height: 380,
- title: 'Usage share of web browsers',
- format: function format(value, chartType, areaType, valuetype, legendName) {
- if (areaType === 'makingSeriesLabel') {
- // formatting at series area
- value = value + '%';
- }
- return value;
- }
- },
- series: {
- radiusRange: ['40%', '100%'],
- showLabel: true
- },
- tooltip: {
- suffix: '%'
- },
- legend: {
- align: 'bottom'
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: donutPieChartColors,
- label: {
- color: '#fff',
- fontFamily: 'sans-serif'
- }
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var donutChart = tui.chart.pieChart(container, data, options);
- }
- $(window).resize(function () {
- donutpieChartWidth = $("#donut-charts").width();
- donutChart.resize({
- width: donutpieChartWidth,
- height: 350
- });
- }); // Heatmap chart
- var heatMapChartColors = getChartColorsArray("heatmap-charts");
- if (heatMapChartColors) {
- var heatmapchartsWidth = $("#heatmap-charts").width();
- var container = document.getElementById('heatmap-charts');
- var data = {
- categories: {
- x: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
- y: ['Seoul', 'Seattle', 'Sydney', 'Moskva', 'Jungfrau']
- },
- 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]]
- };
- var options = {
- chart: {
- width: heatmapchartsWidth,
- height: 380,
- title: '24-hr Average Temperature'
- },
- yAxis: {
- title: 'City'
- },
- xAxis: {
- title: 'Month'
- },
- series: {
- showLabel: true
- },
- tooltip: {
- suffix: '°C'
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- xAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- yAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- startColor: heatMapChartColors[0],
- endColor: heatMapChartColors[1],
- overColor: heatMapChartColors[1],
- borderColor: heatMapChartColors[2]
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var heatmapChart = tui.chart.heatmapChart(container, data, options);
- }
- $(window).resize(function () {
- heatmapChartChartWidth = $("#heatmap-charts").width();
- heatmapChart.resize({
- width: heatmapChartChartWidth,
- height: 350
- });
- }); // Treemap chart
- var treemapChartColors = getChartColorsArray("treemap-charts");
- if (treemapChartColors) {
- var treemapchartsWidth = $("#treemap-charts").width();
- var container = document.getElementById('treemap-charts');
- var data = {
- series: [{
- label: 'Documents',
- children: [{
- label: 'docs',
- children: [{
- label: 'pages',
- value: 1.3
- }, {
- label: 'keynote',
- value: 2.5
- }, {
- label: 'numbers',
- value: 1.2
- }]
- }, {
- label: 'photos',
- value: 5.5
- }, {
- label: 'videos',
- value: 20.7
- }]
- }, {
- label: 'Downloads',
- children: [{
- label: 'recents',
- value: 5.3
- }, {
- label: '2015',
- value: 10.1
- }, {
- label: '2014',
- value: 8.2
- }]
- }, {
- label: 'Application',
- value: 16.4
- }, {
- label: 'Desktop',
- value: 4.5
- }]
- };
- var options = {
- chart: {
- width: treemapchartsWidth,
- height: 380,
- title: 'Used disk space'
- },
- series: {
- showLabel: true,
- zoomable: false,
- useLeafLabel: true
- },
- tooltip: {
- suffix: 'GB'
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: treemapChartColors,
- borderColor: 'rgba(255, 255, 255, 0.4)',
- borderWidth: 4
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var treemapChart = tui.chart.treemapChart(container, data, options);
- }
- $(window).resize(function () {
- treemapChartChartWidth = $("#treemap-charts").width();
- treemapChart.resize({
- width: treemapChartChartWidth,
- height: 350
- });
- }); // Map charts
- var mapChartColors = getChartColorsArray("map-charts");
- if (mapChartColors) {
- var mapchartsWidth = $("#map-charts").width();
- var container = document.getElementById('map-charts');
- var data = {
- series: [{
- code: 'US-AK',
- data: -3.0
- }, {
- code: 'US-AL',
- data: 17.1
- }, {
- code: 'US-AZ',
- data: 15.7
- }, {
- code: 'US-CA',
- data: 15.2
- }, {
- code: 'US-CO',
- data: 7.3
- }, {
- code: 'US-CT',
- data: 9.4
- }, {
- code: 'US-DC',
- data: 12.3
- }, {
- code: 'US-DE',
- data: 12.9
- }, {
- code: 'US-FL',
- data: 21.5
- }, {
- code: 'US-GA',
- data: 17.5
- }, {
- code: 'US-HI',
- data: 21.1
- }, {
- code: 'US-IA',
- data: 8.8
- }, {
- code: 'US-ID',
- data: 6.9
- }, {
- code: 'US-IL',
- data: 11.0
- }, {
- code: 'US-IN',
- data: 10.9
- }, {
- code: 'US-KS',
- data: 12.4
- }, {
- code: 'US-KY',
- data: 13.1
- }, {
- code: 'US-LA',
- data: 19.1
- }, {
- code: 'US-MA',
- data: 8.8
- }, {
- code: 'US-MD',
- data: 12.3
- }, {
- code: 'US-ME',
- data: 5.0
- }, {
- code: 'US-MI',
- data: 6.9
- }, {
- code: 'US-MN',
- data: 5.1
- }, {
- code: 'US-MO',
- data: 12.5
- }, {
- code: 'US-MS',
- data: 17.4
- }, {
- code: 'US-NC',
- data: 15.0
- }, {
- code: 'US-ND',
- data: 4.7
- }, {
- code: 'US-NE',
- data: 9.3
- }, {
- code: 'US-NH',
- data: 6.6
- }, {
- code: 'US-NJ',
- data: 11.5
- }, {
- code: 'US-NM',
- data: 11.9
- }, {
- code: 'US-NV',
- data: 9.9
- }, {
- code: 'US-NY',
- data: 7.4
- }, {
- code: 'US-OH',
- data: 10.4
- }, {
- code: 'US-OK',
- data: 15.3
- }, {
- code: 'US-OR',
- data: 9.1
- }, {
- code: 'US-PA',
- data: 9.3
- }, {
- code: 'US-RI',
- data: 10.1
- }, {
- code: 'US-SC',
- data: 16.9
- }, {
- code: 'US-SD',
- data: 7.3
- }, {
- code: 'US-TN',
- data: 14.2
- }, {
- code: 'US-TX',
- data: 18.2
- }, {
- code: 'US-UT',
- data: 9.2
- }, {
- code: 'US-VA',
- data: 12.8
- }, {
- code: 'US-VT',
- data: 6.1
- }, {
- code: 'US-WA',
- data: 9.1
- }, {
- code: 'US-WI',
- data: 11.0
- }, {
- code: 'US-WV',
- data: 6.2
- }, {
- code: 'US-WY',
- data: 5.6
- }]
- };
- var options = {
- chart: {
- width: mapchartsWidth,
- height: 380,
- title: 'Average annual temperature of USA (°C)'
- },
- map: 'usa',
- legend: {
- align: 'right'
- },
- tooltip: {
- suffix: '°C'
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- startColor: mapChartColors[0],
- endColor: mapChartColors[1],
- overColor: mapChartColors[1],
- borderColor: mapChartColors[2]
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var mapChart = tui.chart.mapChart(container, data, options);
- }
- $(window).resize(function () {
- mapChartChartWidth = $("#map-charts").width();
- mapChart.resize({
- width: mapChartChartWidth,
- height: 350
- });
- }); // Boxplot charts
- var boxPlotChartColors = getChartColorsArray("boxplot-charts");
- if (boxPlotChartColors) {
- var boxplotchartsWidth = $("#boxplot-charts").width();
- var container = document.getElementById('boxplot-charts');
- var data = {
- categories: ['Budget', 'Income', 'Expenses', 'Debt'],
- series: [{
- name: '2015',
- data: [[1000, 2500, 3714, 5500, 7000], [1000, 2750, 4571, 5250, 8000], [3000, 4000, 4714, 6000, 7000], [1000, 2250, 3142, 4750, 6000]],
- outliers: [[0, 14000], [2, 10000], [3, 9600]]
- }, {
- name: '2016',
- data: [[2000, 4500, 6714, 11500, 13000], [3000, 5750, 7571, 8250, 9000], [5000, 8000, 8714, 9000, 10000], [7000, 9250, 10142, 11750, 12000]],
- outliers: [[1, 14000]]
- }]
- };
- var options = {
- chart: {
- width: boxplotchartsWidth,
- height: 380,
- title: 'Monthly Revenue',
- format: '1,000'
- },
- yAxis: {
- title: 'Amount',
- min: 0,
- max: 15000
- },
- xAxis: {
- title: 'Month'
- },
- legend: {
- align: 'bottom'
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- xAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- yAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: boxPlotChartColors
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var boxplotChart = tui.chart.boxplotChart(container, data, options);
- }
- $(window).resize(function () {
- boxplotChartChartWidth = $("#boxplot-charts").width();
- boxplotChart.resize({
- width: boxplotChartChartWidth,
- height: 350
- });
- }); // Bullet charts
- var bulletChartColors = getChartColorsArray("bullet-charts");
- if (bulletChartColors) {
- var bulletchartsWidth = $("#bullet-charts").width();
- var container = document.getElementById('bullet-charts');
- var data = {
- categories: ['July', 'August'],
- series: [{
- name: 'Budget',
- data: 25,
- markers: [28, 2, 15],
- ranges: [[-1, 10], [10, 20], [20, 30]]
- }, {
- name: 'Hello',
- data: 11,
- markers: [20],
- ranges: [[0, 8], [8, 15]]
- }, {
- name: 'World',
- data: 30,
- markers: [25],
- ranges: [[0, 10], [10, 19], [19, 28]]
- }, {
- name: 'Income',
- data: 23,
- markers: [],
- ranges: [[19, 25], [13, 19], [0, 13]]
- }]
- };
- var options = {
- chart: {
- width: bulletchartsWidth,
- height: 380,
- title: 'Monthly Revenue',
- format: '1,000'
- },
- legend: {
- visible: true
- },
- xAxis: {
- max: 35
- },
- series: {
- showLabel: true,
- vertical: false
- }
- };
- var theme = {
- chart: {
- background: {
- color: '#fff',
- opacity: 0
- }
- },
- title: {
- color: '#8791af'
- },
- xAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- yAxis: {
- title: {
- color: '#8791af'
- },
- label: {
- color: '#8791af'
- },
- tickColor: '#8791af'
- },
- plot: {
- lineColor: 'rgba(166, 176, 207, 0.1)'
- },
- legend: {
- label: {
- color: '#8791af'
- }
- },
- series: {
- colors: bulletchartsWidth,
- ranges: [{
- color: '#eee',
- opacity: 0.7
- }, null, {
- color: '#556ee6'
- }]
- }
- }; // For apply theme
- tui.chart.registerTheme('myTheme', theme);
- options.theme = 'myTheme';
- var bulletChart = tui.chart.bulletChart(container, data, options);
- }
- $(window).resize(function () {
- bulletChartWidth = $("#bullet-charts").width();
- bulletChart.resize({
- width: bulletChartWidth,
- height: 350
- });
- });
- /******/ })()
- ;
|