Creating a stacked area chart

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












I have imported the following data from Excel:



s = 0.166667, 0.333333, 0., 0., 0., 0.166667,
0.0833333, 0., 0.166667, 0.0833333, 0., 0.166667,
0.333333, 0.0833333, 0.166667, 0.166667, 0.0833333, 0.166667,
0.416667, 0.5, 0.583333, 0.666667, 0.833333, 0.333333,
0., 0.0833333, 0., 0., 0.0833333, 0.,
0., 0., 0., 0.0833333, 0., 0.166667,
0., 0., 0.0833333, 0., 0., 0.


My purpose is now to create a stacked area chart in Mathematica, of the kind shown in the diagram below. My question is, how can I do that using my data?
enter image description here










share|improve this question



























    up vote
    2
    down vote

    favorite
    1












    I have imported the following data from Excel:



    s = 0.166667, 0.333333, 0., 0., 0., 0.166667,
    0.0833333, 0., 0.166667, 0.0833333, 0., 0.166667,
    0.333333, 0.0833333, 0.166667, 0.166667, 0.0833333, 0.166667,
    0.416667, 0.5, 0.583333, 0.666667, 0.833333, 0.333333,
    0., 0.0833333, 0., 0., 0.0833333, 0.,
    0., 0., 0., 0.0833333, 0., 0.166667,
    0., 0., 0.0833333, 0., 0., 0.


    My purpose is now to create a stacked area chart in Mathematica, of the kind shown in the diagram below. My question is, how can I do that using my data?
    enter image description here










    share|improve this question

























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      I have imported the following data from Excel:



      s = 0.166667, 0.333333, 0., 0., 0., 0.166667,
      0.0833333, 0., 0.166667, 0.0833333, 0., 0.166667,
      0.333333, 0.0833333, 0.166667, 0.166667, 0.0833333, 0.166667,
      0.416667, 0.5, 0.583333, 0.666667, 0.833333, 0.333333,
      0., 0.0833333, 0., 0., 0.0833333, 0.,
      0., 0., 0., 0.0833333, 0., 0.166667,
      0., 0., 0.0833333, 0., 0., 0.


      My purpose is now to create a stacked area chart in Mathematica, of the kind shown in the diagram below. My question is, how can I do that using my data?
      enter image description here










      share|improve this question















      I have imported the following data from Excel:



      s = 0.166667, 0.333333, 0., 0., 0., 0.166667,
      0.0833333, 0., 0.166667, 0.0833333, 0., 0.166667,
      0.333333, 0.0833333, 0.166667, 0.166667, 0.0833333, 0.166667,
      0.416667, 0.5, 0.583333, 0.666667, 0.833333, 0.333333,
      0., 0.0833333, 0., 0., 0.0833333, 0.,
      0., 0., 0., 0.0833333, 0., 0.166667,
      0., 0., 0.0833333, 0., 0., 0.


      My purpose is now to create a stacked area chart in Mathematica, of the kind shown in the diagram below. My question is, how can I do that using my data?
      enter image description here







      plotting






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 4 hours ago









      kglr

      168k8191394




      168k8191394










      asked 5 hours ago









      user120911

      47118




      47118




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          You can use StackedListPlot:



          StackedListPlot[s[[1]]]


          enter image description here



          Alternatively, you can use ListLinePlot with the option PlotLayout ->"Stacked":



          ListLinePlot[s[[1]], PlotLayout -> "Stacked", Filling -> Automatic, PlotRange -> All]


          enter image description here






          share|improve this answer






















            Your Answer




            StackExchange.ifUsing("editor", function ()
            return StackExchange.using("mathjaxEditing", function ()
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            );
            );
            , "mathjax-editing");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "387"
            ;
            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f184816%2fcreating-a-stacked-area-chart%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote













            You can use StackedListPlot:



            StackedListPlot[s[[1]]]


            enter image description here



            Alternatively, you can use ListLinePlot with the option PlotLayout ->"Stacked":



            ListLinePlot[s[[1]], PlotLayout -> "Stacked", Filling -> Automatic, PlotRange -> All]


            enter image description here






            share|improve this answer


























              up vote
              3
              down vote













              You can use StackedListPlot:



              StackedListPlot[s[[1]]]


              enter image description here



              Alternatively, you can use ListLinePlot with the option PlotLayout ->"Stacked":



              ListLinePlot[s[[1]], PlotLayout -> "Stacked", Filling -> Automatic, PlotRange -> All]


              enter image description here






              share|improve this answer
























                up vote
                3
                down vote










                up vote
                3
                down vote









                You can use StackedListPlot:



                StackedListPlot[s[[1]]]


                enter image description here



                Alternatively, you can use ListLinePlot with the option PlotLayout ->"Stacked":



                ListLinePlot[s[[1]], PlotLayout -> "Stacked", Filling -> Automatic, PlotRange -> All]


                enter image description here






                share|improve this answer














                You can use StackedListPlot:



                StackedListPlot[s[[1]]]


                enter image description here



                Alternatively, you can use ListLinePlot with the option PlotLayout ->"Stacked":



                ListLinePlot[s[[1]], PlotLayout -> "Stacked", Filling -> Automatic, PlotRange -> All]


                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 4 hours ago

























                answered 5 hours ago









                kglr

                168k8191394




                168k8191394



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f184816%2fcreating-a-stacked-area-chart%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery