Hi,
I am using Spire.Presentation, Version=3.3.0.9040 in my .Net application. I am getting an issue in Column Clustered chart . I have attached an image(horizontal-category-axis_misplaced.JPG) of Column Clustered chart .You can see that horizontal category axis is misplaced.
It was working fine with the same code when I was using previous version of DLL (Spire.Presentation 2.4).
Please have a look at the code I am using:-
RectangleF rect = new RectangleF(x, y, width, height);
IChart chart = presentation.Slides[slideNumber - 1].Shapes.AppendChart(Spire.Presentation.Charts.ChartType.ColumnClustered, rect);
chart.PrimaryValueAxis.TextRotationAngle = 80;
chart.ChartTitle.TextProperties.Text = " ";
chart.ChartTitle.TextProperties.IsCentered = true;
chart.ChartTitle.Height = 1;
chart.HasTitle = true;
chart.HasLegend = false;
chart.PlotArea.Height = 150;
//remove grid lines
chart.PrimaryValueAxis.MajorGridTextLines.FillType = FillFormatType.None;
chart.SecondaryValueAxis.MajorGridTextLines.FillType = FillFormatType.None;
chart.PrimaryCategoryAxis.TickLabelPosition = TickLabelPositionType.TickLabelPositionNextToAxis;
chart.PrimaryCategoryAxis.HasMultiLvlLbl = true;
//remove horinzotal and vertical axis.
chart.PrimaryValueAxis.IsVisible = false;
chart.SecondaryValueAxis.IsVisible = false;
chart.SecondaryCategoryAxis.IsVisible = false;
// remove series
chart.Series.RemoveAt(0);
chart.Series.RemoveAt(1);
//set font size
chart.PrimaryCategoryAxis.TextProperties.Paragraphs[0].DefaultCharacterProperties.FontHeight = 9;
chart.PrimaryValueAxis.TextProperties.Paragraphs[0].DefaultCharacterProperties.FontHeight = 9;
//set border
chart.Series[0].Line.FillType = FillFormatType.Solid;
chart.Series[0].Line.SolidFillColor.Color = Color.White;
chart.Series[0].Fill.SolidColor.KnownColor = KnownColors.Gray;
InitChartData(chart, dataTable);
chart.GapWidth = 350;
chart.Series[0].DataLabels.Add();
chart.Series[0].DataLabels.LabelValueVisible = true;
chart.Series[0].DataLabels.TextProperties.Paragraphs[0].DefaultCharacterProperties.FontHeight = 9;
Please assist me as soon as possible.
Thanks
Amit