Action and Axis Color

Hello Guys,
I need your help.
I noticed a strange behavior.
I am not able to change the color of the Category Axis (AxisLine) via an action.

Cf the reproducer below:

var pathWorkbook = @“path\TestSimpleChart.xlsx”;
var wbtest = new Workbook(pathWorkbook);
Worksheet sheettest = wbtest.Worksheets[0];
Chart charttest = sheettest.Charts[0];

// This line does not work:
Action f = o => charttest.CategoryAxis.AxisLine.Color = o;
f(Color.BlueViolet);

// It is working well
Action g = o => charttest.ValueAxis.AxisLine.Color = o;
g(Color.BlueViolet);

// It is working well
Action h = o => charttest.CategoryAxis.Title.Font.Color = o;
h(Color.BlueViolet);


Cf the file attached with a simple chart.
TestSimpleChart.zip (11.2 KB)

Could you have a look please ?
We use action in our code everywhere to set the values to our Aspose charts.

Thanks a lot,
Hadrien

@hormancey,

Thanks for the template Excel file.

After initial testing, I am able to reproduce the issue using your template Excel file. I found CategoryAxis’ AxisLine Color is not working properly. The color is applied but it appears as a light/dimmed version.

We require a thorough evaluation of the issue. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-56882

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@hormancey,

We are pleased to inform you that your issue (Ticket ID: “CELLSNET-56882”) has been resolved. The fix/enhancement will be included in our upcoming release (Aspose.Cells v24.10) that we plan to release in this week. You will be notified when the next version is released.

Ah good news! Thanks a lot.
Waiting the 24.10. No workaround for the moment ?

@hormancey,

You’re welcome.
The new release is expected to be published before the end of this week.
Keep an eye out!

1 Like

Hi @amjad.sahi ,
I noticed the same problem here:

Action f = o => charttest.ValueAxis.MajorGridLines.Color = o;
f(Color.BlueViolet);

Do you think this issue will also be fixed by your change ?
Thanks,
Hadrien

@hormancey,

Yes, we will include the fix/enhancement in our upcoming release (Aspose.Cells v24.10) that we plan to release before the end of this week hopefully. You will be notified when the next version is released. Please wait for a while and stay tuned!

Perfect! I wanted to be sure it was the same problem with the same fix. So perfect !!
Thanks again

@hormancey,

You are welcome. We will keep you posted with updates on the new release.

The issues you have found earlier (filed as CELLSNET-56882) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi

Thanks ! It is working perfectly well!

@hormancey
Thank you for your feedback. You are welcome. If you have any questions, please feel free to contact us at any time.