PageSourceSearch

https://autocosts.info/client/chart/worldStatsChart.js

js autocosts.info collected 2026-10-02 21:31:13 UTC 2,140 bytes, 1 lines download raw bytes

1!function(){var a=document.getElementById('global_variables'),a=JSON.parse(decodeURI(a.dataset.words)),e=document.getElementById('chart'),t=JSON.parse(decodeURI(e.dataset.stats_data)),r=JSON.parse(decodeURI(e.dataset.stats_labels)),d=r.length;$('.worldStats-car-costs-chart').height(50*d);var e='#2ba3d6',o='#10c6e6',n='#5ae0e2',l='#99e6bc',s='#ffda70',i='#ff9e84',c='#ff7192',b='#e562aa',u='#ea90cd',f='#eabcef',g='#9f97ef',p='#867ae3',k=[{label:a.depreciation_st,data:t.depreciation,backgroundColor:e},{label:a.insurance_short,data:t.insurance,backgroundColor:o},{label:a.credit,data:t.credit,backgroundColor:n},{label:a.inspection_short,data:t.inspection,backgroundColor:l},{label:a.road_taxes_short,data:t.roadTaxes,backgroundColor:s},{label:a.maintenance,data:t.maintenance,backgroundColor:c},{label:a.rep_improv,data:t.repairsImprovements,backgroundColor:b},{label:a.fuel,data:t.fuel,backgroundColor:i},{label:a.parking,data:t.parking,backgroundColor:u},{label:a.tolls,data:t.tolls,backgroundColor:f},{label:a.fines,data:t.fines,backgroundColor:g},{label:a.washing,data:t.washing,backgroundColor:p}],C=new Chart('worldStatsChart',{type:'horizontalBar',data:{labels:r,datasets:k},options:{maintainAspectRatio:!1,legend:{position:'bottom',display:!0,labels:{usePointStyle:!0,fontSize:10,fontColor:'#868790'},onClick:function(a,e){Chart.defaults.global.legend.onClick.call(this,a,e),h()}},scales:{xAxes:[{stacked:!0,ticks:{beginAtZero:!0,fontSize:12,callback:function(a,e,t){return'€'+a}}}],yAxes:[{stacked:!0,ticks:{fontSize:12}}]},tooltips:{enabled:!0,callbacks:{label:function(a,e){e=e.datasets[a.datasetIndex].label||'';return e&&(e+=': '),e+='€'+a.xLabel.toFixed(0)}}},animation:{duration:1e3,easing:'linear'}}}),h=function(){for(var a,e=[],t=k.length,o=0;o<d;o++){for(var n=0,l=0;l<t;l++)C.isDatasetVisible(l)&&(n+=k[l].data[o]);e[o]=n}for((a=e.map(function(a,e){return{index:e,country:r[e],value:a}})).sort(function(a,e){return e.value-a.value}),l=0;l<t;l++)k[l].data=function(e){return a.map(function(a){return k[e].data[a.index]})}(l);r=a.map(function(a){return r[a.index]}),C.data.labels=r,C.data.datasets=k,C.update()}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.