How to create data labels on google sheet charts?

Creating an embeded chart in google sheet is quite different form creating it with Chart API. I create a chart by this code: function new_chart(range, sheet, title, offset_x, offset_y, type, colo...