I am using dchart, but I am receiving this error message when use the metho

I am using dchart, but I am receiving this error message when use the method setBarDirection to give Horizontal bar:

“The method setBarDirection(BarDirections) is undefined for the type BarRenderer”
I am using 1.7.0 version.