COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: CognosPaul on 17 Jun 2009 05:25:51 AM

Title: 8.4 - Dynamically setting maximum value in gauge chart?
Post by: CognosPaul on 17 Jun 2009 05:25:51 AM
Does anyone know if it's possible to set the maximum value of a gauge chart dynamically? Specifically I need the maximum value to always be double the first measure (target).

This is in 8.4

Thanks,
Paul
Title: Re: 8.4 - Dynamically setting maximum value in gauge chart?
Post by: CognosPaul on 17 Jun 2009 06:02:28 AM
Answering my own question:

One way around this is to set the maximum value to 1. The target measure = target/(target * 2) and the actual would actual/(target * 2). The pointers would be in the correct place, but the values would be wrong. I think the ideal is to use some sort of javascript function to change it on runtime.