[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Vb.Net, Excel Charts

Asked by abhinayp86 in Microsoft Visual Basic.Net, Microsoft Visual C#.Net, .NET Framework 2.x

Hi experts,

For displaying a row into excel chart, i need to specify the cells explictly as:

 .SetSourceData(xlWorkSheet.Range("B2:BL2"))

But i want to chart the entire row, and cells in the row keep changing. How can i do that?

Also, the x-axis values are numbers starting from 1. How can i change them to some custom values?

Also it displays "series 1" at right side. How can i rename it in VB.net?  

Any help is greatly appretiated..      

Thanks
Abhinay
 
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
With chart
                .ChartType = Excel.XlChartType.xlColumnClustered
                .SetSourceData(xlWorkSheet.Range("B2:BL2")) 
                .HasTitle = True
                .ChartTitle.Characters.Text = "Records Count" 
                .Axes(1, Excel.XlAxisGroup.xlPrimary).HasTitle = True
                .Axes(1, Excel.XlAxisGroup.xlPrimary).AxisTitle.Characters.Text = "Date"
              
                .Axes(2, Excel.XlAxisGroup.xlPrimary).HasTitle = True
                .Axes(2, Excel.XlAxisGroup.xlPrimary).AxisTitle.Characters.Text = "Count"
            End With
 
Related Solutions
Keywords: Vb.Net, Excel Charts
 
Loading Advertisement...
 
[+][-]11/06/09 08:16 AM, ID: 25760436Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/06/09 08:33 AM, ID: 25760588Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/06/09 08:42 AM, ID: 25760696Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/07/09 10:22 AM, ID: 25767381Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/09/09 11:04 AM, ID: 25778878Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/10/09 01:15 PM, ID: 25789938Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625