COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: sanjuking on 27 Jul 2011 03:08:18 AM

Title: Javascript to update Chart Min/Max value
Post by: sanjuking on 27 Jul 2011 03:08:18 AM
Friends,

         I'm having problem with bar chart. When data points to be plotted is less that 4, Cognos starts duplicating Y-axis labels. This is because I have not set SCALE VALUE explicitly in my report. The reason behind doing so is that with hardcoded value, automatic scale selection will not work which creates problem if data to be rendered is too high.

Is it possible to update SCALE VALUE using javascript based on # of datapoints to plot?

Any other mechanism by which this can be achieved.

Thanks,
Sanju
Title: Re: Javascript to update Chart Min/Max value
Post by: KLeonard1 on 09 Aug 2011 03:28:29 PM
I'm looking to do something similar. I want the Y1-Axis MIN and MAX values to be based on columns in my query, not hardcoded.

Any ideas?