converted gcharts from library to spark