chinmaymk / angular-charts

angular directives for creating common charts using d3
MIT License
1.03k stars 270 forks source link

The bottom of the x labels are cut off at the boundary of the canvas #185

Open lvarayut opened 9 years ago

lvarayut commented 9 years ago

I rendered the area chart along with x-axis labels. The labels were cut off at the boundary of the canvas. I tried it once again with your example and got the same result:

screen shot 2558-01-18 at 8 59 42 pm

You can notice that the bottom was cut off. I temporarily fixed it by add a height and a width styles:

SASS:

.ac-chart {
    text-align: center;
    > svg {
        height: $chartHeight + 10;
    }
}

In my opinion, it's not quite a good idea. How can I change the size of the canvas? Any help would be appreciated.