MS - Excel Chart

Hi,

Working on a Lotus Script that visualizes data by pulling it into a chart. The chart should consist of 2 series: columns and lines.

I used Excel’s Line-Columns-Chart template(custom-type, not a standard chart!) to plot the data.

When I run the macro, 2 column series are plotted.

Questions: what can I do to plot the lines and columns instead of columns and columns? What kind of property or method can I use?

Or otherwise: what is the code to create a chart with a second y-axis

Thanks very much for your help.

Below see part of the source code.

===========================================

excelRange =“J04:R25”

Set excelSheet=z.workbooks(1).worksheets(1)



With excelSheet.Range(excelRange)			

	Set ChartObj = excelSheet.ChartObjects.Add(.left, .top, .width, .height)			

End With



z.ActiveSheet.ChartObjects("Chart 1").Activate





excelRange ="C05" + ":" + "F"+Cstr(i-1+4)

excelSheet.Range(excelRange).Select



With ChartObj.Chart

	

	.ApplyCustomType 21, "Line - Column on 2 Axes" 

	

	.SetSourceData excelSheet.Range(excelRange)

	.ApplyDataLabels(xlDataLabelsShowValue)

	

	.HasTitle = True

	.ChartTitle.Characters.Text = "Chart : ISL - Quarterly Metrics Report "

	.ChartTitle.Font.Bold = True

	.ChartTitle.Font.Size = 12

	.ChartTitle.Font.name = "Times New Roman"

	.HasLegend = True

	.PlotArea.Interior.ColorIndex = "0"

	.PlotArea.Border.LineStyle = "0"

	.Legend.Font.Size = 8

	

	'put a drop shadow on it

	.Legend.Shadow = True

	

End With	



z.ActiveSheet.ChartObjects("Chart 1").Activate

With z.ActiveSheet.Shapes("Chart 1")

.ScaleHeight 0.98, 0, 0

End With

z.ActiveSheet.DrawingObjects("Chart 1").RoundedCorners = True

z.ActiveSheet.DrawingObjects("Chart 1").Shadow = True

z.ActiveChart.ChartGroups(1).GapWidth = 10 'reduce width between columns

z.Range("A1").Select