style1.xml and color1.xml files not recognized by Excel for older charts

Revanth Kumar 0 Reputation points
2025-06-23T12:37:05.0066667+00:00

The issue involves style1.xml and color1.xml files being ignored by chart1.xml for style information, despite adherence to the valid schema as per the documentation at ECMA-376 and MS-OE376.

After converting to .xlsx, the chart defaults to style id=2 upon opening in Excel. All files are confirmed to be valid according to the schema, yet the resulting behavior is unexpected. What could be causing this issue?

In Office 360 Excel, In this scenario, I have a PieChart with 3 datapoints, and Color Scheme 3 a/c to the XML contents which all adhear to Schema definations perfectly. Yet When I open the xlsx file, Add more Datapoints, the colors of the datapoints are not Color Scheme 3, Instead they are the default datapoint colors you would get from <c:style id="2">. In this case, If I save the file and check its contents, the color1.xml and style1.xml are lost, and just chart1.xml is written, similar to olider excel version (2007).

Yet, If I create the exact chart setup in excel 360 save it, and check its xlsx contents, The only difference I see is spPr tags and txPr tags written in a redundant way, and no documentation is available as to why we need to write redudant style information chart1.xml for it to recognize style1.xml and color1.xml

Removing any small portions of these redundant spPr / txPr will cause the issue described above.

If there is any information on how exactly the redundant style information needs to be written for older charts for them to be able to recognize style1.xml and color1.xml, it would be greatly apprecieted.

Regards,

Revanth

Microsoft 365 and Office Open Specifications
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.