Got error creating chart file on osx mac