Skip to content

Bar chart: last bar cropped on 24h/7d/30d views #1756

@SebConejo

Description

@SebConejo

What happens

On the Overview page, the last bar in the cost/token bar charts is partially hidden (cropped by the plot boundary) on the 24h, 7d, and 30d time ranges. The 1h and 6h ranges display correctly.

How to reproduce

  1. Go to Overview for any agent with recent activity
  2. Select "Last 24 hours" or "Last 30 days"
  3. Look at the rightmost bar in the cost chart

The last bar extends beyond the visible plot area and is cut off on the right edge.

Expected

All bars should be fully visible within the chart area, including the last one.

Context

This is a uPlot rendering issue where the x-axis scale range doesn't account for the full width of the last bar. Likely needs a small padding on the max x value or adjusting the bar width calculation for multi-day ranges.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXGlobal user experience (platform or terminal or chat)bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions