Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding error-bars in a pivot-chart

I want to add error-bars to my pivot chart in the following context:

I have a pivot-table with the following fields:

- instance
- strategy
- parameter
- average
- std


I create a pivot report and pivot-chart with the following fields:

- instance as page
- strategy as column
- parameter as row
- average as data

The pivot chart will show me a data-serie per strategy with the x-axis
the paramater and y-axis the average and I can select the instance in
a drop down menu.

My goal is to add error-bars to the data series with the plus side
'average + std' and the minus side 'average - std'. It doesn't work to
do this in the formatting of the individual data series as they (the
formatting) are reset when I change/refresh data.

So I thought let me write a macro in VBA something like (assume I want
only to do this for SeriesCollection(1) ):

Charts("results chart")..SeriesCollection(1).HasErrorBars = True
Charts("results chart").SeriesCollection(1).ErrorBars.EndStyle =
xlNoCap
Charts("results chart").SeriesCollection(1).ErrorBar _
Direction:=xlY, _
Include:=xlErrorBarIncludeBoth, _
Type:=xlErrorBarTypeCustom, _
Amount:= ???????????, _
MinusValues:= ?????????, _


What do I put in for Amount and MinusValues (plus and minus error). Or
re-formulated, how do I access the field std in my pivot-tabel which
is not in my pivot-table-report in the correct format so ErrorBar can
handle it,

thanks for any reply,

David Rijsman
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Customise error bars on individual bars in a bar chart 2007 Millie Charts and Charting in Excel 2 April 25th 09 04:16 AM
Adding Error Bars Excel 2007 Lars B Excel Discussion (Misc queries) 8 January 27th 09 11:55 AM
Adding different value error bars to each column of the SAME serie Naz Excel Discussion (Misc queries) 1 March 10th 08 08:31 PM
Adding individual error bars Harthaus Charts and Charting in Excel 1 February 5th 08 09:22 PM
adding multiple error bars to bar chart belinda001 Charts and Charting in Excel 1 April 23rd 05 11:56 AM


All times are GMT +1. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"