fb411e6a4dbb7842ef5f09fbdfc1e4e64a0482a1
Field selectors are now dropdowns populated from the panel's actual
data frames. Each option shows 'fieldName (refId)' so users can
distinguish fields from different queries (A, B, C, etc.).
The selected value uses a 'refId:fieldName' composite key so the
panel can unambiguously resolve the correct field even when multiple
queries return fields with the same name.
Data extraction now searches across ALL series (not just series[0]),
fixing the core bug where selecting a field from query B/C had no
effect because the code only looked at the first data frame.
Field resolution priority:
1. Exact 'refId:fieldName' match (from dropdown selection)
2. Fuzzy match by field name, display name, frame name, or refId
3. For charge field only: fallback to first numeric field ('Auto')
Dropdowns also support allowCustomValue for manual entry and
isClearable to reset.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Grafana Battery Visualisation
I hate writing documentation, and since I will have ADHD brain, I will forget how to do this.
npm install
npm run build
cp -r dist /var/lib/grafana/plugins/andydixon-battery-panel
in /etc/grafana/grsfana.ini add andydixon-battery-panel to allow_loading_unsigned_plugins
Languages
TypeScript
87%
JavaScript
9.5%
Dockerfile
2.8%
Shell
0.7%