BI/Analytics #34

Predictive Analytics

Forecast lines, confidence intervals, trend projections, scenario modeling, AI-driven insights, anomaly detection visualization

样式演示

forecast.example.cn — 11 月销量预测
🔮 先见 Foresee
📈 预测总览
🥑 11 月销量
📏 库存预警
👥 流失预测
🧰 模型中心
模型 v7.2 · MAPE 4.1%
11 月销量预测历史实线 · 预测虚线 · 阴影为 90% 置信区间
粒度:周 · 复算于 10-18 06:00
预测 71% ▲
W1W2W3W4W5W6W7W8W9W41 → W45(未来 5 周)
11 月预计销量
38,400 件
置信区间
36.1k–40.9k
同比
+13.2%
双11 贡献
≈ 31%
模型解读(SHAP 贡献)
周年庆活动 +12%
气温下降 +9%
竞品涨价 +5%
运费调整 -3%

核心特性

浅色模式
✓ Full
深色模式
✓ Full
性能
⚠ Good (computation)
可访问性
✓ WCAG AA

配色方案

主色调

Forecast line color (distinct from actual), confidence interval shading, anomaly highlight (red alert), trend colors

辅助色

High confidence (dark color), low confidence (light color), anomaly colors (red/orange), normal trend (green/blue)

效果与动画

Forecast line animation on draw, confidence band fade-in, anomaly pulse alert, smoothing function animations

适用场景

Forecasting dashboards, anomaly detection systems, trend prediction dashboards, AI-powered analytics, budget planning

不适用场景

Historical-only dashboards, simple reporting, real-time operational dashboards

技术规格

时代/起源

2020s Modern

复杂度

Medium

框架兼容性

Recharts 9/10, Chart.js 9/10, D3.js 10/10

移动端友好

◐ Medium

转化导向

✗ Not applicable

AI 提示词

Design a predictive analytics dashboard. Use: forecast lines (dashed), confidence intervals (shaded bands), trend projections, anomaly highlights, scenario toggles, AI insight cards, probability indicators.

CSS 技术关键词

stroke-dasharray for forecast lines, fill-opacity for confidence bands, anomaly markers (circles), tooltip for predictions, toggle switches for scenarios, gradient for probability

实现检查清单

☐ Forecast line distinct
☐ Confidence bands visible
☐ Anomalies highlighted
☐ Scenarios switchable
☐ Predictions dated
☐ Accuracy shown

设计系统变量

--forecast-dash: 5 5, --confidence-opacity: 0.2, --anomaly-color: #F59E0B, --prediction-color: #8B5CF6, --scenario-toggle-width: 48px, --ai-accent: #6366F1