Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro

Hi Guys

I am adding the expression dynamically usng macro in a bar chart now i want to set the property "valuesondatapoints"

can anyone please help me with this?????

Labels (1)
3 Replies
Not applicable
Author

Use the below:

Set chart = ActiveDocument.GetSheetObject("CH01")

Set p = chart.GetProperties

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

expr.ShowAsTextInChart = TRUE'FALSE to hide

Kiran Rokkam.

Not applicable
Author

Thanks for the reply but if  i want it to do for 2 expressions

Not applicable
Author

Item(0) indicates the first expression. Use line 3 twice, once for each expression.

Kiran Rokkam.