Jump to content

Test/RiskGraph MultiSeries Colors

From RiskiPedia

This test page demonstrates multi-series graphs with custom colors and parameters.

Simple Risk Model

RiskModel: Test/RiskGraph MultiSeries Colors:SimpleRiskByAge
Sorted Parameters:
  base_risk = {{#expr: 0.01 * {age} }}
  low_risk = {{#expr: {base_risk} * 0.5 }}
  medium_risk = {{#expr: {base_risk} * 1.0 }}
  high_risk = {{#expr: {base_risk} * 2.0 }}
Content: 
Simple risk model that scales linearly with age.
Low risk is 50% of base, high risk is 200% of base.


Graph 1: Risk by Age with Three Scenarios

Loading graph...

Graph 2: Two Series Without Colors

This graph should use Chart.js default colors.

Loading graph...

Expected Results

Graph 1 should show:

  • Three lines: green (low), yellow/amber (medium), red (high)
  • All lines increasing linearly with age
  • High risk line should be twice the low risk line
  • Legend visible with custom colors

Graph 2 should show:

  • Two lines with Chart.js default blue and orange colors
  • Legend visible
  • Lines increasing with age