Skip to content

fix: state: last to use value from last Graph coordinate#1308

Open
whisdol wants to merge 1 commit intokalkih:devfrom
whisdol:fix_state_last
Open

fix: state: last to use value from last Graph coordinate#1308
whisdol wants to merge 1 commit intokalkih:devfrom
whisdol:fix_state_last

Conversation

@whisdol
Copy link
Copy Markdown

@whisdol whisdol commented Nov 2, 2025

Currently, state: last breaks rendering with bar charts (#1248) because points are not calculated for bar charts.
This fix accesses the value of the last coordinate from the Graph instead, which is exactly what I want to have displayed when using this option.
To my understanding (and testing), using the last coord is a simpler and more reliable fix than always calculating points (ref #1075), because the last point for a grouped bar chart is not the value of the last coordinate (the last point is actually the average of the last two states, so a completely different value). (Surprisingly, the same is true for grouped line graphs, where the point is selectable and shows this incorrect value as the hover state, but that may be a different issue.)

@whisdol whisdol changed the title Fix state: last with state from Graph coordinate fix: state: last to use state from last Graph coordinate Nov 2, 2025
@whisdol whisdol changed the title fix: state: last to use state from last Graph coordinate fix: state: last to use value from last Graph coordinate Nov 2, 2025
@akloeckner akloeckner changed the base branch from master to dev December 14, 2025 07:48
@ildar170975
Copy link
Copy Markdown
Collaborator

@whisdol
Please check another proposal - #1322
Observations & critics are appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants