As the name implies, this adds values ββto the array in your domain y , it does not set the value for domain y to [0,100] . Therefore, if you set this parameter to [0,100] and your data area is -10 to 110 , the domain will be [-10,110] .
Now, if you want the domain to be [0,100] , even if your data is larger, you can use chart.yDomain([0,100]) ... BUT usually you want your domain to include your data chart.yDomain([0,100]) , so I highly recommend use chart.forceY instead of of chart.yDomain . As you will see, one of the most common uses for forceY is forceY([0]) to always do 0 in the domain.
Hope this helps you understand what the function actually does, and arboc7, this should explain why this doesn't work, making the range smaller than the dataset.
Bob Monteverde Sep 06 '12 at 5:17 2012-09-06 05:17
source share