• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Stacked Bar chart with individual Target line for each bar

Vivek D

Member
I was able to get a stacked column chart with a target line but cannot get a stacked bar chart with a target line.

Stacked Column with Targets.png

If I convert the Stacked column charts to stacked bars, below chart is what I end up getting and the option to change axis for the target line is disabled.

Stacked Bar with Targets.png

Is there a way around this?
 

Attachments

  • Stacked with Targets.xlsx
    14.7 KB · Views: 4
Yep, need to make the bar chart first, and then plot target series as an XY series.
 

Attachments

  • Target Bar Chart.xlsx
    11.5 KB · Views: 18
Yep, need to make the bar chart first, and then plot target series as an XY series.

Thanks. Neat trick for the target line.

One question though, can I increase/decrease the width of the target line in case I decide to increase/decrease the width of the bars in the chart.

I didn't quite understand how you go this part too
"We realize that each bar is staggered at 0.5, 1.5, 2.5, etc"..
How do you know the 0.5, 1.5, 2.5 thing?
 
In my chart, the target line is actually a Y-error bar. I adjusted it's length by changing the fixed value. You could do it this way, or turn on the marker, and draw a shape/image, and copy that image onto the marker. Either way works.
upload_2015-7-24_11-8-13.png

For the spacing, it's just a matter of thinking how XL spaces things. If you look at the tick marks on y-axis here:
upload_2015-7-24_11-11-3.png
you can think of them as being at the 1, 2, and 3 level marks. THus, the labels are halfway between, so they are are the 0.5, 1.5, and 2.5 mark. We use that to align the XY series vertically.
 
Back
Top