set_default_fill method

set_default_fill()

Resets the fill of the chart element to have the default value.

def set_default_fill(self):
    ...

Examples

Shows how to reset the fill to the default value defined in the series.

doc = aw.Document(file_name=MY_DIR + 'DataPoint format.docx')
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
series = shape.chart.series[0]
data_point = series.data_points[1]
self.assertTrue(data_point.format.is_defined)
data_point.format.set_default_fill()
doc.save(file_name=ARTIFACTS_DIR + 'Charts.ResetDataPointFill.docx')

See Also