
## solid() {#default}

Sets the fill to a uniform color.


```js
solid()
```

### Remarks

Use this method to convert any of the fills back to solid fill.


## solid(color) {#string}

Sets the fill to a specified uniform color.


```js
solid(color: string)
```

| Parameter | Type | Description |
| --- | --- | --- |
| color | string |  |

### Remarks

Use this method to convert any of the fills back to solid fill.


## Examples

Shows how to use chart formating.

```js
let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);

let shape = builder.insertChart(aw.Drawing.Charts.ChartType.Column, 432, 252);
let chart = shape.chart;

// Delete series generated by default.
let series = chart.series;
series.clear();

let categories = [ "Category 1", "Category 2" ];
series.add("Series 1", categories, [ 1, 2 ]);
series.add("Series 2", categories, [ 3, 4 ]);

// Format chart background.
chart.format.fill.solid("#2F4F4F");

// Hide axis tick labels.
chart.axisX.tickLabels.position = aw.Drawing.Charts.AxisTickLabelPosition.None;
chart.axisY.tickLabels.position = aw.Drawing.Charts.AxisTickLabelPosition.None;

// Format chart title.
chart.title.format.fill.solid("#FFFACD");

// Format axis title.
chart.axisX.title.show = true;
chart.axisX.title.format.fill.solid("#FFFACD");

// Format legend.
chart.legend.format.fill.solid("#FFFACD");

doc.save(base.artifactsDir + "Charts.ChartFormat.docx");
```

## See Also

* module [Aspose.Words.Drawing](../../)
* class [Fill](../)

