Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Fri Feb 24, 2017 10:27 am

Hello. I am not able to add legend keys to my data table below the chart. I described my problem in detail on stackoverflow, but I can't post link here, because I get message "You are not allowed to post URLs!" from your forum.
Title on stack is "C# Spire.Xls - error with data table (adding legend keys)". Please google it if you can.
Do you know how could I achieve that?

kopycki16
 
Posts: 2
Joined: Wed Feb 22, 2017 11:33 am

Wed Mar 01, 2017 2:07 pm

This solution from stack worked for me:
(chart as Spire.Xls.Core.Spreadsheet.Shapes.XlsChartShape).DataTable.ShowSeriesKeys = true;

kopycki16
 
Posts: 2
Joined: Wed Feb 22, 2017 11:33 am

Thu Mar 02, 2017 1:31 am

Dear kopycki16,

Thanks for sharing :) .
Please feel free to contact us if there is any question.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.XLS