Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jixiaoquan
Contributor III
Contributor III

Add line to Combo chart through macro

Hi ,

In qvw how to create a combo chart and add two expressions,one is bar,the other one is line?

In my QVW like this:

set chart = ActiveDocument.ActiveSheet.CreateBarChart

chart.AddDimension "ID"

chart.AddExpression "sum(Amount)"

set p = chart.GetProperties

set expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisual

expr.BckAsBar = false      

expr.BckAsLine = true

expr.BckAsSymbol= true

expr.ShowAsPopup = true

chart.SetProperties p

chart.AddExpression "sum(Amount)"

set p = chart.GetProperties

set expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisual

expr.ShowAsBar = true   

chart.SetProperties p

It does not work,

2 Replies
Anonymous
Not applicable

Even i have a similar requirement to be achieved in my dashboard.Please help

tresesco
MVP
MVP

Could you explain the situation better? Perhaps, the similar could be achieved using conditional expression in the chart. May be like in attached sample: