<link rel="stylesheet" type="text/css" href="https://tere-tech.eu/balticfinns/wp-content/plugins/d3-simplecharts/d3chart.css" /><style></style><link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /><script src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script><script src="/balticfinns/wp-content/plugins/d3-simplecharts/d3.min.js"></script><script src="/balticfinns/wp-content/plugins/d3-simplecharts/d3-simpleCharts.js"></script><!-- Start of d3 simpleCharts -->

<script>

var url = '';
var chartid = 'chart1712941055';
var tableid = 'table1712941055';
var title = ' title="Kuluttajaluottamuksen kehitys" ';
var url = '';

// Moving to browsers's JS now ...

// A magical glue: dumping server's php JSON for browser's JS variable, one line
var args2js = {"root":"https:\/\/tere-tech.eu\/balticfinns\/wp-content\/plugins\/d3-simplecharts\/","cssfile":"d3chart.css","uniq":1712941055,"chartid":null,"data":[],"chart":"columns","xtitle":"Eri osa-alueet gallupista","ytitle":"Suhteellinen m\u00e4\u00e4r\u00e4","xrotate":"-20","datafile":"stats\/eki.tsv","row":"last","column":"","maxseries":0,"sort":"","format":"+00.02","width":"450","height":"200","margin":{"top":20,"right":20,"bottom":30,"left":70},"ticks":10,"minrange":"-40","maxrange":"60","startbar":"red","endbar":"lime","gradient":"value","colors":"","title":"Perheet Virossa","caption":"Kuluttaluottamuksen kehityst\u00e4 kuukausittain Virossa.","tooltips":0};
// console.info(args2js);

// Writing separate data sets into its global array
if (typeof d3charts == 'undefined') 
	d3charts = new Array();
// d3charts[args2js.title] = args2js;
d3charts.push(args2js);

var rootp = 'https://tere-tech.eu/balticfinns/wp-content/plugins/d3-simplecharts/icons/'

// All existing chart types & their names
var ctype = ["'columns'","'bars'","'area'","'line'","'pie'"];
var cicons = ["columns.png","bars.png","area.png","line.png","pie.png"];

// Referring to just now added one for creating its buttons
var last_chart = d3charts.length-1;
d3charts[last_chart].ind = last_chart;

var fontx = ' style="font-size:xx-small; cursor:pointer;" ';

var icoroot = args2js.root+'icons/';
var butts = aDrawLink(last_chart,ctype[0],icoroot+cicons[0]);
butts += aDrawLink(last_chart,ctype[2],icoroot+cicons[2]);
butts += aDrawLink(last_chart,ctype[3],icoroot+cicons[3]);
butts += aDrawLink(last_chart,ctype[1],icoroot+cicons[1]);
butts += aDrawLink(last_chart,ctype[4],icoroot+cicons[4]);

var slider = 0;
if (0==0) {  // Slider of time series showing out
	slider = 1;
}

var idX = "'1712941055'";

var otherbutt = ' <button '+fontx+' onclick="extendData(d3charts['+last_chart+'],'+last_chart+','+slider+','+idX+')" title="Extend to other data sets" id="databutt1712941055">Aiemmat kuukaudet</button>';

if (0==1) {  // No buttons: chart switcher 
	butts = '';
}
if (0==1) {  // No buttons: more data
	otherbutt = '';
}

// Embed link element
var cid = 'chart1712941055';
var url2 = 'https://tere-tech.eu/balticfinns/wp-content/plugins/d3-simplecharts/embed.php';  // encodeURIComponent(el.innerText)
// var cid2 = "'"+cid+"'";
var cid2 = "'1712941055'"; 

// embed link, TODO
// var elink = '<a href="'+url2+'?chartid='+showembed(cid2)+'" target="_blank">Embed</a>';
// var elink = '<a onclick="showembed('+cid2+')" target="_blank">Embed</a>';
elink = '';

// new window popup's opening
var logofile = 'wp-content/uploads/2013/04/bn4f_24x24.png';
	logofile = "'"+logofile+"'";
// style file name
var cssfile = "'d3chart.css'";

var sortL = "'"+last_chart+"'";
var embed = '<tr><td style="text-align:right"><span>'+elink+'</span></td></tr>'; // TODO
var sortbutt = '<select '+fontx+' id="xsort'+last_chart+'" onchange="sort('+sortL+')"><option value="label">Sort</option><option value="abc">1-2-3</option><option value="cba">3-2-1</option></select>';

// Our chart container in HTML is <table> element with custom styles for new chart
var html = '<table id= "'+ tableid +'" class="svgtable" style="" width="'+(50+parseInt(args2js.width))+'">';
// var html = '<table id= "'+ tableid +'" class="svgtable" style="" width="100%">';
// if ('0')
	html = html+embed;

var dataflip = ' <button title="Move popup data down into chart" onclick="dataZoom(d3charts['+last_chart+'],'+last_chart+','+slider+','+idX+')">';
dataflip = dataflip + '<img src="' + icoroot + 'arrow_down.gif"> </button> ';
if (!args2js.datafile)
	dataflip = '';
if (0==1)
	dataflip = '';

// butts group on table
html = html + '<tr><td><span class="actbox actlayout">'+butts;
html = html + '<br />'+sortbutt+dataflip+'<span id="extras">'+otherbutt+'</span></span></td></tr>';

	if ("bottom" == "top")
		html = html + '<tr><td><br /></td></tr>'; // Logo at top of chart

var newwin = ' <a style="cursor:pointer" title="Open Chart into New Window" onclick="svgWin('+cid2+','+logofile+','+cssfile+',d3charts['+last_chart+'])"><img width="15" height="15" src="'+args2js.root+'icons/newindow.jpg"></a> ';

var chartX = '<div style="" id="'+ chartid + '"></div>';
if (url) // Here is row where D3 draws its chart - finally
	html = html + '<tr><td class="svgchart">'+newwin+'<a id="'+ chartid + '" ' + title + ' ' + url + '></a></td></tr>';
else
	// html = html + '<tr><td id="'+ chartid + '" ' + title + '></td></tr>';
	html = html + '<tr><td class="svgchart" ' + title + '>'+newwin+chartX+'</td></tr>';
/*
if (args2js.caption)
  if (args2js.chart == 'line')
	html = html + '<tr><td class="captiontext">'+args2js.caption+'</td></tr>';
*/
var id = "'"+chartid+"'";
var odform = "'table'";
html = html + '<tr><td id="'+ id + '" title="Data values"></td></tr>'; // Container of big data

var cc = '<tr><td style="font-size:x-small; float:left">Run by <b>W3C</b> open technology </td><td> <img src="wp-content/uploads/2013/04/bn4f_24x24.png"> </td></tr>';

var odataButt = '';
var odataButt2 = '';
var odataButt3 = '';
var buttgroup = '';

if (0==0) {

buttgroup = '<span class="actbox actlayout" >';

// Data export buttons
var odataButt = ' <button '+fontx+' onclick="openData(d3charts['+last_chart+'], '+id+')" title="Open chart\'s data to another big data application."> BIG DATA </button>';
var odataButt2 = ' <button '+fontx+' onclick="openData(d3charts['+last_chart+'], '+id+', '+odform+')" title="Open chart\'s data to Excel here or save it into text file."> Excel data </button>';

if (1==1) {
	odform="'svg'";
	odataButt3 = ' <button '+fontx+' onclick="openData(d3charts['+last_chart+'], '+id+', '+odform+')" title="Open chart to any SVG accepting graphics editor or save it locally into a file."> Save Chart </button>';
}
buttgroup = buttgroup +odataButt3+odataButt+odataButt2+ '</span>';
}

html = html + '<tr><td id="'+ chartid + 'odata" >'+buttgroup+'</td></tr>'+cc; 
html = html + '</table>';

d3charts[d3charts.length-1].html = html;

// console.info(d3charts[last_chart]);

if (d3charts[last_chart].chartid) { // chart has its container by user's input (needs JQuery, sorry)

// Tracking instance of active chart
// var lastOne = d3charts.length-1;
if (typeof chartQ == 'undefined') 
	var chartQ = new Array();
	chartQ.push(last_chart);

// console.info(chartQ);
	jQuery(document).ready(function() { // need to wait whole DOM loaded up
		var i = chartQ.shift();
		jQuery('#'+d3charts[i].chartid).append(d3charts[i].html);
		// console.info(i);
		// console.info(chartQ);
		newChart(d3charts[i]);
	});
} else { // This prints chart container at top of each WP page/post
	document.write(html); // This prints chart container at top of each WP page/post
	newChart(d3charts[last_chart]);
}

</script>

<!-- End of d3 simpleCharts -->
{"id":43119,"date":"2015-10-27T17:14:06","date_gmt":"2015-10-27T15:14:06","guid":{"rendered":"https:\/\/tere-tech.com\/balticfinns\/?p=43119"},"modified":"2015-10-27T17:14:06","modified_gmt":"2015-10-27T15:14:06","slug":"kotitalouksien-luottamus-102015-usko-maan-talouteen-vahvistui","status":"publish","type":"post","link":"https:\/\/tere-tech.eu\/balticfinns\/index.php\/2015\/10\/27\/kotitalouksien-luottamus-102015-usko-maan-talouteen-vahvistui\/","title":{"rendered":"Kotitalouksien luottamus 10\/2015: usko maan talouteen vahvistui"},"content":{"rendered":"\n<p><strong>EKI -kuluttajabarometrin<\/strong> mukaan perheiden luottamus nykytalouteen 2015 lokakuussa parani asteen ed kk n\u00e4hden. Yleinen luottamusindikaattori oli nyt -6 pistett\u00e4 (pitk\u00e4n aikav\u00e4lin keskiarvo on -9 pistett\u00e4 ja kk aiemmin se oli: -7).<\/p>\n<ul>\n<li>Luottamus Viron talouteen taas parani eniten (nyt 0\/&#8221;nolla&#8221; vs ed kk -4).<\/li>\n<\/ul>\n<p>Edellist\u00e4 massalamaa maassa kuvaava ty\u00f6tt\u00f6myyden ns &#8221;pelkokerroin&#8221; heikkeni nyt: +15. Ajatukset ty\u00f6tt\u00f6myydest\u00e4 ovat hyvin hitaassa teknisess\u00e4 kasvutrendiss\u00e4 maassa edelleen.<\/p>\n<p>Uutuus: t\u00e4ydensimme luottamushistoriaa lis\u00e4\u00e4 jo Viron 2006\/2007 kiinteist\u00f6buumista l\u00e4htien nykyhetkiin. T\u00e4m\u00e4 l\u00f6ytyy esiin graafista painamalla Sort -valikosta oikealle seuraavaa painiketta.<\/p>\n<p><em>L\u00e4hde:<\/em><\/p>\n<ul>\n<li>www.ki.ee\/baromeetrid\/baromeetrid.htm<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>EKI -kuluttajabarometrin mukaan perheiden luottamus nykytalouteen 2015 lokakuussa parani asteen ed kk n\u00e4hden. Yleinen luottamusindikaattori oli nyt -6 pistett\u00e4 (pitk\u00e4n aikav\u00e4lin keskiarvo on -9 pistett\u00e4 ja kk aiemmin se oli: -7). Luottamus Viron talouteen taas parani eniten (nyt 0\/&#8221;nolla&#8221; vs ed kk -4). Edellist\u00e4 massalamaa maassa kuvaava ty\u00f6tt\u00f6myyden ns &#8221;pelkokerroin&#8221; heikkeni nyt: +15. Ajatukset ty\u00f6tt\u00f6myydest\u00e4 &#8230; <a title=\"Kotitalouksien luottamus 10\/2015: usko maan talouteen vahvistui\" class=\"read-more\" href=\"https:\/\/tere-tech.eu\/balticfinns\/index.php\/2015\/10\/27\/kotitalouksien-luottamus-102015-usko-maan-talouteen-vahvistui\/\" aria-label=\"Lue lis\u00e4\u00e4 aiheesta Kotitalouksien luottamus 10\/2015: usko maan talouteen vahvistui\">Lue lis\u00e4\u00e4<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[31,16],"tags":[74,105,195,376,406],"_links":{"self":[{"href":"https:\/\/tere-tech.eu\/balticfinns\/index.php\/wp-json\/wp\/v2\/posts\/43119"}],"collection":[{"href":"https:\/\/tere-tech.eu\/balticfinns\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tere-tech.eu\/balticfinns\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tere-tech.eu\/balticfinns\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tere-tech.eu\/balticfinns\/index.php\/wp-json\/wp\/v2\/comments?post=43119"}],"version-history":[{"count":0,"href":"https:\/\/tere-tech.eu\/balticfinns\/index.php\/wp-json\/wp\/v2\/posts\/43119\/revisions"}],"wp:attachment":[{"href":"https:\/\/tere-tech.eu\/balticfinns\/index.php\/wp-json\/wp\/v2\/media?parent=43119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tere-tech.eu\/balticfinns\/index.php\/wp-json\/wp\/v2\/categories?post=43119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tere-tech.eu\/balticfinns\/index.php\/wp-json\/wp\/v2\/tags?post=43119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}