Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript NVD3如何删除折线图中的Y轴,以及删除后如何利用Y轴的空间_Javascript_Angularjs_Angularjs Directive_Linechart_Angular Nvd3 - Fatal编程技术网

Javascript NVD3如何删除折线图中的Y轴,以及删除后如何利用Y轴的空间

Javascript NVD3如何删除折线图中的Y轴,以及删除后如何利用Y轴的空间,javascript,angularjs,angularjs-directive,linechart,angular-nvd3,Javascript,Angularjs,Angularjs Directive,Linechart,Angular Nvd3,我使用NVD3显示折线图。 我的折线图如下: chart: { type: 'lineChart', height: 150, margin : { top: 20, right: 20, bottom: 40, left: 55

我使用NVD3显示折线图。 我的折线图如下:

chart: {
                type: 'lineChart',
                height: 150,
                margin : {
                    top: 20,
                    right: 20,
                    bottom: 40,
                    left: 55
                },
                x: function(d){ return d.x; },
                useInteractiveGuideline: true,
                "xAxis": {
                    ticks:7,
                    showMaxMin : false,
                    tickFormat: 
                        function (d) { 
                        var x = globalFactory.getCalendarConstants().dateMap.weekDayShortLabels
                        return x[d] },
                },
                showYAxis:false,
                showLegend : false,
            }
它删除了Y轴,但未利用Y轴的空间。我想把那个地方用光


他们有什么解决办法吗?

您可以尝试调整边距(见下文),不过您可能需要稍微调整边距,以便按照您想要的方式将边距隔开

margin : {
          top: 20,
          right: 20,
          bottom: 40,
          left: 0
         },

我应该在哪个元素上尝试边距?