How to change the name of a data series in the chart legend?

Version: 24.8.6.2 (X86_64) / LibreOffice Community
Build ID: 6d98ba145e9a8a39fc57bcc76981d1fb1316c60c
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

I’ve built a simple chart in Calc with two data series which appear in the chart as lines, and in the Legend as “Running Total” and “Running Average”.

I’d like to change the name of the data as it appears in the Legend, so that instead of “Running Total” it reads “Amassed Total”.

I’ve looked through the documentation but have been unable to find any way to edit the words as they appear in the Legend once the chart has been created. Can anyone point the way?

Please attach a sample file(s), reduce the size as much as possible without private information.

If the sourve of the names is the Data Range (the first row of it) the you can modify the names in the Data Range cells. It will refresh on the chart too.
.
Please upload a small, ODF type sample file here.

Thank you, this was the solution; The top of the data range was in a hidden cell, and “First Row as Label” was checked.