Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Illustrator charts - align column totals

Explorer ,
Aug 18, 2021 Aug 18, 2021

Hi there,

 

While working on some charts in illustrator (O_o), i'm trying to add some column totals. But i can't get them positioned good.

My steps:

  1. created the stacked bar graph
  2. add a square with a text field in front, with '%20' in it (to specify numbers and no decimals) and group it
  3. save as object > graphs > design
  4. group select the columns and apply the just created design. I just can't get the totals to be upright

 

Is this something that just doesn't work on a stacked bar graph? I've tried to prerotate the totals and save these as element, and ticked and unticked the 'rotate design' box to test.

 

see the attached image: To the left are my 4 graph-designs i tried. Currently the graph is using the 1st/top one - where the number is upright already.

 

We have a lot of graphs to do, so i want to preset as much as possible. But can this be done in advance?

 

Regards, Edwin.

2.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Aug 19, 2021 Aug 19, 2021

Thanks for the reply,

 

I thought i did just that, but it seems i needed to stretch the column more so that AI gets it. Thanks for letting me having another go at it!

 

see the attached image of what didn't work and does work - from the column-designs to the left the square background doesn't work, rectangle background does..

 

Cheers, Ed'

Translate
Adobe
Community Expert ,
Aug 18, 2021 Aug 18, 2021

Design it the way it shoul look.

And then rotate it upright.

 

Bildschirmfoto 2021-08-18 um 18.36.53.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 19, 2021 Aug 19, 2021

Thanks for the reply,

 

I thought i did just that, but it seems i needed to stretch the column more so that AI gets it. Thanks for letting me having another go at it!

 

see the attached image of what didn't work and does work - from the column-designs to the left the square background doesn't work, rectangle background does..

 

Cheers, Ed'

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 19, 2021 Aug 19, 2021

Interesting, thanks for the feedback.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 05, 2021 Dec 05, 2021

Can you help me to stop the numbers from scaling with the column? 
My problem is the number is being included in the length of the column and the numbers themselves are being scaled. In this picture, the red numbers (placed manually) are what I'm after and the black numbers are what I'm getting from the graph design. (The graph design is just a rectangle with the %21 text placed above then those two elements grouped and saved as a new design, then applied to the columns.)

Timberrr_1-1638745315935.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 07, 2021 Dec 07, 2021

Hello Timber,

 

Your whole 'column type element' is squashed for eacht column, so i'd say you have to choose a different setting on your 'column type element'. (options are: vertically scaled, uniformly scale, repeating or sliding).

'Sliding' should work if i recall correctly.

 

see info @ https://helpx.adobe.com/gr_en/illustrator/using/graphs.html (attached a relevant image from there to this reply).

 

Does that work better? Cheers, Ed'

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 07, 2021 Dec 07, 2021

Thanks Ed',
The problem is still there after trying the various column types.

The sliding option came closest but it 'freezes' the lower part of the column not the top part where the numbers are, so it still squashed the numbers. If there was an option to freeze the top part of the column design that would work.

 

In Monika's graph the purple bar is correctly of length 4, so the number does not form part of the length and does not seem to be squashed (though it may be hard to tell at that scale).

Other options for the column design (wider numbers, grouped and ungrouped, backing rectangle as well as the actual rectangle) all failed also.

I'm curious how this should be done because adding data labels to a column graph is pretty basic so I feel I'm missing something.

Cheers, Timberrr

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2021 Dec 07, 2021

Create an invisible rectangle at the bottom of the stacking order that doesn't enclose the number.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 07, 2021 Dec 07, 2021

Thanks Monika,
In a new .ai file I tried JUST an invisible rectangle as the "design" (so all I want to see are the data labels 5.3 and 20.5 at the appropriate height). It has a smaller rectangle with the text above it, and a bigger rectangle enclosing the text, but either way the smaller number is squashed when applied to the graph.
Is there something else I can try?

Timberrr_0-1638927646645.png

(Tried to upload the .ai file but it says: "The attachment's datalabels.ai content type (application/postscript) does not match its file extension and has been removed.")  version 25.4.1 on Windows

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2021 Dec 08, 2021

Please upload it to Dropbox or the like and post a link.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 08, 2021 Dec 08, 2021
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2021 Dec 08, 2021

You also need the guide. Sorry, didn't mention that explicitely, because I thought you knew it.

 

Bildschirmfoto 2021-12-08 um 13.44.11.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 08, 2021 Dec 08, 2021

Hey, now i'm confused as well 😉

 

Big difference with my charts was that my datalabels were ín the bars itself. But then again, in Monika's example they weren't.

 

@Monika GauseHow to use those guides?

 

Cheers, Ed'

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2021 Dec 08, 2021

You draw a line at a position where the car should be extended. Then convert it to a guide. Make sure guides are unlocked. Then select the guide with all the other elements and make the graph design.

 

More details in the documentation.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 08, 2021 Dec 08, 2021

Okay,

 

gave it a go, but it seems the datalabel is taken into account of the bar-height, instead of being placed above it.

See my screenshot. Eventhough the guides are on the same height, the numbers are taken into account of the barheight - whereas it shouldn't be imo.

 

But i won't hijack Timber's thread (eventhough i started this 😉 and just keep an eye on this thread.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2021 Dec 08, 2021

There needs to be an invisible rectangle with the same size as the green rectangle that sits below everything else.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 08, 2021 Dec 08, 2021

Great! That solves it for me thanks.
In my various attempts I had tried each in various combinations but not those three things together:

  • the label above the back-most rectangle
  • the back-most rectangle must be invisible (even if it's the same size as a visible rectangle) 
  • and a guide so that "sliding" can be specified

 

Timberrr_0-1639003238129.png

Thanks again. And thanks Ed' for your original question and interest.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 09, 2021 Dec 09, 2021
LATEST

Nice to read things are sorted out, good luck with those charts.

And I think i'll come back to this thread once i have to make some charts again.

 

Thanks all, cheers!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines