How to plot event times in a LibreOffice-calc chart












0















I'm trying to make a scatter chart of events, where I have day of week on one axis and time of day on another axis and the data plotted as points for each day+time event.



What I'm trying to get is a time+day distribution of "when things happened", but there's nothing to plot about what or how much happened.



Ideally I would also plot by month or year on the third axis, e.g. by colour, but that's just a nice-to-have.



--------8<--------------------------
Answer to question below ... second attempt as my first was lost :-(



I'm using the ls --time-style=+"..." option, so have good control of the data. Here's an image of data and a basic scatter chart. Attemps to restructure the chart end up blank. There are 40k lines of data and trying to handle all also appears(!) to hang.



Screen-shot of sample data and scatter plot










share|improve this question




















  • 1





    What does the data look like? What happens when you plot it as a scatter diagram (XY chart)?

    – fixer1234
    Feb 5 at 5:02











  • I've updated the question with this informatioin, as comments appear very restrictive of content.

    – Gordon
    Feb 6 at 14:52











  • Just noticed the point at the end about the system hanging due to the amount of data. Added that to the answer.

    – fixer1234
    Feb 7 at 22:13











  • Indeed ... just too much data to digest was likely. I may try some other tricks like sorting it first; I may try multiple graphs. Just leaving it to run overnight may do it, or there are other tools/methods .. Excel, gnuplot or whatever. Having days numeric should also mean I can get a better visual distribution by using a DoW with a fractional part, which is ideal. Thanks very much for your help.

    – Gordon
    Feb 9 at 9:40
















0















I'm trying to make a scatter chart of events, where I have day of week on one axis and time of day on another axis and the data plotted as points for each day+time event.



What I'm trying to get is a time+day distribution of "when things happened", but there's nothing to plot about what or how much happened.



Ideally I would also plot by month or year on the third axis, e.g. by colour, but that's just a nice-to-have.



--------8<--------------------------
Answer to question below ... second attempt as my first was lost :-(



I'm using the ls --time-style=+"..." option, so have good control of the data. Here's an image of data and a basic scatter chart. Attemps to restructure the chart end up blank. There are 40k lines of data and trying to handle all also appears(!) to hang.



Screen-shot of sample data and scatter plot










share|improve this question




















  • 1





    What does the data look like? What happens when you plot it as a scatter diagram (XY chart)?

    – fixer1234
    Feb 5 at 5:02











  • I've updated the question with this informatioin, as comments appear very restrictive of content.

    – Gordon
    Feb 6 at 14:52











  • Just noticed the point at the end about the system hanging due to the amount of data. Added that to the answer.

    – fixer1234
    Feb 7 at 22:13











  • Indeed ... just too much data to digest was likely. I may try some other tricks like sorting it first; I may try multiple graphs. Just leaving it to run overnight may do it, or there are other tools/methods .. Excel, gnuplot or whatever. Having days numeric should also mean I can get a better visual distribution by using a DoW with a fractional part, which is ideal. Thanks very much for your help.

    – Gordon
    Feb 9 at 9:40














0












0








0








I'm trying to make a scatter chart of events, where I have day of week on one axis and time of day on another axis and the data plotted as points for each day+time event.



What I'm trying to get is a time+day distribution of "when things happened", but there's nothing to plot about what or how much happened.



Ideally I would also plot by month or year on the third axis, e.g. by colour, but that's just a nice-to-have.



--------8<--------------------------
Answer to question below ... second attempt as my first was lost :-(



I'm using the ls --time-style=+"..." option, so have good control of the data. Here's an image of data and a basic scatter chart. Attemps to restructure the chart end up blank. There are 40k lines of data and trying to handle all also appears(!) to hang.



Screen-shot of sample data and scatter plot










share|improve this question
















I'm trying to make a scatter chart of events, where I have day of week on one axis and time of day on another axis and the data plotted as points for each day+time event.



What I'm trying to get is a time+day distribution of "when things happened", but there's nothing to plot about what or how much happened.



Ideally I would also plot by month or year on the third axis, e.g. by colour, but that's just a nice-to-have.



--------8<--------------------------
Answer to question below ... second attempt as my first was lost :-(



I'm using the ls --time-style=+"..." option, so have good control of the data. Here's an image of data and a basic scatter chart. Attemps to restructure the chart end up blank. There are 40k lines of data and trying to handle all also appears(!) to hang.



Screen-shot of sample data and scatter plot







charts libreoffice-calc time date






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 7 at 18:16







Gordon

















asked Feb 4 at 18:00









GordonGordon

1011




1011








  • 1





    What does the data look like? What happens when you plot it as a scatter diagram (XY chart)?

    – fixer1234
    Feb 5 at 5:02











  • I've updated the question with this informatioin, as comments appear very restrictive of content.

    – Gordon
    Feb 6 at 14:52











  • Just noticed the point at the end about the system hanging due to the amount of data. Added that to the answer.

    – fixer1234
    Feb 7 at 22:13











  • Indeed ... just too much data to digest was likely. I may try some other tricks like sorting it first; I may try multiple graphs. Just leaving it to run overnight may do it, or there are other tools/methods .. Excel, gnuplot or whatever. Having days numeric should also mean I can get a better visual distribution by using a DoW with a fractional part, which is ideal. Thanks very much for your help.

    – Gordon
    Feb 9 at 9:40














  • 1





    What does the data look like? What happens when you plot it as a scatter diagram (XY chart)?

    – fixer1234
    Feb 5 at 5:02











  • I've updated the question with this informatioin, as comments appear very restrictive of content.

    – Gordon
    Feb 6 at 14:52











  • Just noticed the point at the end about the system hanging due to the amount of data. Added that to the answer.

    – fixer1234
    Feb 7 at 22:13











  • Indeed ... just too much data to digest was likely. I may try some other tricks like sorting it first; I may try multiple graphs. Just leaving it to run overnight may do it, or there are other tools/methods .. Excel, gnuplot or whatever. Having days numeric should also mean I can get a better visual distribution by using a DoW with a fractional part, which is ideal. Thanks very much for your help.

    – Gordon
    Feb 9 at 9:40








1




1





What does the data look like? What happens when you plot it as a scatter diagram (XY chart)?

– fixer1234
Feb 5 at 5:02





What does the data look like? What happens when you plot it as a scatter diagram (XY chart)?

– fixer1234
Feb 5 at 5:02













I've updated the question with this informatioin, as comments appear very restrictive of content.

– Gordon
Feb 6 at 14:52





I've updated the question with this informatioin, as comments appear very restrictive of content.

– Gordon
Feb 6 at 14:52













Just noticed the point at the end about the system hanging due to the amount of data. Added that to the answer.

– fixer1234
Feb 7 at 22:13





Just noticed the point at the end about the system hanging due to the amount of data. Added that to the answer.

– fixer1234
Feb 7 at 22:13













Indeed ... just too much data to digest was likely. I may try some other tricks like sorting it first; I may try multiple graphs. Just leaving it to run overnight may do it, or there are other tools/methods .. Excel, gnuplot or whatever. Having days numeric should also mean I can get a better visual distribution by using a DoW with a fractional part, which is ideal. Thanks very much for your help.

– Gordon
Feb 9 at 9:40





Indeed ... just too much data to digest was likely. I may try some other tricks like sorting it first; I may try multiple graphs. Just leaving it to run overnight may do it, or there are other tools/methods .. Excel, gnuplot or whatever. Having days numeric should also mean I can get a better visual distribution by using a DoW with a fractional part, which is ideal. Thanks very much for your help.

– Gordon
Feb 9 at 9:40










1 Answer
1






active

oldest

votes


















0














To do this, you need a scatter chart (XY chart). The X axis needs to be handled as numerical values, otherwise it will treat them as categories, with the values being just labels and each successive value stacked. Here's an example, and I'll explain how I did it:



enter image description here



The day values are numbers. You can get them by applying the WEEKDAY function to your dates (1=Sun through 7=Sat). These need to be stored as numbers, but if you want them readable as days, format them with a custom date format of ddd, which I did for the last seven values.



Each year is a separate data series, so you want the data presorted, which it looks like you have. Start the chart by selecting the first year's data (Day, time, year), which will give you the first series. For the series name, select one cell in the year column. Verify that the X axis range points to the day column range and the Y axis range points to the time column.



For each additional year, add a series with the + button at the bottom and repeat the process to specify the data ranges.



The automatic settings for the X axis will start at 0 and end at 8, which is fine. That will keep your data in the interior of the chart. It looks like LO Calc won't format the numbers for the X axis in a scatter chart. What I did was add an X axis title. For the title text, I entered the day names with spaces between them, then adjusted the space so the names lined up with the axis ticks. Then I formatted the axis to not show the axis labels.



This is how to get the chart to appear as you ask, but the 40,000 data points is a different issue. Assuming your computer has the resources to handle it, it will take some time. Your computer may be busy and locked up for minutes even with enough RAM. If it doesn't have a ton on RAM, the process could get extremely lengthy, swapping chunks to disk, even to the point of swapping "forever". You may need to divide the data into subgroups and plot those separately, or plot just a sample of the data (random sample or every Nth point), or a combination of methods. Even 10% of the data (4,000 points) is a lot of data for one graph, but you can experiment to see how much data your system can deal with.






share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401950%2fhow-to-plot-event-times-in-a-libreoffice-calc-chart%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    To do this, you need a scatter chart (XY chart). The X axis needs to be handled as numerical values, otherwise it will treat them as categories, with the values being just labels and each successive value stacked. Here's an example, and I'll explain how I did it:



    enter image description here



    The day values are numbers. You can get them by applying the WEEKDAY function to your dates (1=Sun through 7=Sat). These need to be stored as numbers, but if you want them readable as days, format them with a custom date format of ddd, which I did for the last seven values.



    Each year is a separate data series, so you want the data presorted, which it looks like you have. Start the chart by selecting the first year's data (Day, time, year), which will give you the first series. For the series name, select one cell in the year column. Verify that the X axis range points to the day column range and the Y axis range points to the time column.



    For each additional year, add a series with the + button at the bottom and repeat the process to specify the data ranges.



    The automatic settings for the X axis will start at 0 and end at 8, which is fine. That will keep your data in the interior of the chart. It looks like LO Calc won't format the numbers for the X axis in a scatter chart. What I did was add an X axis title. For the title text, I entered the day names with spaces between them, then adjusted the space so the names lined up with the axis ticks. Then I formatted the axis to not show the axis labels.



    This is how to get the chart to appear as you ask, but the 40,000 data points is a different issue. Assuming your computer has the resources to handle it, it will take some time. Your computer may be busy and locked up for minutes even with enough RAM. If it doesn't have a ton on RAM, the process could get extremely lengthy, swapping chunks to disk, even to the point of swapping "forever". You may need to divide the data into subgroups and plot those separately, or plot just a sample of the data (random sample or every Nth point), or a combination of methods. Even 10% of the data (4,000 points) is a lot of data for one graph, but you can experiment to see how much data your system can deal with.






    share|improve this answer






























      0














      To do this, you need a scatter chart (XY chart). The X axis needs to be handled as numerical values, otherwise it will treat them as categories, with the values being just labels and each successive value stacked. Here's an example, and I'll explain how I did it:



      enter image description here



      The day values are numbers. You can get them by applying the WEEKDAY function to your dates (1=Sun through 7=Sat). These need to be stored as numbers, but if you want them readable as days, format them with a custom date format of ddd, which I did for the last seven values.



      Each year is a separate data series, so you want the data presorted, which it looks like you have. Start the chart by selecting the first year's data (Day, time, year), which will give you the first series. For the series name, select one cell in the year column. Verify that the X axis range points to the day column range and the Y axis range points to the time column.



      For each additional year, add a series with the + button at the bottom and repeat the process to specify the data ranges.



      The automatic settings for the X axis will start at 0 and end at 8, which is fine. That will keep your data in the interior of the chart. It looks like LO Calc won't format the numbers for the X axis in a scatter chart. What I did was add an X axis title. For the title text, I entered the day names with spaces between them, then adjusted the space so the names lined up with the axis ticks. Then I formatted the axis to not show the axis labels.



      This is how to get the chart to appear as you ask, but the 40,000 data points is a different issue. Assuming your computer has the resources to handle it, it will take some time. Your computer may be busy and locked up for minutes even with enough RAM. If it doesn't have a ton on RAM, the process could get extremely lengthy, swapping chunks to disk, even to the point of swapping "forever". You may need to divide the data into subgroups and plot those separately, or plot just a sample of the data (random sample or every Nth point), or a combination of methods. Even 10% of the data (4,000 points) is a lot of data for one graph, but you can experiment to see how much data your system can deal with.






      share|improve this answer




























        0












        0








        0







        To do this, you need a scatter chart (XY chart). The X axis needs to be handled as numerical values, otherwise it will treat them as categories, with the values being just labels and each successive value stacked. Here's an example, and I'll explain how I did it:



        enter image description here



        The day values are numbers. You can get them by applying the WEEKDAY function to your dates (1=Sun through 7=Sat). These need to be stored as numbers, but if you want them readable as days, format them with a custom date format of ddd, which I did for the last seven values.



        Each year is a separate data series, so you want the data presorted, which it looks like you have. Start the chart by selecting the first year's data (Day, time, year), which will give you the first series. For the series name, select one cell in the year column. Verify that the X axis range points to the day column range and the Y axis range points to the time column.



        For each additional year, add a series with the + button at the bottom and repeat the process to specify the data ranges.



        The automatic settings for the X axis will start at 0 and end at 8, which is fine. That will keep your data in the interior of the chart. It looks like LO Calc won't format the numbers for the X axis in a scatter chart. What I did was add an X axis title. For the title text, I entered the day names with spaces between them, then adjusted the space so the names lined up with the axis ticks. Then I formatted the axis to not show the axis labels.



        This is how to get the chart to appear as you ask, but the 40,000 data points is a different issue. Assuming your computer has the resources to handle it, it will take some time. Your computer may be busy and locked up for minutes even with enough RAM. If it doesn't have a ton on RAM, the process could get extremely lengthy, swapping chunks to disk, even to the point of swapping "forever". You may need to divide the data into subgroups and plot those separately, or plot just a sample of the data (random sample or every Nth point), or a combination of methods. Even 10% of the data (4,000 points) is a lot of data for one graph, but you can experiment to see how much data your system can deal with.






        share|improve this answer















        To do this, you need a scatter chart (XY chart). The X axis needs to be handled as numerical values, otherwise it will treat them as categories, with the values being just labels and each successive value stacked. Here's an example, and I'll explain how I did it:



        enter image description here



        The day values are numbers. You can get them by applying the WEEKDAY function to your dates (1=Sun through 7=Sat). These need to be stored as numbers, but if you want them readable as days, format them with a custom date format of ddd, which I did for the last seven values.



        Each year is a separate data series, so you want the data presorted, which it looks like you have. Start the chart by selecting the first year's data (Day, time, year), which will give you the first series. For the series name, select one cell in the year column. Verify that the X axis range points to the day column range and the Y axis range points to the time column.



        For each additional year, add a series with the + button at the bottom and repeat the process to specify the data ranges.



        The automatic settings for the X axis will start at 0 and end at 8, which is fine. That will keep your data in the interior of the chart. It looks like LO Calc won't format the numbers for the X axis in a scatter chart. What I did was add an X axis title. For the title text, I entered the day names with spaces between them, then adjusted the space so the names lined up with the axis ticks. Then I formatted the axis to not show the axis labels.



        This is how to get the chart to appear as you ask, but the 40,000 data points is a different issue. Assuming your computer has the resources to handle it, it will take some time. Your computer may be busy and locked up for minutes even with enough RAM. If it doesn't have a ton on RAM, the process could get extremely lengthy, swapping chunks to disk, even to the point of swapping "forever". You may need to divide the data into subgroups and plot those separately, or plot just a sample of the data (random sample or every Nth point), or a combination of methods. Even 10% of the data (4,000 points) is a lot of data for one graph, but you can experiment to see how much data your system can deal with.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 7 at 22:12

























        answered Feb 6 at 17:18









        fixer1234fixer1234

        19.3k145082




        19.3k145082






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401950%2fhow-to-plot-event-times-in-a-libreoffice-calc-chart%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Сан-Квентин

            8-я гвардейская общевойсковая армия

            Алькесар