chinmaymk / angular-charts

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

Add ability to customize chart margins through config object #197

Open jdforsythe opened 9 years ago

jdforsythe commented 9 years ago

Adds the ability to override the default margins of the chart via the ac-config object. Fixes an issue I had using the chart where the y-axis would go from 0-100k and the 1 in the 100k was cut off. This change allowed me to add some extra margin to the left to compensate, only on the charts where it was necessary.