chinmaymk / angular-charts

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

No Data for X axis creating extra 0 on line graph #206

Open atentis opened 9 years ago

atentis commented 9 years ago

Im having an issue where a zero is automatically appearing where i dont have data. For example below I do not have a 3rd element in the array for desktops and because of that a zero is getting made under tablets as you can see in my screenshot. How do I stop this as I only want it to go from the first 0 (Laptops) to 450 (tablets)

x: "Desktops", y: [300, 142]

http://plnkr.co/edit/cIcLyd?p=preview capture