Is DygraphAxisType really DygraphYAxisType? This code is duplicated and I'm not sure that it needs to be.