angular-nvd3 sparkline and trailing currentValue number










1















I'm just starting to get to know nvd3. I'm actually using angular-nvd3 to build a sparkline. What I'm not finding an option for is how to get rid of the trailing currentValue. I thought showValues might have been it, but I'm actually seeing no difference.



This plunker shows a sparkline with "23" at the end of it, indicating the last value. That's what I want to get rid of.



http://plnkr.co/edit/CcLayxryGZJGc5vBNpyB?p=preview



$scope.options = 
chart:
type: 'sparklinePlus',
height: 300,
showValues: false

;


Any help?










share|improve this question


























    1















    I'm just starting to get to know nvd3. I'm actually using angular-nvd3 to build a sparkline. What I'm not finding an option for is how to get rid of the trailing currentValue. I thought showValues might have been it, but I'm actually seeing no difference.



    This plunker shows a sparkline with "23" at the end of it, indicating the last value. That's what I want to get rid of.



    http://plnkr.co/edit/CcLayxryGZJGc5vBNpyB?p=preview



    $scope.options = 
    chart:
    type: 'sparklinePlus',
    height: 300,
    showValues: false

    ;


    Any help?










    share|improve this question
























      1












      1








      1








      I'm just starting to get to know nvd3. I'm actually using angular-nvd3 to build a sparkline. What I'm not finding an option for is how to get rid of the trailing currentValue. I thought showValues might have been it, but I'm actually seeing no difference.



      This plunker shows a sparkline with "23" at the end of it, indicating the last value. That's what I want to get rid of.



      http://plnkr.co/edit/CcLayxryGZJGc5vBNpyB?p=preview



      $scope.options = 
      chart:
      type: 'sparklinePlus',
      height: 300,
      showValues: false

      ;


      Any help?










      share|improve this question














      I'm just starting to get to know nvd3. I'm actually using angular-nvd3 to build a sparkline. What I'm not finding an option for is how to get rid of the trailing currentValue. I thought showValues might have been it, but I'm actually seeing no difference.



      This plunker shows a sparkline with "23" at the end of it, indicating the last value. That's what I want to get rid of.



      http://plnkr.co/edit/CcLayxryGZJGc5vBNpyB?p=preview



      $scope.options = 
      chart:
      type: 'sparklinePlus',
      height: 300,
      showValues: false

      ;


      Any help?







      angularjs d3.js nvd3.js






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 18 '16 at 21:13









      rspring1975rspring1975

      7817




      7817






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Add this to the style to hide the last value



          Make the display of the group with text label none.



           <style>
          .nv-valueWrap display:none;

          </style>


          Working code here






          share|improve this answer























          • Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.

            – rspring1975
            Jan 19 '16 at 16:29











          • I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril

            – rspring1975
            Jan 21 '16 at 17:32


















          0














          just set the undocumented* option showLastValue



          $scope.options =
          chart:
          type: 'sparklinePlus',
          height: 300,
          showLastValue: false,

          ;



          * I found this in the "new" documentation for LineChart in the dependant library nvds http://nvd3-community.github.io/nvd3/examples/documentation.html



          Here is a working example :
          http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            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%2fstackoverflow.com%2fquestions%2f34864193%2fangular-nvd3-sparkline-and-trailing-currentvalue-number%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Add this to the style to hide the last value



            Make the display of the group with text label none.



             <style>
            .nv-valueWrap display:none;

            </style>


            Working code here






            share|improve this answer























            • Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.

              – rspring1975
              Jan 19 '16 at 16:29











            • I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril

              – rspring1975
              Jan 21 '16 at 17:32















            0














            Add this to the style to hide the last value



            Make the display of the group with text label none.



             <style>
            .nv-valueWrap display:none;

            </style>


            Working code here






            share|improve this answer























            • Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.

              – rspring1975
              Jan 19 '16 at 16:29











            • I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril

              – rspring1975
              Jan 21 '16 at 17:32













            0












            0








            0







            Add this to the style to hide the last value



            Make the display of the group with text label none.



             <style>
            .nv-valueWrap display:none;

            </style>


            Working code here






            share|improve this answer













            Add this to the style to hide the last value



            Make the display of the group with text label none.



             <style>
            .nv-valueWrap display:none;

            </style>


            Working code here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 19 '16 at 1:05









            CyrilCyril

            28.2k72944




            28.2k72944












            • Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.

              – rspring1975
              Jan 19 '16 at 16:29











            • I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril

              – rspring1975
              Jan 21 '16 at 17:32

















            • Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.

              – rspring1975
              Jan 19 '16 at 16:29











            • I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril

              – rspring1975
              Jan 21 '16 at 17:32
















            Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.

            – rspring1975
            Jan 19 '16 at 16:29





            Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.

            – rspring1975
            Jan 19 '16 at 16:29













            I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril

            – rspring1975
            Jan 21 '16 at 17:32





            I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril

            – rspring1975
            Jan 21 '16 at 17:32













            0














            just set the undocumented* option showLastValue



            $scope.options =
            chart:
            type: 'sparklinePlus',
            height: 300,
            showLastValue: false,

            ;



            * I found this in the "new" documentation for LineChart in the dependant library nvds http://nvd3-community.github.io/nvd3/examples/documentation.html



            Here is a working example :
            http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview






            share|improve this answer





























              0














              just set the undocumented* option showLastValue



              $scope.options =
              chart:
              type: 'sparklinePlus',
              height: 300,
              showLastValue: false,

              ;



              * I found this in the "new" documentation for LineChart in the dependant library nvds http://nvd3-community.github.io/nvd3/examples/documentation.html



              Here is a working example :
              http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview






              share|improve this answer



























                0












                0








                0







                just set the undocumented* option showLastValue



                $scope.options =
                chart:
                type: 'sparklinePlus',
                height: 300,
                showLastValue: false,

                ;



                * I found this in the "new" documentation for LineChart in the dependant library nvds http://nvd3-community.github.io/nvd3/examples/documentation.html



                Here is a working example :
                http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview






                share|improve this answer















                just set the undocumented* option showLastValue



                $scope.options =
                chart:
                type: 'sparklinePlus',
                height: 300,
                showLastValue: false,

                ;



                * I found this in the "new" documentation for LineChart in the dependant library nvds http://nvd3-community.github.io/nvd3/examples/documentation.html



                Here is a working example :
                http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 15 '18 at 8:04

























                answered Nov 15 '18 at 7:58









                Johno ScottJohno Scott

                1,6051512




                1,6051512



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • 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%2fstackoverflow.com%2fquestions%2f34864193%2fangular-nvd3-sparkline-and-trailing-currentvalue-number%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







                    這個網誌中的熱門文章

                    How to read a connectionString WITH PROVIDER in .NET Core?

                    Node.js Script on GitHub Pages or Amazon S3

                    Museum of Modern and Contemporary Art of Trento and Rovereto