We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Add categorylabels in excel chart

Thread ID:

Created:

Updated:

Platform:

Replies:

58330 Mar 22,2007 03:58 AM Mar 23,2007 05:40 AM ASP.NET Web Forms (Classic) 3
loading
Tags: XlsIO
thuric
Asked On March 22, 2007 03:58 AM

Hi,

I don't understand how I can add CategoryLabels in an Excel chart.

I tried that :
Dim series As IChartSerie = chart.Series(0)
series.CategoryLabels = sheet.Range("A1:B2")

But it didn't work :(

Thanks,
thuric

Melba Winshia [Syncfusion]
Replied On March 22, 2007 07:20 AM

Hi Thuric,

I am afraid. I was not able to reproduce the issue. The category Labels are set correctly. Here is the test sample that I used to test this issue

http://websamples.syncfusion.com/samples/XlsIO.Web/4.4.0.51/F58330/main.htm

Here is the code snippet that I used to set CategoryLabels

[VB .NET]

Dim serieOne As IChartSerie = chart.Series(0)
serieOne.Name = "Apple"

'Category Labels
serieOne.CategoryLabels = sheet.Range("A2:A12")

Here is the screenshot of the output:

CategoryLabel.png

Could you please take a look at the sample above and kindly let me know if you still find any problem, if not could you please modify this sample so that I can reproduce the issue. This would help me in investigating this issue further.

Thanks,
Melba

Administrator [Syncfusion]
Replied On March 22, 2007 09:09 AM

hi Melba,

I used
chart.ChartType = ExcelChartType.Radar_Filled
and not
chart.ChartType = ExcelChartType.Radar
and it works with the second one.

Perharps, I'm not using it the right way.

thanks

Melba Winshia [Syncfusion]
Replied On March 23, 2007 05:40 AM

Hi Thuric,

Thanks for the update!

Kindly let me know if you have any other questions.

Regards,
Melba

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;