Creating Graphs With Adobe Illustrator

Advertisement

Office applications are getting very advanced these days offering all sorts of fancy features for data visualization. Graph generation is a standard feature in desktop applications like Microsoft Excel or OpenOffice.org Calc, but it can also be achieved in non-spreadsheet applications like Adobe Illustrator.

If you’re unfamiliar with the process of creating graphs in Adobe Illustrator, this article will help in giving you some insight into the work-flow. It might also help you decide whether Illustrator is the right tool for this kind of assignment.

What Type of Graphs Can You Create in Illustrator?

Adobe Illustrator offers 9 graph types to visualize data. You can choose from the following:

  • Column Graph
  • Stacked Column Graph
  • Bar Graph
  • Stacked Bar Graph
  • Line Graph
  • Area Graph
  • Scatter Graph
  • Pie Graph
  • Radar Graph

There is also the possibility for making combinations from the existing graph types to achieve greater diversity. The only graph type that can’t be combined is the scatter graph.

Creating graphs in Illustrator is as simple as selecting the Graph Tool (from the Tools panel), clicking on your Artboard and dragging and thus forming the area size of the graph. It is also possible to type in the width and height of the graph, which is useful if you want to create graphs with specific dimensions. If you decide to type in the dimensions of the graph, you should bear in mind that those dimensions are applied to the whole graph object (including labels, legend and x, y values), not just the graph chart.

Once you create this graph size and shape you will see that it’s available as a single element (layer) in the Layers panel, usually with the name <Graph>. This might seem confusing at first but you’ll get used to it very quickly.

The Two Faces of Illustrator Graph Functionality

Creating graphs in Adobe Illustrator is generally a straightforward task but once you get into advanced techniques of graph design, functionality can get quite annoying. You’ll be surprised to discover that basic tasks like scaling and aligning are not instantly applicable on graphs.

Face 1 (Graphs as Objects)

The reason for the initial exceptional lack of functionality of the graph objects in Illustrator is that they are quite simply, ‘objects’. That is to say, they are special groups of sub-elements that have a limited number of attributes the user can control. Graph objects are less flexible than usual Illustrator layers, layer elements and groups of layer elements.

Graphs are objects in Illustrator

Here are most of the limitations of Adobe Illustrator’s graph creation functionality that are instantly noticeable:

  • Transform panel is not available for graph objects.
  • No transform controls are available for selected graph objects, thus no instant scaling or rotation is possible.
  • Graph objects cannot be aligned to other objects nor can other objects be aligned to them.
  • Two or more graph objects cannot be grouped.
  • It’s not possible to create a clipping mask from a graph object.
  • A graph object cannot be transformed into a symbol.

Maybe it’s not really wise to initially dig for limitations, as you may get the impression that you’re left with very few things that you can actually do to graphs in Illustrator. Of course, that’s the wrong impression. As noted, creating graphs in Adobe Illustrator is generally a straightforward task.

But through knowing the limitations of your tool can actually help you plan early and work smarter.

Face 2 (working with sub-elements of the Graph Object)

Illustrator Graphs have sub-elements. The sub-elements are the brightest aspect of the graph creation process in Adobe Illustrator. They are flexible and you can do all sorts of modifications to them. From repositioning, scaling, mirroring, adjusting opacity and offsetting paths to applying special effects like brush strokes, glowing edges, pixelation etc. Sub-elements are your true friends as long as you don’t make further changes in the graph data!

The appearance of the following sub-elements can be modified:

  • lines
  • labels
  • data points
  • graph legends
  • graph shadows
  • value axises
  • columns
  • pieces of pie graphs

However, if you make a change in the graph data, you instantly loose the control over the sub-elements’ appearance and reset it to the bare minimum – fill + stroke. Actually, you reset the appearance of sub-elements with any action that causes the graph object to regenerate. That’s why, as even Adobe advises, the sub-elements in graphs should always be styled as the final design process of a graph.

What about ungrouping Illustrator graphs?

Is it possible? Absolutely. As long as you’re aware that ungrouping graphs removes the possibility of further changes in the graph data. Having this firmly in mind, it is only useful to ungroup a graph object once you’re sure that you won’t have to revisit its “Graph Data”, “Graph Type” or “Graph Design” windows.

Graph ungrouping means simultaneously an increase AND a decrease in flexibility.

Ungrouping graphs in Illustrator

Ungrouping the Graph Object means an increase in flexibility because it makes all graph sub-elements behave like usual Illustrator layers, thus unleashing the full power of layer editing in Illustrator.

It is at the same time a decrease in flexibility because it’s a one-way road. After the ungrouping, the graph object turns into a group of layer elements (as funny as this sounds), and looses its touch with the special graph creation functionalities.

So, it’s wise to use Adobe Illustrator for designing graphs one step at a time. First prepare graph data, than design the graph. This might seem too obvious, but it’s very, very easy to get carried away in the creative process, forgetting about the two faces (before and after ungrouping) of the graph object. I know, as I have made this mistake several times.

What if you want to modify several graphs at once?

That’s a very legitimate question and it deserves a decent answer.

You most certainly can select several graph objects at once, and apply various effects and transformations to them. With the help of the Group Selection tool, you can even select sub-elements from different graph objects and style them as you wish. Besides other things, you can also change the Graph Type of multiple graph objects at once.

Unfortunately, what you can’t do is change graph data on more than one graph object at once. It’s impossible and it’s a shame. Instead of being able to change the data of 50 various graphs in an instance, you will need to do 50 separate changes (and waste valuable time).

How do Graphs Perform in Legacy Illustrator Formats?

Exporting graphs in legacy formats

Every incremental release of Adobe Illustrator offers options for saving working files in legacy formats. This way you can ensure that your designs will work in older versions of Adobe Illustrator.

However, even though the possibility is there, the practical value of this Illustrator feature, for graphs, is minimal.

A personal example

While preparing the final release of “The Graphs2”, saving to legacy formats added extra “features” to my designs. For example, while working on a legacy AI file, after editing the graph data on a randomly chosen graph object, the graph object repositioned itself to false coordinates, and made the design appear to be broken. After testing this on other graph objects, I figured that it was a rule and not an exception. I wasn’t able to get rid of this “feature” until I decided to minimize the backwards compatibility of my designs and save into Illustrator CS4 format.

Adobe does warn about the consequences of saving in legacy formats, but this is certainly a feature for Illustrator Graphs that could be improved.

What Could Adobe Improve in its Illustrator Graphs Functionality?

It would be really nice not to have to worry about loosing touch with the graph data after graph ungrouping. Why do graph objects have to be limited? In fact, why do graphs need to be generated in the form of objects? Why not serve them in the usual way – as a group of separate layers?

Perhaps Adobe should spend more time modularizing the graph creation functionality and serve them throughout the whole Creative Suite. Data visualization is important and shouldn’t be treated as a gray zone, as a pending process in the development of the Creative Suite, especially not in the development of Adobe Illustrator.

Some ‘would be nice to have’ stuff for Illustrator graphs

In terms of flexibility and accessibility, Adobe Illustrator’s graph creation functionalities are not polished at all. The main features are very obvious, but a lot of small pieces are missing for a rock solid graph creation module.

  • Axes: Though it might be illogical for some, why isn’t there an option for generating graphs without value axes? Hiding them manually takes additional time and it’s specially annoying if you need to use the “Show All” option for hidden layers, while trying to exclude the value axes from reappearing. An extra option that will allow hiding and showing of value axes is needed in the “Graph Type” window.

No soft shadows for graphs in Illustrator

  • Shadows: Why would you implement a shadow sub-element for graph objects if you don’t provide proper options to control its appearance? And, who needs rough shadows these days when ray-tracing has spoiled us like children? We need realistic shadows for graph objects in Illustrator. We need to be able to control the light angle, the dens and the opacity of the shadow, the level of softness. We need all things that you normally get when applying a “Drop Shadow” layer style on a Photoshop layer. While saying this, there are manual ways of getting smooth graph shadows, like applying “Drop Shadow” effect on sub-elements or applying “Feather” effect on the default graph shadow sub-element.
  • Inter-object styling: What’s the point of providing styling options for graph sub-elements, when there’s no freedom in choosing when to apply them. The appearance reset for graph sub-elements has to go away! Data has to be separated from presentation. We need to be able to make unlimited changes to graph data regardless of the appearance of the graph object or its sub-elements. We need to be able to change things whenever we feel like we want to, not necessarily last.

Summary of Illustrator Graph Features

Here is a summary of the most important features of graphs in Adobe Illustrator.

  • Graphs are special groups of sub-elements and have a limited number of attributes you can control.
  • You can create 9 main types of graphs in Adobe Illustrator.
  • You can import graph data from external files.
  • You can copy and paste data from spreadsheet applications into graphs in Illustrator. You need to paste the data into Object → Graph → Data window for this to work.

Paste data from spreadsheet applications

  • If you ungroup a graph you cannot make changes to its data.
  • You can apply all sorts of effects to the sub-elements of a graph and not so much to the graph object itself.
  • Graphs and symbols do not get along quite well. A graph object cannot be converted into a symbol. However, there is an option for importing symbols into graph designs.
  • It is possible to create graphs with custom designs (by including images and symbols), but we won’t explore this in detail in this feature. Maybe you can write a great article on this topic?
  • You can copy and paste charts from Microsoft Excel or OpenOffice.org Calc into Illustrator.
  • Illustrator offers excellent support for exporting graphs in SVG file format. Graph data remains editable in Illustrator, for SVG files created with Illustrator.
  • If you require advanced graph creation features, make friends with spreadsheet applications in famous Office suites.

Save some time along the way!

Here are a few quick tips (shortcuts) that might come in handy for beginners or may act as a reminder for advanced Illustrator users. These are all obvious things that will help you from wandering aimlessly around Illustrator menus and the workspace.

  • Instead of going to Object → Graphs → Data…, anytime you need to access the data of a specific graph, select the graph object and double click the Column Graph Tool icon from the Tools panel. Or, you can achieve the same by selecting the graph object, choosing “J” from the keyboard and then pressing the “Enter” key.
  • Right click a graph and you will find another quick way to access specific options for graph objects, including:
    • Type…
    • Data…
    • Design…
    • Column…
    • Marker…

    Quickly edit graph object data

  • Instead of selecting graph sub-elements within isolation mode, use the Group Selection Tool to select them without isolating your view in the workspace.
  • Click and drag a graph while holding the “Alt” key on the keyboard, to quickly duplicate it.
  • Delete graph objects with “Backspace” or “Delete” from the keyboard.
  • If you want to create Line graphs with curved lines apply “Round Corners…” effects (Effect → Illustrator Effects – Stylize → Round Corners…) to line sub-elements.
  • If you want to create a Pie Graph with empty space in between pieces, apply an “Offset Path…” effect (Effect → Illustrator Effects – Path → Offset Path…) to the graph object, and a miracle happens!
  • If you want to create a 3D graph, apply an “Extrude & Bevel…” effect (Effect → Illustrator Effects – 3D → Extrude & Bevel…) to the graph object. If you don’t want to transform the whole graph object, apply “Extrude & Bevel…” effects to specific sub-elements you want visualized in 3D.
  • If you want to use “Offset Path…” effect together with “Extrude & Bevel…” on a single graph object or a single sub-element, make sure you place the offset effect below the Extrude & Bevel in the Appearance panel and you’ll be fine. Otherwise you’ll get the offset plane extruded also.
  • Don’t forget to use the “Drop Shadow…” effect (Effect → Illustrator Effects – Stylize → Drop Shadow…) as a replacement to the poor shadow feature that’s served by default for some graph objects.

Draw your conclusion

I used Adobe Illustrator to create “The Graps2” and I can say it was an interesting experience. It wasn’t as delightful as I would have liked it to be but it sure was challenging.

After reading the above article you may feel discouraged in using Illustrator for graph design. What I would certainly recommend is at least trying Illustrator for creating graphs. It’s the only way of getting in touch with the work-flow and making a personal judgment of whether Adobe Illustrator is mature enough for your graph creation needs.

At the end of the day, keep in mind that with Adobe Illustrator you’re creating vector art. Vector art can be re-sized infinitely, without any consequences in terms of graphics quality, thus can be fitted in almost any type of medium.

Further reading

(afb)

↑ Back to top

Goce Mitevski is an independent designer and the founder of Nicer2. He's passionate about WordPress, Photography, 3D Visualization, Drawing, Illustration and Animation. When he's not designing, he's working on Contest Watchers.

  1. 1

    Thats a good one =)

    2
  2. 2

    Thanks for sharing!

    8
  3. 3

    if I want to find out how to draw a graph i will search for it on google, come one smashing mag, put some more interesting articles than this…its a waste of time.

    -32
  4. 4

    even the word Graph makes me yawn – but thanks fior sharing

    -19
  5. 5

    Shouldn’t it be phase instead of face?

    -4
  6. 6

    in order to design dynaimc graph for the web you can also use google data chart http://code.google.com/apis/chart/
    or if you fancy flash search for fusion charts
    http://www.fusioncharts.com/
    Hope it’s not spamming, just sharing, i had to work quite a lot with marketing graphs and hope it could save some time to people who needs dynamic data displayed on a web page.

    3
  7. 7

    Anyone who creates charts and graphs should be required to read Edward Tufte’s book “The Visual Display of Quantitative Information.” Although the title may sound pompous, it is simply the finest guide to creating meaningful charts and graphs (and when not to bother with them at all).

    1
    • 8

      imho, tufte is a pompous know it all
      W S Cleveland’s books are much better (hobart press)

      0
  8. 9

    Typical of adobe, do you people realize that this is why these products from adobe cost so much-they are laden with features nobody uses. Why would anyone in their right mind use illustrator a program that’s yet to get it right to do graphs. People who do graphs are financial people who can achieve so much more and with ease in office. To highlight this feature as some sort of benefit is annoying. I have been using illustrator since version 1 and this program is still a pain to use, it ignores some basic principles of art and every update is full of features like this which you trumpets as some sort of worthy feature. Just launching illustrator is a trip in itself much-less doing a graph.

    -19
    • 10

      I did this lame crap in college. It’s really only ever useful if you’re doing infographics for newspapers or something. Not all charts and graphs are specific to the corporate world, so don’t assume that Illustrator has no place for creating a graphing/chart-making interface (whether it’s well done or not isn’t the point I’m making, that’s debatable). Obviously they wouldn’t need much visual flair to their presentations as that’s not really part of their industry. I don’t see this as being unnecessary. I also found it rather simple to do… Maybe because I’m used to the interface for the most part, but I a found it much easier than using Excel or some other program that is MADE for processing tabular data.

      7
    • 11

      Like it or not, some website content includes charts and graphs that is directly related to the material. Using graphics to communicate dry data is an effective way to get readers to absorb information that might otherwise be ignored. Illustrator can be used to make these graphs visually interesting and engaging to the reader. That makes this article very relevant and interesting to someone like myself who is working on a project just as I described. If you don’t like the content, don’t read the article. But don’t bag on the author and leave negative comments. Also consider doing a grammar check before posting next time as it might make your argument more credible.

      3
  9. 12

    I typically graph the data using illustrator function, then draw over it. You can’t change it quite so easily but you can make it look however you want.

    0
  10. 13

    Thanks for the helpful tip Smashing. I’ve created graphs using Numbers in iWork and copying and pasting it into Illustrator. They come over as vector data so that’s kinda nice. Didn’t know you could do it straight in Illustrator.

    And to the graph haters, If a client comes to you and says, I have all this data, my budget is 50k, and I need a few graphs. Sounds like some of you are going to say. “Yawn, graphs. Go somewhere else. I don’t do graphs because they’re not cool.”

    7
  11. 14

    Goce, a very nice introduction to graph/chart creation in Illustrator. I’ve been using Illustrator to generate graphs/charts for decades and this column only scratches the surface of what can be done. It took me years of understanding how data can be used to enhance and compliment key messaging. I never, never ungroup a chart into an object — always make a copy, then ungroup.

    1
  12. 15

    Hahaha, you guys crack me up! First you guys complain about how web designers are so much more than rounded corners and gradients. Then, when someone gives a lesson in improving your presentation in information design – you guys are not happy…tough crowd here…

    Thanks man, I think this will help me improve some of my charts/graphs. I always wanted to get the basic data down and then stylize it some more which you can’t do in excel that well…

    9
  13. 16

    Alison Rowan - Avian Function

    September 29, 2010 4:49 pm

    This is an excellent thing to know! I’m bookmarking this for future use. I love that even after having worked with the program for so long, there are still new possibilities to discover within it.

    2
  14. 17

    nice share …. thnx

    1
  15. 18

    Excellent article. While Illustrator may not be the optimized program to work with graphs, it works quite well. In fact, I just spent the last two weeks doing a large scale project for a client that involved approximately 70 different graphs.

    I definitely could have used this article because I already see some areas I neglected to think about. Thanks for the great information!

    0
  16. 19

    Thanks for sharing. This Post is really good for designers. I like it.

    -4
  17. 20

    I don’t like to complain but this article doesn’t cover much that isn’t in the help file. Also it doesn’t mention import formats from Excel, which can be a bit tricky.

    2
  18. 21

    Why not ? We use Ms Excel for graph. But we use adobe for our web design purpose. Se we can use it easily. Not yet tried. But i will definitely try.

    0
  19. 22

    For nice presentations I begin in Excel and then trace / convert using illustrator.

    -4
  20. 23

    Good one. I was expecting to see a gallery with different Graphs you can build with Ai.

    1
  21. 24

    Thanks for sharing but recently I saw a review of Office 2011 for Mac url- http://ow.ly/2NRU6. Expect more from this version. Let’s wait and watch.

    0
  22. 25

    I’ve used Illustrator to make graphs to be placed in InDesign and PDF documents for years and I will say that while it has its advantages in terms of visual output/manipulation, the in-built graphing functionality isn’t very robust. You can do all kinds of visual manipulation after the data are input, but the options for inputting data are pretty basic. I often have to explain to internal clients that Illustrator is a graphics application, not a graphing application.

    -3
  23. 26

    Not to be a jerk, but you might wanna check your spelling — it’s “lose”, “losing”, “loses”. Lose the extra “o”.

    -2
  24. 27

    Adobe Illustrator’s graph tools are dreadful. When creating a chart/graph, I start by creating a simplified version in Excel and then export it as a PDF. I’ll then open the PDF file in Illustrator where I can use its graphic capabilities to enhance it.

    0
  25. 28

    Good examples and explanations! Tip: It is also possible to preflight and package Adobe Illustrator files.

    0

↑ Back to top