Data Illustrator Tutorial: How to Draw Bar Chart

in tutorial •  7 years ago 

data_illustrator_logo_thumbnail-01-238x180.png

I recently wrote about a new data visualisation drawing application in development Data Illustrator, which I believe to be very promising. But in this post, I want to give those who don't time the time to go through the entire Getting Started guide a taste of what Data Illustrator has to offer. So to do that, I've written a tutorial on how you can construct a simple Bar Chart.

Note: Before you get started, I would recommend that you at least familiarise yourself with the annotated image of the application's interface, so that you know the names of each interface section.

First, in the Data Variables Panel, press Open Dataset File and select your data (you can select Olympic Medals if you don’t have any).

In the Left Tool Bar, select Rectangle (r) and draw out a rectangle with a Width of 350 and Height of 15.

bar chart tutorial

Next, select Text (t) in the Left Tool Bar and click once onto the Canvas to create a piece of text. Position this piece of text next to the beginning of the bar (either on the left or right side) so it appears like so:

bar chart tutorial


Select the rectangle and press the Repeat button in the Right Tool Bar. From the Select data variable to repeat on from the drop-down menu, select the category variable (in this example I’ve selected Country_Name). Then press OK.
bar chart tutorial
 

Drag the bottom handle on the grid layout until all the bars have been repeated for each category:
bar chart tutorial


 

Next, deselect the rectangles and then select the text. Repeat steps 4 and 5 for the text labels.

You will probably have to adjust the text labels align with the bars. In this example, you will need to go into the Property Inspector on the right and enter 15.6 for the Row Gap (under LAYOUT). The end result should look like this:
bar chart tutorial

Double-click on one of the pieces of text (not the category/country names) so that it’s only selected. Then, in the Property Inspector on the right, bind the Content to the data by clicking on the link icon and selecting the category variable (Country_Name in this example).
bar chart tutorial


The text labels will probably be overlapping with the bars. To solve this problem, make sure you still have a single text label selected and then at the bottom of the Property Inspector, set the Horizontal alignment to Right (Under ALIGNMENT IN CELL).

Move the labels leftwards, so that that are positioned correctly next to the bars like so:
bar chart tutorial


 

Now we need to bind the data to the bars. With Select, double-click one of the bars and then in the Property Inspector, under SIZE, press the link icon next to Width and select the numerical data for the categories (in this example I used Count).
bar chart tutorial

Finally, select the all the bars and in the Right Tool Bar press Break Grid. Repeat this process for the text labels as well. Your Bar Chart should be now complete. You can colour and customise it as you see fit.

 

bar chart tutorial


 

After your Bar Chart is complete, you can save the project for future use by going File > Save Project. Or you can import to an SVG by going File > Export SVG so that you can display the chart on a website or you can further edit the chart in a vector-based image editing application, such as Adobe Illustrator.

Anyway, I hope that was useful and I will try to do more of these tutorials.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!