extract common functionality of lua graph objects
loading color from lua
loading scale from lua