Test/RiskGraph Interactive
Appearance
< Test
This test page demonstrates multi-series graphs that respond to slider inputs.
Model with Parameters
RiskModel: Test/RiskGraph Interactive:RiskWithMultiplier
Sorted Parameters:
base_risk = {{#expr: 0.01 * {age} }}
adjusted_male = {{#expr: {base_risk} * {male_multiplier} }}
adjusted_female = {{#expr: {base_risk} * {female_multiplier} }}
Content:
Risk model with gender-specific multipliers.
Base risk scales with age, then adjusted by multipliers.
Interactive Controls
Adjust these multipliers to see the graph update:
Male risk multiplier:
Female risk multiplier:
Interactive Multi-Series Graph
Loading graph...
Expected Results
- Graph should show two lines (blue for males, pink for females)
- Moving the sliders should immediately update the graph
- Both lines should increase linearly with age
- The slope of each line should change when you adjust its multiplier
- At multiplier=1.0 for both, the lines should overlap
- Legend should be visible
Test Scenarios
- Set male_multiplier=2.0, female_multiplier=0.5 → Male line should be 4x steeper than female
- Set both to 1.0 → Lines should overlap
- Set male_multiplier=0.5, female_multiplier=2.0 → Female line should be 4x steeper