• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FlexMeasures / flexmeasures / 35719809170
85%

Build:
DEFAULT BRANCH: main
Ran 22 Sep 2026 11:22AM UTC
Jobs 1
Files 186
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Sep 2026 11:08AM UTC coverage: 85.902%. Remained the same
35719809170

push

github

web-flow
Size a fast chart's bars from the sensor's event resolution (#2511)

* ui/static/js: size a fast chart's bars from the sensor's event resolution

Context:
- Issue #2454: a sensor page showing a single data point drew it as a bar
  spanning most of the chart, and stretched the shown time range well beyond
  the selected one. A daily sensor with one recorded day reproduces it, as
  does selecting a range that holds only one data point.
- ECharts derives a bar's width from the spacing between data points, which
  it cannot do with a single point, and it widens the axis to keep the
  outermost bars inside the grid — so an overwide bar drags the axis with it.

Change:
- Set the width ourselves, from the sensor's own event resolution, so a bar
  covers exactly the event it reports however many points are in view; the
  axis is then widened by one resolution instead of by most of the window.
- Recompute that width on every zoom, since a width in pixels does not scale
  with the axis by itself.
- Plot each bar half a resolution late, so it covers the resolution that
  follows its event start, as the Vega-Lite bar chart draws it, rather than
  straddling it; the tooltip reads the real event start back off the series.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* tests: cover a sensor whose chart holds a single data point

Context:
- Issue #2454 is reproduced by a daily sensor of which only one day was
  recorded, so the chart has no event spacing to read a bar's width from.

Change:
- Add an asset with such a daily sensor and its single data point, and assert
  that the sensor page's chart data carries the sensor's own event resolution,
  which is what the chart sizes the bar with.
- Cover the bar geometry itself in the JavaScript suite: the interval a bar
  stands for, the width that makes it cover exactly that interval, and the
  event a bar reports once it is plotted over its own interval.

... (continued)

19602 of 22819 relevant lines covered (85.9%)

0.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35719809170.1 22 Sep 2026 11:22AM UTC 186
85.9
GitHub Action Run
Source Files on build 35719809170
  • Tree
  • List 186
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35719809170
  • 1b6ea6b8 on github
  • Prev Build on main (#35710232804)
  • Next Build on main (#35831474736)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc