<div dir="ltr"><div><div>Hi there,<br>I am trying to use the json file exported from a PageOneX thread to make other d3 visualizations using data from multiple threads.<br><br></div>The version that I need, with all the values properly written (code, media, date) should look like:<br>
</div><div>A.<br></div><div><font size="1"><span style="font-family:courier new,monospace">{<br>"media":["Buenos Aires Económico","Buenos Aires Herald"],<br>"codes":["First code","Second Code"],<br>
"dates":["2013-09-02","2013-09-03","2013-09-04"],<br>"colors":{"First code":"#ff0000","Second Code":"#9900ff"},<br>"data": [<br>
{"id":"2013-09-02:Buenos Aires Económico:First code","date":"2013-09-02","media":"Buenos Aires Económico","country":"Argentina","code":"First code","percent":0.886107948969578,"image_count":2},<br>
{"id":"2013-09-02:Buenos Aires Económico:Second Code","date":"2013-09-02","media":"Buenos Aires Económico","country":"Argentina","code":"Second Code","percent":0.0,"image_count":2},<br>
{"id":"2013-09-02:Buenos Aires Herald:First code","date":"2013-09-02","media":"Buenos Aires Herald","country":"Argentina","code":"First code","percent":0.0,"image_count":2},<br>
{"id":"2013-09-02:Buenos Aires Herald:Second Code","date":"2013-09-02","media":"Buenos Aires Herald","country":"Argentina","code":"Second Code","percent":0.28644534412955464,"image_count":2},<br>
{"id":"2013-09-03:Buenos Aires Económico:First code","date":"2013-09-03","media":"Buenos Aires Económico","country":"Argentina","code":"First code","percent":0.0,"image_count":2},<br>
{"id":"2013-09-03:Buenos Aires Económico:Second Code","date":"2013-09-03","media":"Buenos Aires Económico","country":"Argentina","code":"Second Code","percent":0.0,"image_count":2},<br>
{"id":"2013-09-03:Buenos Aires Herald:First code","date":"2013-09-03","media":"Buenos Aires Herald","country":"Argentina","code":"First code","percent":0.0,"image_count":2},<br>
{"id":"2013-09-03:Buenos Aires Herald:Second Code","date":"2013-09-03","media":"Buenos Aires Herald","country":"Argentina","code":"Second Code","percent":0.0,"image_count":2},<br>
{"id":"2013-09-04:Buenos Aires Económico:First code","date":"2013-09-04","media":"Buenos Aires Económico","country":"Argentina","code":"First code","percent":0.3507912159947558,"image_count":2},<br>
{"id":"2013-09-04:Buenos Aires Económico:Second Code","date":"2013-09-04","media":"Buenos Aires Económico","country":"Argentina","code":"Second Code","percent":0.1576519174041298,"image_count":2},<br>
{"id":"2013-09-04:Buenos Aires Herald:First code","date":"2013-09-04","media":"Buenos Aires Herald","country":"Argentina","code":"First code","percent":0.0,"image_count":2},<br>
{"id":"2013-09-04:Buenos Aires Herald:Second Code","date":"2013-09-04","media":"Buenos Aires Herald","country":"Argentina","code":"Second Code","percent":0.15508502024291498,"image_count":2}]}</span></font><br>
<br><br></div>But what I get from the export.json ifle is:<br><div><br>B.<br><span style="font-family:courier new,monospace"><font size="1">{"media":["Buenos Aires Económico","Buenos Aires Herald"],<br>
"codes":["First code","Second Code"],<br>"dates":["2013-09-02","2013-09-03","2013-09-04"],<br>"colors":{"First code":"#ff0000","Second Code":"#9900ff"},<br>
"data":{<br>"2013-09-02":{"Buenos Aires Económico":{"First code":0.886107948969578,"Second Code":0.0},"Buenos Aires Herald":{"First code":0.0,"Second Code":0.28644534412955464},"Total":{"First code":0.443053974484789,"Second Code":0.14322267206477732}},<br>
"2013-09-03":{"Buenos Aires Económico":{"First code":0.0,"Second Code":0.0},"Buenos Aires Herald":{"First code":0.0,"Second Code":0.0},"Total":{"First code":0.0,"Second Code":0.0}},<br>
"2013-09-04":{"Buenos Aires Económico":{"First code":0.3507912159947558,"Second Code":0.1576519174041298},"Buenos Aires Herald":{"First code":0.0,"Second Code":0.15508502024291498},"Total":{"First code":0.1753956079973779,"Second Code":0.1563684688235224}}}}<br>
</font></span><br>Esentially B hasthe same data that A but coded simpler and with no "keys". <br>I need the A option, how can I get it or obtain in from the B option? Would it be better to offer a export.json file like the A option instead of the B option.</div>
<div><br></div><div>Thanks!<br>p<br></div></div>