Amchart 4 Sankey Diagram Node out of range











up vote
1
down vote

favorite












https://codepen.io/aad61404/pen/YRyJxN



https://codepen.io/aad61404/pen/aQvRyz?editors=0010



I am using amcharts 4 Sankey diagram and I want to fix the
node out of range .



I try



chart.height = 500;
chart.contentheight = 500;
chart.contentHeight = 500;
chart.innerHeight = 500;


It doesn't work . ( the node would be out of range )



Can I limit the amcharts 4 draw chart in 500 px height ?
How can I achieve the desired effect ?










share|improve this question


























    up vote
    1
    down vote

    favorite












    https://codepen.io/aad61404/pen/YRyJxN



    https://codepen.io/aad61404/pen/aQvRyz?editors=0010



    I am using amcharts 4 Sankey diagram and I want to fix the
    node out of range .



    I try



    chart.height = 500;
    chart.contentheight = 500;
    chart.contentHeight = 500;
    chart.innerHeight = 500;


    It doesn't work . ( the node would be out of range )



    Can I limit the amcharts 4 draw chart in 500 px height ?
    How can I achieve the desired effect ?










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      https://codepen.io/aad61404/pen/YRyJxN



      https://codepen.io/aad61404/pen/aQvRyz?editors=0010



      I am using amcharts 4 Sankey diagram and I want to fix the
      node out of range .



      I try



      chart.height = 500;
      chart.contentheight = 500;
      chart.contentHeight = 500;
      chart.innerHeight = 500;


      It doesn't work . ( the node would be out of range )



      Can I limit the amcharts 4 draw chart in 500 px height ?
      How can I achieve the desired effect ?










      share|improve this question













      https://codepen.io/aad61404/pen/YRyJxN



      https://codepen.io/aad61404/pen/aQvRyz?editors=0010



      I am using amcharts 4 Sankey diagram and I want to fix the
      node out of range .



      I try



      chart.height = 500;
      chart.contentheight = 500;
      chart.contentHeight = 500;
      chart.innerHeight = 500;


      It doesn't work . ( the node would be out of range )



      Can I limit the amcharts 4 draw chart in 500 px height ?
      How can I achieve the desired effect ?







      amcharts sankey-diagram






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 3:30









      ZHENG XIANG REN

      62




      62
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          For what it's worth the same question was posted to GitHub, the solution provided was:



          chart.nodePadding = 1; // default: 20


          and optionally reduce chart.nodeMinSize as well, e.g.



          chart.nodeMinSize = 0.01; // default: 0.02


          Hope this of value to someone.






          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',
            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%2f53219445%2famchart-4-sankey-diagram-node-out-of-range%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








            up vote
            1
            down vote













            For what it's worth the same question was posted to GitHub, the solution provided was:



            chart.nodePadding = 1; // default: 20


            and optionally reduce chart.nodeMinSize as well, e.g.



            chart.nodeMinSize = 0.01; // default: 0.02


            Hope this of value to someone.






            share|improve this answer

























              up vote
              1
              down vote













              For what it's worth the same question was posted to GitHub, the solution provided was:



              chart.nodePadding = 1; // default: 20


              and optionally reduce chart.nodeMinSize as well, e.g.



              chart.nodeMinSize = 0.01; // default: 0.02


              Hope this of value to someone.






              share|improve this answer























                up vote
                1
                down vote










                up vote
                1
                down vote









                For what it's worth the same question was posted to GitHub, the solution provided was:



                chart.nodePadding = 1; // default: 20


                and optionally reduce chart.nodeMinSize as well, e.g.



                chart.nodeMinSize = 0.01; // default: 0.02


                Hope this of value to someone.






                share|improve this answer












                For what it's worth the same question was posted to GitHub, the solution provided was:



                chart.nodePadding = 1; // default: 20


                and optionally reduce chart.nodeMinSize as well, e.g.



                chart.nodeMinSize = 0.01; // default: 0.02


                Hope this of value to someone.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 17 at 3:03









                notacouch

                1,1261823




                1,1261823






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219445%2famchart-4-sankey-diagram-node-out-of-range%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

                    Schultheiß

                    Verwaltungsgliederung Dänemarks

                    Liste der Kulturdenkmale in Wilsdruff