Skip to content

RS-22593: Expose Price Sensitivity Meter chart title as ChartLabels$ChartTitle#20

Closed
JustinCCYap wants to merge 1 commit into
masterfrom
RS-22593
Closed

RS-22593: Expose Price Sensitivity Meter chart title as ChartLabels$ChartTitle#20
JustinCCYap wants to merge 1 commit into
masterfrom
RS-22593

Conversation

@JustinCCYap

Copy link
Copy Markdown

Summary

  • The Price Sensitivity Meter renders a chart title (forwarded to Line via ...) but did not expose it on the output object, so consumers reading attr(x, "ChartLabels")$ChartTitle — notably the LLM-readable generation used by Chat to answer questions from existing outputs — could not label the chart's data.
  • PriceSensitivityMeter now merges the title into the ChartLabels attribute as ChartTitle, alongside the existing ChartData, without overwriting the SeriesLabels that Line already sets. The title is only exposed when non-empty.

Jira: https://numbers.atlassian.net/browse/RS-22593

Test plan

  • test_that("Chart title exposed as ChartLabels$ChartTitle", ...) asserts the title is exposed when set and absent when empty, and that ChartData is still attached.
  • Note: R was not available locally to run tests; relying on CI.

AI code etiquette

  • The code change and test were AI-generated (Claude) and reviewed by me.

🤖 Generated with Claude Code

…hartTitle

The chart title is forwarded to Line via ... but was not exposed on the
output, so consumers reading attr(x, "ChartLabels")$ChartTitle (e.g. the
LLM-readable generation) could not label the chart's data. Merge the title
into the ChartLabels attribute alongside the existing ChartData, without
overwriting the SeriesLabels that Line already sets.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant