L
Liam Ponder
Setting the DashedStyle of the Chartspace border results
in only half the border being drawn. The top and the left
side.
Here is a snippet
ChChartSpace ChartSpace1 = new ChartSpaceClass();
//Create a new chart within ChartSpace1:
ChChart Chart1 = ChartSpace1.Charts.Add(0);
//Format the chartspace elements.
ChartSpace1.Border.Color = "#336699";
ChartSpace1.Border.DashStyle =
ChartLineDashStyleEnum.chLineDash;
Chart1.Type =
Microsoft.Office.Interop.Owc11.ChartChartTypeEnum.chChartT
ypeBarStacked;
ChSeries s = Chart1.SeriesCollection.Add(0);
s.SetData(ChartDimensionsEnum.chDimCategories,
(int)
ChartSpecialDataSourcesEnum.chDataLiteral,Cats.ToString
());
s.SetData(ChartDimensionsEnum.chDimValues,(int)
ChartSpecialDataSourcesEnum.chDataLiteral,Vals.ToString
());
in only half the border being drawn. The top and the left
side.
Here is a snippet
ChChartSpace ChartSpace1 = new ChartSpaceClass();
//Create a new chart within ChartSpace1:
ChChart Chart1 = ChartSpace1.Charts.Add(0);
//Format the chartspace elements.
ChartSpace1.Border.Color = "#336699";
ChartSpace1.Border.DashStyle =
ChartLineDashStyleEnum.chLineDash;
Chart1.Type =
Microsoft.Office.Interop.Owc11.ChartChartTypeEnum.chChartT
ypeBarStacked;
ChSeries s = Chart1.SeriesCollection.Add(0);
s.SetData(ChartDimensionsEnum.chDimCategories,
(int)
ChartSpecialDataSourcesEnum.chDataLiteral,Cats.ToString
());
s.SetData(ChartDimensionsEnum.chDimValues,(int)
ChartSpecialDataSourcesEnum.chDataLiteral,Vals.ToString
());