Free Support Forum - aspose.com

How to set the Barchart Axisline color same as backgroud color?

my codes like this:

chart.ChartArea.Area.BackgroundColor = System.Drawing.Color.White;
chart.ValueAxis.TickLabels.Font.Color = System.Drawing.Color.White; chart.ValueAxis.AxisLine.Color = System.Drawing.Color.White;

and my questions are:
1) the color of TickLabels set to white but why the backgroud color of the ticklable is inverted to black? can I make both the background & font color same?
Please don’t tell me to set the TickLabelPosition to None, I have a reason to keep it there.

2) the Asixline still appear on the chart, why?

Thanks!

  1. I think you cannot make font color and background color of TickLabels both to white. You can try it in MS Excel. When you set the font color to white, the background color is automatically inverted to black.

    2. Please try the fix at http://www.aspose.com/forums/ShowPost.aspx?PostID=19359.