DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Stacked Bar Chart Workaround

I posted this in the idea exchange, but I'm stumped on a workaround. 

I would like to display the total effect of multiple inputs to a process, while also showing the relative impact of each input.  The workaround in the link below works when all impacts are positive.  When one of the impacts is negative, it isn't shown, since it gets hidden by the bar before it.  In excel, any negative impacts are shown below the x-axis.  

 

http://forums.ni.com/t5/DIAdem/Bar-Chart-with-moret-hen-1-Channel/m-p/3152564/highlight/true#M20550

 

I've also attached an excel example, just in case what I'm looking for isn't clear.  So, barring developing some complicated logic to deal with negative impacts to the total output, how can I show relative impact of multiple inputs to a total?  It doesn't have to be a bar chart, that's just what we have started with. 

0 Kudos
Message 1 of 3
(4,077 Views)

Hi Russell;

 

A quick workaround would be changing the fill pattern of the bar. There are several options, I used for example:

 

 curve.Shape.Settings.Filling.Pattern = eFillPatternLeftDiagonal

And this is what I got:

 

 Capture.JPG

 

In the DIAdem help you can find what other fill patterns are available:

 

http://zone.ni.com/reference/ja-XX/help/370858M-0112/reportapi/properties/report_property_pattern_ir...

 

Regards;

 

Pedro M.

 

0 Kudos
Message 2 of 3
(4,050 Views)

My example program is another workaround for creating a bar chart:


Bar Chart Creation with DIAdem Script - National Instruments - Discussion Forums

https://forums.ni.com/t5/Example-Program-Drafts/Bar-Chart-Creation-with-DIAdem-Script/ta-p/3732177

 

BarChart - Copy.PNG

Eric H.
Applications Engineering
National Instruments
0 Kudos
Message 3 of 3
(2,656 Views)