I am create a fairly complicated graph using xlsxwriter and I need the data labels to be different than the values of the data looking through the documentation, I see that I can add data labels the following way
chart2.add_series({
'name': '=Sheet1!$J$1',
'categories': '=Sheet1!$A$2:$A$22',
'values': '=Sheet1!$J$2:$J$22',
'data_labels': {values: True}
})
The problem is that the data labels for my graph need to be different than the values, I need to point to a different part of the sheet to get my labels something like:
'data_labels': 'values_from_cells'=Sheet1!$K$2:$K$22
within Excel this is very easy to do, 1. right click on the graph,
right click format data labels
label contains: values from cells
I then select the cells I want and it creates the data labels
is this a functionality of xlsxwriter?