@brief Insert a chart object into a worksheet, with options.
@param worksheet Pointer to a lxw_worksheet instance to be updated.
@param row The zero indexed row number.
@param col The zero indexed column number.
@param chart A #lxw_chart object created via workbook_add_chart().
@param user_options Optional chart parameters.
@return A #lxw_error code.
The %worksheet_insert_chart_opt() function is like
worksheet_insert_chart() function except that it takes an optional
#lxw_image_options struct to scale and position the image of the chart:
@brief Insert a chart object into a worksheet, with options.
@param worksheet Pointer to a lxw_worksheet instance to be updated. @param row The zero indexed row number. @param col The zero indexed column number. @param chart A #lxw_chart object created via workbook_add_chart(). @param user_options Optional chart parameters.
@return A #lxw_error code.
The %worksheet_insert_chart_opt() function is like worksheet_insert_chart() function except that it takes an optional #lxw_image_options struct to scale and position the image of the chart:
@code lxw_image_options options = {.x_offset = 30, .y_offset = 10, .x_scale = 0.5, .y_scale = 0.75};
worksheet_insert_chart_opt(worksheet, 0, 2, chart, &options);
@endcode
@image html chart_line_opt.png
The #lxw_image_options struct is the same struct used in worksheet_insert_image_opt() to position and scale images.