New to Control Chart Builder, but I am liking it so far! It appears that local data filters work with this platform (whereas control charts prior to CCB did not support them?). Only issue I am having is that when a local data filter is used, the selection in the filter does not prompt a scale adjustment. I notice the LCL/Avg/UCL are updated based on the local data filter selection, but the scale stays static.
First question, is there a way to force a scale recalc? If not, I thought of the following option:
- I can send scale changes via this jsl snippet when I generate the chart initially:
<!--
SendToReport(
Dispatch(
{},
"area",
ScaleBox,
{Min( 0 ), Max( 500 ), Inc( 50 ), Minor Ticks( 1 )}
)
)
-->
but what I really need is for the scale to be set based on the local data filter selection.
My thought is I could use the dynamically calculated LCL and UCL to adjust the Min and Max scale settings:
- Is there a way to access the UCL and LCL values dynamically(with each recalc)?
- If so, I could set them as variables and then use a formula to set the scale:
<!--
//define variables
LCLvar = reference to LCL value
UCLvar = reference to UCL value
//change scale based on those variables
SendToReport(
Dispatch(
{},
"area",
ScaleBox,
{Min( LCLvar - 50), Max( UCLvar + 50), Inc( UCLvar-LCLvar/50), Minor Ticks( 1 )}
)
)
-->
Is this the right approach? or is there an easier way to accomplish the desired result? thanks