[Solved] Chart: How to add additional data column as label

Discuss the spreadsheet application
Post Reply
Femmesole
Posts: 6
Joined: Sat Jul 07, 2018 7:29 am

[Solved] Chart: How to add additional data column as label

Post by Femmesole »

Attached find jpg with problem identified. Apologies if repetition. Just joined forum.

Attempting to add date and time data to chart for blood pressure.
Attachments
Annotated.
Annotated.
Last edited by Femmesole on Sun Jul 08, 2018 8:06 am, edited 1 time in total.
Open Office v4.1.5; Windows 10
User avatar
Zizi64
Volunteer
Posts: 11360
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Chart: How to add additional data column as label

Post by Zizi64 »

Your attached picture has a low resolution and it is very blurry. It can not give us enough information about your problem. Please

- post only Tutorials and Descriptions into the TUTORIAL furum. See the label "No question in this forum please"
- upload a real, ODF type sample file instead of the picture.
- use a 256 color depth PNG type files for the image attachments.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
robleyd
Moderator
Posts: 5085
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Chart: How to add additional data column as label

Post by robleyd »

Topic moved to appropriate location.

The OpenOffice User Guides forCharts_and_Graphs should be a useful resource for the construction of charts in Calc.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Femmesole
Posts: 6
Joined: Sat Jul 07, 2018 7:29 am

Re: Chart: How to add additional data column as label

Post by Femmesole »

Thank you.
Will have to learn what is meant by ODF file.
Attempting png upload.
Attachments
BloodPressure02.PNG
Open Office v4.1.5; Windows 10
User avatar
robleyd
Moderator
Posts: 5085
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Chart: How to add additional data column as label

Post by robleyd »

ODF is Open Document Format, the format used in Apache OpenOffice documents. Ziz64 is suggesting that you upload a Calc file - .ods - showing the type of data you are working with and the chart you have thus far created.

Uploading an image gives us no idea of what you have done to create the chart.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Femmesole
Posts: 6
Joined: Sat Jul 07, 2018 7:29 am

Re: Chart: How to add additional data column as label

Post by Femmesole »

Thanks for your patience.

Have attached ods file.
Attachments
BloodPressure.ods
(34.66 KiB) Downloaded 102 times
Open Office v4.1.5; Windows 10
User avatar
Zizi64
Volunteer
Posts: 11360
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Chart: How to add additional data column as label

Post by Zizi64 »

The "time values" are not time values really in your file, but they are pure 4 digit integer numbers.
You need enter (type-in) them in a Standard format, like the "hh:mm".
1930 -> 19:30
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
Posts: 11360
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Chart: How to add additional data column as label

Post by Zizi64 »

Your file was .xls file before. There was inherited incompatible formatting parameters in the file.

First I swiched on the Column and Row headers, then I deleted a lot of formatting parameters, Then I was justed the font of the default Cell style to Arial, and I have created a new Cell Style named "DateTime" with your specific date-time format. And then I have re-entered the combined date-time values manually. Finally I have recreated the chart in compatible format.

Use the cellstyles to format your spreadsets instead of the manual formatting.
BloodPressure_Zizi64.ods
(27.07 KiB) Downloaded 74 times
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
MrProgrammer
Moderator
Posts: 4907
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Chart: How to add additional data column as label

Post by MrProgrammer »

Zizi64 wrote:You need enter (type-in) them in a Standard format, like the "hh:mm".
No need to re-type. [Tutorial] Text to Columns Q11/A11
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Femmesole
Posts: 6
Joined: Sat Jul 07, 2018 7:29 am

Re: Chart: How to add additional data column as label

Post by Femmesole »

Thanks for your help.

I did know about alternative date and time formats, however have mostly used xls and I am not expert.

Is it just not possible to do what I was attempting?
Open Office v4.1.5; Windows 10
User avatar
Zizi64
Volunteer
Posts: 11360
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Chart: How to add additional data column as label

Post by Zizi64 »

Attempting to add date and time data to chart for blood pressure.
...
Is it just not possible to do what I was attempting?
Sorry, I misunderstuud your problem first: I thought you want display the time values on the axis "x", together with the dates... And it works with real mumeric ("combined") DateTime values only.




Yes, it is possible:

viewtopic.php?f=9&t=78870

Acknak wrote in that thread:
One way to configure the chart to use a column as data labels:

Under "Data Ranges" assign the column as "Categories" or "Data Labels", then right-click on a data point, Format Data Labels > Data Labels, set "Show Categories" as YES
Blood pressure.png
But you must Format (or convert / retype) your "time values" to real, well formatted time values or to Text values, otherwise (maybe) the 0730 will be appeared as 730. A four digit number seems NOT (for me) as a time value...

And if you want add combined DateTime "values" to the points, then you must "append" the Date and the Time values into one column. It will work only with regular DateTime values or as with "appended text format data" .

You can use one set of the user defined labels for all of graph lines, you can not use different user defined labels for the different chart lines. - Or you can use the Values as labels. (Tried in my LibreOffice 5.4.7)


...however have mostly used xls and I am not expert.
Always use the native, international ODF file formats for your important documents.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Femmesole
Posts: 6
Joined: Sat Jul 07, 2018 7:29 am

Re: Chart: How to add additional data column as label

Post by Femmesole »

Thanks for the help.
In that case I think I was attempting something not possible. Perhaps it would take the ability to add a text box or similar to the chart.
The reason is that the spreadsheet is printed to allow recording in the home situation; with data being transferred later to produce the chart for medical personnel to evaluate (easier in graphic format).
Home recording usually has separate columns for date and time.

Attached find the result I have now produced and it's ok.

Once again, thank you very much. These programmes are becoming so complex, it hard to keep up unless one uses them all the time. It's great to have a forum like this from which to obtain help.
Attachments
BP-2.PNG
BP-2.ods
(31.88 KiB) Downloaded 61 times
Open Office v4.1.5; Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: SOLVED - Chart: How to add additional data column as lab

Post by Villeroy »

Once again, thank you very much. These programmes are becoming so complex, it hard to keep up unless one uses them all the time.
Same complexity since the first spreadsheets of the early 80ies. In fact these complexities are due to the fact that the programs are so simple. They do not include artificial intelligence to interprete "20.8.2018 - 13:45" as a German timestamp value. A spreadsheet provides a simplified, more visual programming language and programming languages need to determine between text and number at least.
Spreadsheets did not change since their early days. They all work with the same concepts of absolute/relative referencing, value/format, text/number, constant/formula.

Dates in spreadsheets are day numbers:
43289,75 (German comma) formatted as date-time gives "8.7.18 18:00" (day number 43289 plus 3/4 of a day). The same number can be formatted as "8/7/18 18:00", ISO date "2018-07-08 18:00", American date "7/8/18 6 pm" as currency value "43289,75 €" but it remains the same numeric value 43289,75 or 43289.75 with decimal point.
The text value "8.7.18 18:00" is not a number at all and it is never the same value as 43289.75 or any of its formattings. A formatting never changes the actual value of a cell.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Femmesole
Posts: 6
Joined: Sat Jul 07, 2018 7:29 am

Re: SOLVED - Chart: How to add additional data column as lab

Post by Femmesole »

Surely its all relative. I remember sitting in a class in 1980, where all others were male and seemed to know what it was all about, trying to learn Pascal programming and writing out programmes for input by another and when forgetting a semicolon meant another week of waiting.... My background was in Latin, French, English and History, not in numbers. I did not find any of it simple.

I was not being critical of the programme. I think it's wonderful that so many people develop and give their time freely to maintain Open Office and other such programmes.
Open Office v4.1.5; Windows 10
jrkrideau
Volunteer
Posts: 3816
Joined: Sun Dec 30, 2007 10:00 pm
Location: Kingston Ontario Canada

Re: SOLVED - Chart: How to add additional data column as lab

Post by jrkrideau »

I am not sure but I think that Villeroy means that spreadsheets are simple-minded brutes and a lot of the complexity you are running into is because the user needs to compensate for this simple-mindness.
LibreOffice 7.3.7. 2; Ubuntu 22.04
Post Reply