I have recently upgraded to Dygraph v2.2.1 from v1.1.1 and the option axisLabelColor to color the labels of the axis is not there anymore. Was it substituted by another option or this option is not available anymore?
My current solution was to change the color through the class of the elements (dygraph-axis-label-y) but I am wondering if there is a better solution.
As of dygraphs 2.0 (2017), CSS is the preferred way to style axis labels:
So your approach is correct. Check out the dygraphs CSS reference.