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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

MaxNumberShown option does't work

Hi QV experts,

Below code snippet is not working and doesn't even report any errors. Is there any issues already reported pertaining to setting MaxNumberShown ?

set chart = ActiveDocument.getSheetObject("CH01")

set cp = chart.GetProperties

set dims = cp.Dimensions

dims(0).MaxNumberShown = 4

cp.ChartProperties.XAxisScroll = true 

chart.SetProperties cp

Thanks in advance

1 Solution

Accepted Solutions
Not applicable
Author

HI,

I found way to do this Below code worked for me

set chart = ActiveDocument.getSheetObject("CH01")

set cp = chart.GetProperties

set dims = cp.Dimensions

dims(0).MaxNumShown.v = 5

cp.ChartProperties.XAxisScroll=true

chart.SetProperties cp

View solution in original post

1 Reply
Not applicable
Author

HI,

I found way to do this Below code worked for me

set chart = ActiveDocument.getSheetObject("CH01")

set cp = chart.GetProperties

set dims = cp.Dimensions

dims(0).MaxNumShown.v = 5

cp.ChartProperties.XAxisScroll=true

chart.SetProperties cp