@model PlotLine.Services.Context.ContextMetricsFrame @using System.Text.Json @{ Layout = null; var scope = Model.Scope; var timeline = Model.Timeline; var scenes = timeline.OrderedScenes.ToArray(); var payload = new { scenes = scenes.Select(s => new { sceneId=s.SceneID, axisLabel=$"Ch {timeline.ChapterOptions.FirstOrDefault(c=>c.Value==s.ChapterID.ToString())?.Text.Split('·')[0].Trim()}.{s.SceneNumber:g}", sceneTitle=s.SceneTitle }), metrics = timeline.MetricGraphs.Select(m=>new { metricTypeId=m.MetricTypeID, metricName=m.MetricName, minValue=m.MinValue, maxValue=m.MaxValue, points=m.Points.Select(p=>new {sceneId=p.SceneID,value=p.Value}) }) }; }
No active metrics are enabled for this project.
} else {