I am evaluating the spire.xls library to check whether it fits our purpose.
I am trying to create a graph which looks like below.
However I am not able to create my custom datalabel with my custom text.
I am using following code to set the text for the datalabel.
- Code: Select all
chartSeries.DataPoints.DefaultDataPoint.DataLabels.HasValue = false;
chartSeries.DataPoints.DefaultDataPoint.DataLabels.HasCategoryName = false;
chartSeries.DataPoints.DefaultDataPoint.DataLabels.HasLegendKey = false;
chartSeries.DataPoints.DefaultDataPoint.DataLabels.HasSeriesName = false;
chartSeries.DataPoints.DefaultDataPoint.DataLabels.HasBubbleSize = false;
chartSeries.DataPoints.DefaultDataPoint.DataLabels.Text = sLabelText;
But in resulting excel file I don't see my custom datalabel.
Is setting up custom data label is supported ?
Is there anything wrong with the above code ?
Thanks