Is there a way where i can:
Thanks
That worked!!
Thanks so much David - really appreciate it!!
no, that's not possible.
add this line after setting lineLayer.ChartType and it should work:
((LineChartAppearance)lineLayer.ChartTypeAppearance).LineAppearances.Add(lineApp1);
Hey David,
here is the code i used - is it possible just to add the LineAppearance in the NumericSeries?
NumericSeries seriesLine = new NumericSeries(); seriesLine.Data.DataSource = mybudget.GetBudgetLineData(14, 4);seriesLine.Data.LabelColumn = "Fiscal_Month";seriesLine.Data.ValueColumn = "Budget";seriesLine.PEs.Add(new PaintElement(Color.Red));BudgetChart.CompositeChart.Series.Add(seriesLine);
LineAppearance lineApp1 = new LineAppearance();lineApp1.LineStyle.EndStyle = LineCapStyle.Square;lineApp1.Thickness = 10;lineApp1.IconAppearance.IconSize = SymbolIconSize.Large;this.BudgetChart.LineChart.LineAppearances.Add(lineApp1);
ChartLayerAppearance lineLayer = new ChartLayerAppearance();lineLayer.AxisX = xAxisLine;lineLayer.AxisY = yAxis;lineLayer.ChartArea = area;lineLayer.ChartType = ChartType.LineChart;lineLayer.Series.Add(seriesLine);
LineChartAppearance lineApp = lineLayer.ChartTypeAppearance as LineChartAppearance;
Sorry, but i am just now getting the sytax to add the IconAppearance after the first line
BudgetChart.CompositeChart.ChartLayers[1]will throw an index out of range exception because you haven't added columnLayer and lineLayer to the chartlayers collection yet.you can replace the above expression with "lineLayer"LineChartAppearance lineApp = lineLayer.ChartTypeAppearance as LineChartAppearance;