krispo / angular-nvd3

AngularJS directive for NVD3 reusable charting library (based on D3). Easily customize your charts via JSON API.
http://krispo.github.io/angular-nvd3
MIT License
1.29k stars 377 forks source link

xDomain for Multichart does not work #586

Open leodigitalbalance opened 7 years ago

leodigitalbalance commented 7 years ago

I'm trying to force the x-axis to hold up to 24 hours but it current stops at the latest hour which is 10 am in this example. Is there a way to extend it?

image

cmorgant commented 5 years ago

You can't force xAxis range in a multiChart although you can do with other types of chart.

I faced the same issue and as a workaround, I had to add a 'fake' point with a null value at the beginning of each serie and do the same at the end with respectively the min value and the max value.