Skip to content

task_charts__style_legend__series_extremum_x_label

Contract

  1. Domain: charts
  2. Scene id: style_legend
  3. Public task id: task_charts__style_legend__series_extremum_x_label
  4. Supported query_id: series_highest_x_label, series_lowest_x_label

Implementation

  1. Registered class: trace_tasks.tasks.charts.style_legend.series_extremum_x_label.ChartsStyleLegendSeriesExtremumXLabelTask
  2. Prompt bundle: charts_style_legend_v1
  3. Generation is deterministic from instance_seed, explicit params, prompt bundle, renderer config, and code versions.
  4. Answers and annotation are produced from the same metadata execution trace.

Annotation Contract

  1. Answer schema: string_label.
  2. Annotation schema: point.
  3. Annotation marks the selected plotted marker for the fixed legend series.
  4. Renderer context such as legends, axes, decorative labels, titles, and distractor text is metadata unless the task explicitly asks for it as annotation.

Program Contract

Program: arg_extremum(x_position, value(series, x_position), direction={highest,lowest}); output=string_label; annotation=point; scene=style_legend; scope=series_extremum_x_label

Candidate set: the visible plotted series/marks and legend entries inside the series_extremum_x_label objective scope. Operands: prompt-bound labels, categories, series names, thresholds, intervals, references, and encoded chart values, plus the active query id's comparator, direction, target role, or extremum focus when present. Operation: evaluate arg_extremum over the candidate set using the filters, comparisons, aggregations, rankings, projections, or counterfactual edits named in the program expression; generation enforces a unique final answer. Output binding: answer is the string_label value bound by string_label. Annotation witnesses: point witnesses bound by point. Annotation marks the selected plotted marker for the fixed legend series. Renderer context such as legends, axes, decorative labels, titles, and distractor text is metadata unless the task explicitly asks for it as annotation. Query ids: series_highest_x_label, series_lowest_x_label.

Reasoning Operations

Families: ranking

Query Details

Query id Program signature Answer schema Annotation schema
series_highest_x_label argmax(x_position, value(series, x_position)) string_label point
series_lowest_x_label argmin(x_position, value(series, x_position)) string_label point