const locale = { "decimal": ",", "thousands": "\u00a0", "grouping": [3], "currency": ["$", ""] }; d3.formatDefaultLocale(locale); function numberWithSpaces(x) { var parts = x.toString().split("."); parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, " "); return parts.join("."); } $(document).ready(function() { var time_arr = ["1621296037","1621382437","1621468834","1621555237","1621641640","1621728032","1621814439","1621900839","1621987233","1622073640","1622160034","1622246427","1622332838","1622419229","1622505635","1622592028","1622678436","1622764831","1622851235","1622937633","1623024037","1623110448","1623196845","1623283244","1623369651","1623456050","1623542446","1623628848","1623715258","1623801659"]; var time_new = []; time_arr.forEach(function(item, i, time_arr) { var unixtimestamp = item; var date = new Date(unixtimestamp * 1000); var year = date.getFullYear(); var months_arr = [ "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" ]; var month = months_arr[date.getMonth()]; var day = "0" + date.getDate(); var hours = "0" + date.getHours(); var minutes = "0" + date.getMinutes(); var convdataTime = day.substr(-2) + "-" + month + "-" + year + " " + hours.substr(-2) + ":" + minutes.substr(-2); time_new.push(year + '-' + month + '-' + day.substr(-2)); }); $('.analytics_page_stats .load_hide.active').removeClass('active'); $('.all_projects_desc').html(numberWithSpaces(698018)); $('.all_price_desc').html('$'+numberWithSpaces(264623876)); var chart_projects = c3.generate({ bindto: '#container1', data: { x: 'x', xFormat: '%Y-%m-%d', // how the date is parsed columns: [ ['x', time_new[0], time_new[1], time_new[2], time_new[3], time_new[4], time_new[5], time_new[6], time_new[7], time_new[8], time_new[9], time_new[10], time_new[11], time_new[12], time_new[13], time_new[14], time_new[15], time_new[16], time_new[17], time_new[18], time_new[19], time_new[20], time_new[21], time_new[22], time_new[23], time_new[24], time_new[25], time_new[26], time_new[27], time_new[28], time_new[29]], ['Fl.ru',941, 1009, 832, 868, 477, 497, 1042, 933, 998, 907, 798, 506, 424, 1051, 915, 884, 1051, 720, 415, 386, 971, 953, 895, 1007, 677, 406, 425, 654, 888, 915],['Freelancehunt.com',573, 563, 591, 429, 289, 255, 552, 521, 480, 532, 399, 239, 288, 520, 532, 469, 488, 409, 239, 215, 499, 514, 522, 473, 411, 240, 218, 472, 460, 456],['Habr.freelance',115, 141, 121, 86, 56, 57, 122, 111, 100, 122, 106, 69, 60, 124, 141, 95, 101, 90, 71, 54, 127, 142, 117, 105, 88, 60, 46, 78, 127, 133],['Weblancer.net',223, 207, 205, 159, 99, 103, 181, 197, 177, 162, 176, 125, 126, 226, 179, 195, 203, 144, 102, 77, 203, 194, 189, 192, 135, 76, 85, 147, 185, 185],['Freelance.ru',355, 406, 346, 364, 176, 171, 392, 362, 382, 334, 304, 157, 221, 384, 373, 358, 352, 302, 186, 176, 401, 399, 366, 373, 283, 193, 159, 238, 366, 363],['Freelance.youdo.com',192, 174, 155, 143, 118, 111, 182, 149, 178, 168, 125, 116, 101, 187, 183, 199, 168, 172, 101, 109, 186, 191, 182, 181, 180, 102, 99, 147, 157, 186],['Upwork.com',9447, 8972, 8872, 7574, 5058, 4987, 8566, 9348, 8866, 8647, 7554, 4867, 4924, 7750, 8801, 9111, 8806, 7829, 5113, 4947, 9125, 9332, 9322, 8613, 7639, 4884, 4710, 8545, 9041, 9009],['Freelancer.com',4741, 4734, 4561, 4233, 3549, 3470, 4465, 4788, 4463, 4345, 4121, 3553, 3507, 4286, 4409, 4405, 4293, 3996, 3365, 3101, 4367, 4308, 4377, 4176, 3802, 3282, 3064, 4247, 4265, 4050],['Peopleperhour.com',274, 288, 266, 232, 126, 186, 251, 322, 282, 256, 209, 114, 133, 179, 245, 261, 265, 221, 122, 120, 261, 318, 288, 262, 219, 125, 149, 278, 263, 285],['Guru.com',135, 148, 109, 131, 57, 61, 153, 166, 137, 126, 130, 71, 66, 101, 105, 136, 107, 118, 66, 60, 131, 145, 147, 104, 130, 57, 44, 116, 119, 138],['Etxt.ru',2592, 2632, 2341, 2990, 2467, 2391, 3293, 2637, 2735, 3026, 2104, 1152, 1334, 2980, 3190, 3094, 2973, 3130, 1999, 3003, 2782, 2442, 2736, 3443, 3072, 2556, 2461, 3419, 3691, 3234],['YouDo.com',3919, 3986, 3776, 3381, 2639, 2523, 3799, 3624, 3625, 3586, 3393, 2730, 2661, 3750, 3753, 3715, 3462, 3423, 2702, 2765, 3915, 3734, 3747, 3641, 3361, 2629, 2553, 2972, 3728, 3750],['Freelance.ua',121, 125, 104, 97, 47, 43, 107, 101, 122, 96, 85, 52, 63, 104, 74, 93, 115, 70, 46, 59, 83, 109, 101, 94, 66, 51, 51, 99, 105, 92],['Text.ru',721, 901, 612, 503, 331, 254, 584, 771, 700, 505, 484, 483, 467, 614, 751, 620, 525, 515, 294, 325, 580, 485, 726, 604, 534, 304, 355, 431, 520, 616],['Advego.com',600, 492, 556, 579, 222, 224, 702, 482, 483, 514, 479, 200, 178, 561, 479, 554, 563, 440, 216, 192, 561, 454, 633, 567, 381, 227, 104, 312, 505, 565],['Kabannchik.ua',2522, 1989, 1932, 1551, 1065, 1168, 1867, 1964, 1882, 1865, 1667, 1377, 1183, 2139, 1818, 1771, 1829, 1600, 1278, 1217, 1501, 871, 0, 0, 1654, 0, 0, 9267, 2469, 2422], ], type: 'spline', }, axis: { x: { type: 'timeseries', tick: { format: '%Y-%m-%d' } }, y: { label: { text: 'Projects per day', position: 'outer-middle' } } }, grid: { y: { show: true } }, tooltip: { format: { value: function(value, ratio, id) { return d3.format(",")(value); } } }, }); var chart_budget = c3.generate({ bindto: '#container', data: { x: 'x', xFormat: '%Y-%m-%d', // how the date is parsed columns: [ ['x', time_new[0], time_new[1], time_new[2], time_new[3], time_new[4], time_new[5], time_new[6], time_new[7], time_new[8], time_new[9], time_new[10], time_new[11], time_new[12], time_new[13], time_new[14], time_new[15], time_new[16], time_new[17], time_new[18], time_new[19], time_new[20], time_new[21], time_new[22], time_new[23], time_new[24], time_new[25], time_new[26], time_new[27], time_new[28], time_new[29]], ['Fl.ru',305110, 240573, 271169, 227175, 109254, 105795, 258734, 335205, 406095, 344589, 209334, 110510, 117080, 296672, 310831, 380385, 387593, 222412, 149574, 88490, 257961, 330157, 306992, 277914, 208529, 115714, 134251, 215099, 349757, 325825],['Freelancehunt.com',44097, 36891, 55850, 26639, 26924, 18758, 37819, 33612, 26349, 43498, 24407, 41712, 20124, 28414, 27170, 36169, 32991, 44216, 14567, 17660, 33518, 41358, 45945, 26112, 37294, 23533, 16997, 21072, 27850, 56864],['Habr.freelance',17857, 41067, 33832, 34024, 49626, 8114, 25708, 26777, 52218, 36633, 26245, 49835, 17284, 41356, 37868, 36504, 16211, 14275, 12367, 11264, 43194, 34626, 39417, 83334, 11391, 19397, 17227, 19565, 22897, 39003],['Weblancer.net',11266, 12188, 7339, 3549, 2509, 4982, 14191, 13616, 8105, 8785, 38799, 2948, 16664, 6959, 8981, 10246, 14642, 20122, 13559, 2289, 12092, 3602, 216935, 6380, 7823, 1243, 6896, 18532, 4276, 46969],['Freelance.ru',18374, 27927, 19433, 27633, 8175, 17534, 26851, 14568, 32736, 20126, 24068, 7362, 20023, 28430, 29177, 22206, 31070, 22741, 17996, 14197, 20903, 39265, 37678, 20676, 25330, 7062, 6292, 24669, 27915, 23171],['Freelance.youdo.com',32585, 27318, 27001, 23757, 20061, 17645, 23604, 23148, 25582, 18344, 16171, 12331, 12774, 29515, 16202, 28462, 21768, 25375, 12904, 17744, 32657, 23876, 32012, 26332, 27845, 14795, 10078, 18915, 18775, 30268],['Upwork.com',8571449, 6048075, 4082365, 2501348, 3439469, 3387355, 4119367, 5995311, 3701164, 2743406, 2507308, 2268532, 4252664, 3719789, 5918031, 5717183, 8260198, 8975265, 2357283, 3883643, 4354050, 6612663, 5164488, 5227185, 4722943, 3185354, 2211908, 3844083, 6242525, 2946348],['Freelancer.com',2978043, 2247737, 3679754, 3416773, 2063754, 1789745, 3179041, 3744489, 2637571, 3039907, 2016387, 1642864, 2857261, 2167799, 4657443, 2091320, 2245514, 2124672, 1934919, 1437041, 2474175, 2358667, 2431212, 2358405, 2567682, 1821576, 3572736, 2115321, 2970915, 6430463],['Peopleperhour.com',93142, 60980, 53254, 50118, 40326, 48557, 72159, 111041, 56132, 72767, 53970, 42169, 35350, 43353, 59082, 71604, 72248, 44619, 32328, 18732, 54969, 115708, 65401, 61048, 61188, 29539, 47910, 92141, 63661, 116940],['Guru.com',77755, 97720, 86174, 57245, 20592, 14471, 63309, 119336, 39634, 76623, 94548, 17928, 72673, 51341, 217577, 47524, 34075, 75713, 12519, 67999, 131123, 100904, 66375, 134882, 91486, 10679, 36799, 78438, 57027, 69077],['Etxt.ru',6841, 6632, 6373, 9282, 4336, 4932, 7978, 8031, 7012, 7637, 5890, 2987, 3290, 7343, 7053, 6869, 6387, 6848, 3746, 4990, 9417, 6541, 6600, 7217, 6352, 3858, 3650, 6200, 7261, 8682],['YouDo.com',922068, 890168, 839974, 737461, 526959, 627684, 882107, 868227, 795592, 918388, 694499, 858552, 551307, 863821, 916195, 782401, 764057, 780408, 566620, 616478, 993944, 998022, 887972, 749273, 925892, 548946, 443023, 712626, 777596, 809158],['Freelance.ua',14088, 56709, 9131, 13365, 16266, 6010, 11553, 11091, 15181, 11154, 6056, 7844, 2801, 11506, 18554, 17922, 10045, 12058, 6820, 3031, 3944, 9652, 7483, 8734, 8264, 6508, 12219, 9980, 17626, 15325],['Text.ru',2192, 2111, 1742, 2019, 1261, 874, 3382, 3706, 1994, 1726, 1088, 1069, 1698, 1703, 7611, 2092, 2053, 1723, 1370, 1237, 1708, 2867, 3067, 2154, 1687, 919, 1050, 1252, 2047, 6746],['Advego.com',1413, 1076, 1382, 1247, 360, 315, 1012, 1047, 976, 919, 1131, 429, 301, 1112, 928, 1363, 1155, 790, 421, 456, 1258, 921, 1191, 1162, 743, 399, 119, 780, 1135, 1111],['Kabannchik.ua',167265, 122638, 143053, 82279, 63316, 67830, 132835, 150985, 110637, 125883, 113363, 70000, 75711, 162015, 152079, 101256, 127193, 86763, 71759, 68100, 86429, 60607, 0, 0, 136553, 0, 0, 637847, 179410, 156345], ], type: 'spline', }, axis: { x: { type: 'timeseries', tick: { format: '%Y-%m-%d' } }, y: { label: { text: '$ in a day', position: 'outer-middle' }, tick: { format: d3.format(".1s") } } }, grid: { y: { show: true } }, tooltip: { format: { value: function(value, ratio, id) { return d3.format("$,")(value); } } }, }); var chart_all_projects = c3.generate({ bindto: '#container5', data: { x: 'x', xFormat: '%Y-%m-%d', // how the date is parsed columns: [ ['x', time_new[0], time_new[1], time_new[2], time_new[3], time_new[4], time_new[5], time_new[6], time_new[7], time_new[8], time_new[9], time_new[10], time_new[11], time_new[12], time_new[13], time_new[14], time_new[15], time_new[16], time_new[17], time_new[18], time_new[19], time_new[20], time_new[21], time_new[22], time_new[23], time_new[24], time_new[25], time_new[26], time_new[27], time_new[28], time_new[29]], ['Projects', 27471, 26767, 25379, 23320, 16776, 16501, 26258, 26476, 25610, 25191, 22254, 16192, 16153, 25645, 26609, 26631, 26001, 23783, 16670, 17191, 26339, 25314, 24936, 24508, 23187, 15556, 14894, 31886, 27498, 27022] ], type: 'area-spline', }, axis: { x: { type: 'timeseries', tick: { format: '%Y-%m-%d' }, show: false, }, y: { show: false, } }, legend: { hide: true }, point: { show: false }, color: { pattern: ['#0aac41'] }, tooltip: { format: { value: function(value, ratio, id) { return d3.format(",")(value); } } }, }); var chart_all_budget = c3.generate({ bindto: '#container4', data: { x: 'x', xFormat: '%Y-%m-%d', // how the date is parsed columns: [ ['x', time_new[0], time_new[1], time_new[2], time_new[3], time_new[4], time_new[5], time_new[6], time_new[7], time_new[8], time_new[9], time_new[10], time_new[11], time_new[12], time_new[13], time_new[14], time_new[15], time_new[16], time_new[17], time_new[18], time_new[19], time_new[20], time_new[21], time_new[22], time_new[23], time_new[24], time_new[25], time_new[26], time_new[27], time_new[28], time_new[29]], ['Budget', 13263545, 9919810, 9317826, 7213914, 6393188, 6120601, 8859650, 11460190, 7916978, 7470385, 5854514, 5246367, 8261460, 7672070, 12575571, 9668813, 12223702, 12625139, 5344245, 6477813, 8823261, 11028556, 9518054, 9309284, 9018042, 5910598, 6709072, 7995852, 11153444, 11271932] ], type: 'area-spline', }, axis: { x: { type: 'timeseries', tick: { format: '%Y-%m-%d' }, show: false, }, y: { show: false, } }, legend: { hide: true }, point: { show: false }, color: { pattern: ['#ff8204'] }, tooltip: { format: { value: function(value, ratio, id) { return d3.format("$,")(value); } } }, }); var chart_pie_budget = c3.generate({ bindto: '#container2', data: { // iris data from R columns: [ ['Fl.ru',305110, 240573, 271169, 227175, 109254, 105795, 258734, 335205, 406095, 344589, 209334, 110510, 117080, 296672, 310831, 380385, 387593, 222412, 149574, 88490, 257961, 330157, 306992, 277914, 208529, 115714, 134251, 215099, 349757, 325825],['Freelancehunt.com',44097, 36891, 55850, 26639, 26924, 18758, 37819, 33612, 26349, 43498, 24407, 41712, 20124, 28414, 27170, 36169, 32991, 44216, 14567, 17660, 33518, 41358, 45945, 26112, 37294, 23533, 16997, 21072, 27850, 56864],['Habr.freelance',17857, 41067, 33832, 34024, 49626, 8114, 25708, 26777, 52218, 36633, 26245, 49835, 17284, 41356, 37868, 36504, 16211, 14275, 12367, 11264, 43194, 34626, 39417, 83334, 11391, 19397, 17227, 19565, 22897, 39003],['Weblancer.net',11266, 12188, 7339, 3549, 2509, 4982, 14191, 13616, 8105, 8785, 38799, 2948, 16664, 6959, 8981, 10246, 14642, 20122, 13559, 2289, 12092, 3602, 216935, 6380, 7823, 1243, 6896, 18532, 4276, 46969],['Freelance.ru',18374, 27927, 19433, 27633, 8175, 17534, 26851, 14568, 32736, 20126, 24068, 7362, 20023, 28430, 29177, 22206, 31070, 22741, 17996, 14197, 20903, 39265, 37678, 20676, 25330, 7062, 6292, 24669, 27915, 23171],['Freelance.youdo.com',32585, 27318, 27001, 23757, 20061, 17645, 23604, 23148, 25582, 18344, 16171, 12331, 12774, 29515, 16202, 28462, 21768, 25375, 12904, 17744, 32657, 23876, 32012, 26332, 27845, 14795, 10078, 18915, 18775, 30268],['Upwork.com',8571449, 6048075, 4082365, 2501348, 3439469, 3387355, 4119367, 5995311, 3701164, 2743406, 2507308, 2268532, 4252664, 3719789, 5918031, 5717183, 8260198, 8975265, 2357283, 3883643, 4354050, 6612663, 5164488, 5227185, 4722943, 3185354, 2211908, 3844083, 6242525, 2946348],['Freelancer.com',2978043, 2247737, 3679754, 3416773, 2063754, 1789745, 3179041, 3744489, 2637571, 3039907, 2016387, 1642864, 2857261, 2167799, 4657443, 2091320, 2245514, 2124672, 1934919, 1437041, 2474175, 2358667, 2431212, 2358405, 2567682, 1821576, 3572736, 2115321, 2970915, 6430463],['Peopleperhour.com',93142, 60980, 53254, 50118, 40326, 48557, 72159, 111041, 56132, 72767, 53970, 42169, 35350, 43353, 59082, 71604, 72248, 44619, 32328, 18732, 54969, 115708, 65401, 61048, 61188, 29539, 47910, 92141, 63661, 116940],['Guru.com',77755, 97720, 86174, 57245, 20592, 14471, 63309, 119336, 39634, 76623, 94548, 17928, 72673, 51341, 217577, 47524, 34075, 75713, 12519, 67999, 131123, 100904, 66375, 134882, 91486, 10679, 36799, 78438, 57027, 69077],['Etxt.ru',6841, 6632, 6373, 9282, 4336, 4932, 7978, 8031, 7012, 7637, 5890, 2987, 3290, 7343, 7053, 6869, 6387, 6848, 3746, 4990, 9417, 6541, 6600, 7217, 6352, 3858, 3650, 6200, 7261, 8682],['YouDo.com',922068, 890168, 839974, 737461, 526959, 627684, 882107, 868227, 795592, 918388, 694499, 858552, 551307, 863821, 916195, 782401, 764057, 780408, 566620, 616478, 993944, 998022, 887972, 749273, 925892, 548946, 443023, 712626, 777596, 809158],['Freelance.ua',14088, 56709, 9131, 13365, 16266, 6010, 11553, 11091, 15181, 11154, 6056, 7844, 2801, 11506, 18554, 17922, 10045, 12058, 6820, 3031, 3944, 9652, 7483, 8734, 8264, 6508, 12219, 9980, 17626, 15325],['Text.ru',2192, 2111, 1742, 2019, 1261, 874, 3382, 3706, 1994, 1726, 1088, 1069, 1698, 1703, 7611, 2092, 2053, 1723, 1370, 1237, 1708, 2867, 3067, 2154, 1687, 919, 1050, 1252, 2047, 6746],['Advego.com',1413, 1076, 1382, 1247, 360, 315, 1012, 1047, 976, 919, 1131, 429, 301, 1112, 928, 1363, 1155, 790, 421, 456, 1258, 921, 1191, 1162, 743, 399, 119, 780, 1135, 1111],['Kabannchik.ua',167265, 122638, 143053, 82279, 63316, 67830, 132835, 150985, 110637, 125883, 113363, 70000, 75711, 162015, 152079, 101256, 127193, 86763, 71759, 68100, 86429, 60607, 0, 0, 136553, 0, 0, 637847, 179410, 156345], ], type: 'pie', }, tooltip: { format: { value: function(value, ratio, id) { return d3.format("$,")(value); } } }, }); var chart_pie_projects = c3.generate({ bindto: '#container3', data: { columns: [ ['Fl.ru',941, 1009, 832, 868, 477, 497, 1042, 933, 998, 907, 798, 506, 424, 1051, 915, 884, 1051, 720, 415, 386, 971, 953, 895, 1007, 677, 406, 425, 654, 888, 915],['Freelancehunt.com',573, 563, 591, 429, 289, 255, 552, 521, 480, 532, 399, 239, 288, 520, 532, 469, 488, 409, 239, 215, 499, 514, 522, 473, 411, 240, 218, 472, 460, 456],['Habr.freelance',115, 141, 121, 86, 56, 57, 122, 111, 100, 122, 106, 69, 60, 124, 141, 95, 101, 90, 71, 54, 127, 142, 117, 105, 88, 60, 46, 78, 127, 133],['Weblancer.net',223, 207, 205, 159, 99, 103, 181, 197, 177, 162, 176, 125, 126, 226, 179, 195, 203, 144, 102, 77, 203, 194, 189, 192, 135, 76, 85, 147, 185, 185],['Freelance.ru',355, 406, 346, 364, 176, 171, 392, 362, 382, 334, 304, 157, 221, 384, 373, 358, 352, 302, 186, 176, 401, 399, 366, 373, 283, 193, 159, 238, 366, 363],['Freelance.youdo.com',192, 174, 155, 143, 118, 111, 182, 149, 178, 168, 125, 116, 101, 187, 183, 199, 168, 172, 101, 109, 186, 191, 182, 181, 180, 102, 99, 147, 157, 186],['Upwork.com',9447, 8972, 8872, 7574, 5058, 4987, 8566, 9348, 8866, 8647, 7554, 4867, 4924, 7750, 8801, 9111, 8806, 7829, 5113, 4947, 9125, 9332, 9322, 8613, 7639, 4884, 4710, 8545, 9041, 9009],['Freelancer.com',4741, 4734, 4561, 4233, 3549, 3470, 4465, 4788, 4463, 4345, 4121, 3553, 3507, 4286, 4409, 4405, 4293, 3996, 3365, 3101, 4367, 4308, 4377, 4176, 3802, 3282, 3064, 4247, 4265, 4050],['Peopleperhour.com',274, 288, 266, 232, 126, 186, 251, 322, 282, 256, 209, 114, 133, 179, 245, 261, 265, 221, 122, 120, 261, 318, 288, 262, 219, 125, 149, 278, 263, 285],['Guru.com',135, 148, 109, 131, 57, 61, 153, 166, 137, 126, 130, 71, 66, 101, 105, 136, 107, 118, 66, 60, 131, 145, 147, 104, 130, 57, 44, 116, 119, 138],['Etxt.ru',2592, 2632, 2341, 2990, 2467, 2391, 3293, 2637, 2735, 3026, 2104, 1152, 1334, 2980, 3190, 3094, 2973, 3130, 1999, 3003, 2782, 2442, 2736, 3443, 3072, 2556, 2461, 3419, 3691, 3234],['YouDo.com',3919, 3986, 3776, 3381, 2639, 2523, 3799, 3624, 3625, 3586, 3393, 2730, 2661, 3750, 3753, 3715, 3462, 3423, 2702, 2765, 3915, 3734, 3747, 3641, 3361, 2629, 2553, 2972, 3728, 3750],['Freelance.ua',121, 125, 104, 97, 47, 43, 107, 101, 122, 96, 85, 52, 63, 104, 74, 93, 115, 70, 46, 59, 83, 109, 101, 94, 66, 51, 51, 99, 105, 92],['Text.ru',721, 901, 612, 503, 331, 254, 584, 771, 700, 505, 484, 483, 467, 614, 751, 620, 525, 515, 294, 325, 580, 485, 726, 604, 534, 304, 355, 431, 520, 616],['Advego.com',600, 492, 556, 579, 222, 224, 702, 482, 483, 514, 479, 200, 178, 561, 479, 554, 563, 440, 216, 192, 561, 454, 633, 567, 381, 227, 104, 312, 505, 565],['Kabannchik.ua',2522, 1989, 1932, 1551, 1065, 1168, 1867, 1964, 1882, 1865, 1667, 1377, 1183, 2139, 1818, 1771, 1829, 1600, 1278, 1217, 1501, 871, 0, 0, 1654, 0, 0, 9267, 2469, 2422], ], type: 'pie', }, tooltip: { format: { value: function(value, ratio, id) { return d3.format(",")(value); } } }, }); });