Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default C#: XYScatter chart with smooth lines and no markers

I hv been working on a Office 2007 App level add-in project using VS2005,
..Net 2.0, VSTO for Office 2007 and Office 2007 Interopps. I want to draw a
XYScatter chart with smooth lines nad no markers.

Why, even if we set the ChartType to xlXYScatterSmoothNoMarkers you get
markers?
xlChart.ChartType =
Microsoft.Office.Interop.Excel.XlChartType.xlXYSca tterSmoothNoMarkers;

Is there any way to change XYScatter line thickness?
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default C#: XYScatter chart with smooth lines and no markers

OK....I got this matter solved after trying several combinations.

We can use Chart.ChartWizard() method, where in parameters we can mention
the chart type we want. Using Chart.ChartWizard() really reduces the amount
of code lines to be written.

Changing the thickness of the line is possible after obtaining a reference
to the line in the series.
Microsoft.Office.Interop.Excel.Series s =
(Microsoft.Office.Interop.Excel.Series)xlChart.Ser iesCollection(1);
s.Format.Line.Weight = (float)0.25;

"Thilina Dampahala" wrote:


I hv been working on a Office 2007 App level add-in project using VS2005,
.Net 2.0, VSTO for Office 2007 and Office 2007 Interopps. I want to draw a
XYScatter chart with smooth lines nad no markers.

Why, even if we set the ChartType to xlXYScatterSmoothNoMarkers you get
markers?
xlChart.ChartType =
Microsoft.Office.Interop.Excel.XlChartType.xlXYSca tterSmoothNoMarkers;

Is there any way to change XYScatter line thickness?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does Excel smooth chart data when smooth option is selected? Larry Charts and Charting in Excel 1 April 19th 07 05:40 AM
How do print a chart with smooth lines? AmyC79 Charts and Charting in Excel 2 March 21st 07 03:47 PM
How do I smooth the lines around a pie chart? Mary Beth Charts and Charting in Excel 0 October 9th 06 03:39 PM
Smooth lines for 3-D pie charts? RussG Charts and Charting in Excel 0 February 8th 06 02:48 PM
How do I make the lines "smooth" in my 3-d pie chart? penneb Charts and Charting in Excel 0 April 15th 05 05:55 PM


All times are GMT +1. The time now is 12:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"