{"id":1485,"date":"2014-06-04T16:36:15","date_gmt":"2014-06-04T14:36:15","guid":{"rendered":"http:\/\/www.ozalto.com\/?p=1485"},"modified":"2015-08-23T23:49:10","modified_gmt":"2015-08-23T21:49:10","slug":"bar-graphs-with-indesign-easycatalog","status":"publish","type":"post","link":"https:\/\/www.ozalto.com\/en\/bar-graphs-with-indesign-easycatalog\/","title":{"rendered":"Bar graphs with InDesign &#038; EasyCatalog"},"content":{"rendered":"<p><strong>EasyCatalog is terrific<\/strong> for injecting large sets of data quickly and precisely. However, <strong>is it possible to create bar graphs<\/strong> thanks to this plugin ? <strong>Yes<\/strong> it is, <strong>all you need is a bit of\u00a0ingenuity\u2026<\/strong><\/p>\n<h3><!--more-->A) Raw data<\/h3>\n<p>For our demonstration, we will use some <strong>public open data<\/strong>. We will consider the evolution of the services business per country. These data can be found on the World Bank website\u00a0\u00a0: <a title=\"Donn\u00e9es de la Banque Mondiale\" href=\"http:\/\/donnees.banquemondiale.org\/indicateur\/BG.GSR.NFSV.GD.ZS\/countries\" target=\"_blank\"><span style=\"line-height: 1.5em;\">http:\/\/donnees.banquemondiale.org\/indicateur\/BG.GSR.NFSV.GD.ZS\/countries<\/span><\/a><\/p>\n<p>The data host a <strong>percentage of the services business<\/strong> between\u00a01960 et 2012. We will focus on the last value, established in 2012 and try to <strong>picture it as a bar graph<\/strong> thanks to <a href=\"http:\/\/www.65bit.com\/products\/easycatalog\/overview\/overview.shtm\" target=\"_blank\">EasyCatalog<\/a>.<\/p>\n<h3>B) Bar graphs<\/h3>\n<p>First of all, we draw <strong>a generic bar graph within Adobe Illustrator.<\/strong> Then we will <strong>call our bar within EasyCatalog<\/strong> and give it <strong>a dynamic width<\/strong> while using a specific field value, i.e. the 2012 percentage.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagramme_illustrator.png\"><img decoding=\"async\" class=\"aligncenter  wp-image-1470\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagramme_illustrator.png\" alt=\"diagramme_illustrator\" width=\"515\" height=\"334\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagramme_illustrator.png 735w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagramme_illustrator-300x194.png 300w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagramme_illustrator-530x343.png 530w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagramme_illustrator-92x60.png 92w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagramme_illustrator-485x315.png 485w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<h3>C) Custom field &#8220;b\u00e2ton&#8221;<\/h3>\n<p>Let&#8217;s create a\u00a0<strong>custom field within EasyCatalog <\/strong>called \u00a0<strong>&#8220;b\u00e2ton&#8221;<\/strong> : <a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/ajout_champ_personnalis\u00e9.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1471\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/ajout_champ_personnalis\u00e9.png\" alt=\"ajout d'un champ personnalis\u00e9 dans EasyCatalog\" width=\"464\" height=\"135\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/ajout_champ_personnalis\u00e9.png 464w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/ajout_champ_personnalis\u00e9-300x87.png 300w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/ajout_champ_personnalis\u00e9-120x34.png 120w\" sizes=\"(max-width: 464px) 100vw, 464px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton.png\"><img decoding=\"async\" class=\"aligncenter  wp-image-1472\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton.png\" alt=\"param\u00e9trage du champ personnalis\u00e9\" width=\"456\" height=\"398\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton.png 652w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton-300x261.png 300w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton-424x370.png 424w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton-68x60.png 68w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton-361x315.png 361w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/><\/a><\/p>\n<p>After validation, we get as expected a &#8220;bat\u00f4n&#8221; field within our data. <strong>Problem is, any single line is empty.<\/strong> No reference to our bar graph file at all !<\/p>\n<p><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton_vide.png\"><img decoding=\"async\" class=\"size-full wp-image-1481 aligncenter\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton_vide.png\" alt=\"champ baton vide\" width=\"265\" height=\"168\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton_vide.png 265w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/champ_baton_vide-94x60.png 94w\" sizes=\"(max-width: 265px) 100vw, 265px\" \/><\/a><\/p>\n<p><strong>How to get every line to reference our &#8220;&#8221;baton.ai&#8221; file ?\u00a0<\/strong>One could think about modifying its source data\u2026There is much better to do. <strong>We are going to use the cleansing options.<\/strong> As all our lines are empty, we are<strong> replacing this emptiness with\u00a0&#8220;baton.ai&#8221;<\/strong> with this very simple instruction :\u00a0&#8220;<strong>=baton.ai;&#8221;<\/strong><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cleansing_baton.png\"><img decoding=\"async\" class=\"aligncenter  wp-image-1473\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cleansing_baton.png\" alt=\"cleansing baton\" width=\"456\" height=\"396\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cleansing_baton.png 651w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cleansing_baton-300x260.png 300w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cleansing_baton-425x370.png 425w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cleansing_baton-69x60.png 69w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cleansing_baton-362x315.png 362w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/><\/a><\/p>\n<p style=\"text-align: left;\"><strong>Doing so, every cell is now filled with\u00a0&#8220;baton.ai&#8221;<\/strong><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cellules-baton-ai.png\"><img decoding=\"async\" class=\"size-full wp-image-1474\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cellules-baton-ai.png\" alt=\"cellules remplies avec baton.ai\" width=\"286\" height=\"125\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cellules-baton-ai.png 286w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/cellules-baton-ai-120x52.png 120w\" sizes=\"(max-width: 286px) 100vw, 286px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">Now we have to tell EasyCatalog to <strong>consider this data as an image field.<\/strong> So the &#8220;baton.ai&#8221; is not just a string but a link towards a file on our computer.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/choix_dossier.png\"><img decoding=\"async\" class=\"aligncenter  wp-image-1475\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/choix_dossier.png\" alt=\"choix_dossier\" width=\"454\" height=\"394\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/choix_dossier.png 648w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/choix_dossier-300x260.png 300w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/choix_dossier-425x370.png 425w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/choix_dossier-69x60.png 69w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/choix_dossier-362x315.png 362w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">By setting the location of our file, <strong>EasyCatalog converts the field type. It&#8217;s now an &#8220;image&#8221; field.<\/strong> Besides, you can now preview the picture by hovering the column cells.<\/p>\n<p style=\"text-align: left;\"><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/previsualisation-image.png\"><img decoding=\"async\" class=\"size-full wp-image-1476 aligncenter\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/previsualisation-image.png\" alt=\"Previsualisation image\" width=\"315\" height=\"180\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/previsualisation-image.png 315w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/previsualisation-image-300x171.png 300w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/previsualisation-image-105x60.png 105w\" sizes=\"(max-width: 315px) 100vw, 315px\" \/><\/a><\/p>\n<p style=\"text-align: left;\"><strong>An essential input is still missing.<\/strong> At this state, the file would be placed as it is with 100% scale. <strong>We need to adjust our bar graph size to represent the data.\u00a0<\/strong><\/p>\n<p style=\"text-align: left;\">We will tell EasyCatalog to <strong>scale our bar graph based on the 2012 field value.<\/strong><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/reglage-echelle.png\"><img decoding=\"async\" class=\"aligncenter  wp-image-1477\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/reglage-echelle.png\" alt=\"reglage echelle\" width=\"451\" height=\"400\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/reglage-echelle.png 644w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/reglage-echelle-300x266.png 300w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/reglage-echelle-416x370.png 416w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/reglage-echelle-67x60.png 67w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/reglage-echelle-354x315.png 354w\" sizes=\"(max-width: 451px) 100vw, 451px\" \/><\/a><\/p>\n<h3 style=\"text-align: left;\">D) Use<\/h3>\n<p style=\"text-align: left;\">All we have left to do is to <strong>prepare our layout<\/strong>. Let&#8217;s take <strong>a very simple table<\/strong> for our demo :<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau_simple.png\"><img decoding=\"async\" class=\"aligncenter  wp-image-1478\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau_simple.png\" alt=\"tableau simple\" width=\"643\" height=\"109\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau_simple.png 919w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau_simple-300x50.png 300w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau_simple-800x135.png 800w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau_simple-530x89.png 530w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau_simple-120x20.png 120w\" sizes=\"(max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<p style=\"text-align: left;\"><strong>Let&#8217;s take a bunch of data and paginate it thanks to EasyCatalog.<\/strong><\/p>\n<p style=\"text-align: left;\"><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau-produit.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1479\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau-produit.png\" alt=\"tableau produit\" width=\"757\" height=\"343\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau-produit.png 757w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau-produit-300x135.png 300w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau-produit-530x240.png 530w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau-produit-120x54.png 120w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/tableau-produit-695x315.png 695w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/a><\/p>\n<p style=\"text-align: left;\"><strong>Et voil\u00e0 ! Nice bar graphs<\/strong> in just a few clicks. <strong>Other layouts can be achieved<\/strong>, still easy\u2011peasy !<\/p>\n<p style=\"text-align: left;\"><a href=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagrammes_generes.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1480\" src=\"http:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagrammes_generes.png\" alt=\"diagrammes en batons\" width=\"587\" height=\"500\" srcset=\"https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagrammes_generes.png 587w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagrammes_generes-300x255.png 300w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagrammes_generes-434x370.png 434w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagrammes_generes-70x60.png 70w, https:\/\/www.ozalto.com\/wp-content\/uploads\/2014\/06\/diagrammes_generes-369x315.png 369w\" sizes=\"(max-width: 587px) 100vw, 587px\" \/><\/a><\/p>\n<h3 style=\"text-align: left;\">E) Conclusion<\/h3>\n<p style=\"text-align: left;\"><strong>Create bar graphs with EasyCatalog is really possible.<\/strong> Even better, it&#8217;s easy ! This plugin is so smooth that everything seems feasible.<\/p>\n<p style=\"text-align: left;\">Sky is the limit. <strong><a title=\"Contact\" href=\"http:\/\/www.ozalto.com\/en\/about\/contact-2\/\">Feel free to get in touch<\/a> with us if you have other projects, we will analyze their\u00a0feasibility together !<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>EasyCatalog is terrific for injecting large sets of data quickly and precisely. However, is it possible to create bar graphs thanks to this plugin ? Yes it is, all you need is a bit of\u00a0ingenuity\u2026<\/p>\n","protected":false},"author":2,"featured_media":1482,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ozalto.com\/en\/wp-json\/wp\/v2\/posts\/1485\/"}],"collection":[{"href":"https:\/\/www.ozalto.com\/en\/wp-json\/wp\/v2\/posts\/"}],"about":[{"href":"https:\/\/www.ozalto.com\/en\/wp-json\/wp\/v2\/types\/post\/"}],"author":[{"embeddable":true,"href":"https:\/\/www.ozalto.com\/en\/wp-json\/wp\/v2\/users\/2\/"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ozalto.com\/en\/wp-json\/wp\/v2\/comments\/?post=1485"}],"version-history":[{"count":0,"href":"https:\/\/www.ozalto.com\/en\/wp-json\/wp\/v2\/posts\/1485\/revisions\/"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ozalto.com\/en\/wp-json\/wp\/v2\/media\/1482\/"}],"wp:attachment":[{"href":"https:\/\/www.ozalto.com\/en\/wp-json\/wp\/v2\/media\/?parent=1485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ozalto.com\/en\/wp-json\/wp\/v2\/categories\/?post=1485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ozalto.com\/en\/wp-json\/wp\/v2\/tags\/?post=1485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}