| 260 | | cx.set_source_rgb(*hex2rgb(self.options.background.color)) |
| 261 | | cx.rectangle(self.area.x, self.area.y, self.area.w, self.area.h) |
| 262 | | cx.fill() |
| 263 | | cx.set_source_rgb(*hex2rgb(self.options.background.lineColor)) |
| 264 | | cx.set_line_width(self.options.axis.lineWidth) |
| 265 | | |
| 266 | | self._renderLines(cx) |
| | 260 | |
| | 261 | if self.options.background.baseColor: |
| | 262 | cx.set_source_rgb(*hex2rgb(self.options.background.baseColor)) |
| | 263 | x, y, w, h = 0, 0, self.area.w, self.area.h |
| | 264 | w += self.options.padding.left + self.options.padding.right |
| | 265 | h += self.options.padding.top + self.options.padding.bottom |
| | 266 | cx.rectangle(x, y, w, h) |
| | 267 | cx.fill() |
| | 268 | |
| | 269 | if self.options.background.chartColor: |
| | 270 | cx.set_source_rgb(*hex2rgb(self.options.background.chartColor)) |
| | 271 | cx.rectangle(self.area.x, self.area.y, self.area.w, self.area.h) |
| | 272 | cx.fill() |
| | 273 | |
| | 274 | if self.options.background.lineColor: |
| | 275 | cx.set_source_rgb(*hex2rgb(self.options.background.lineColor)) |
| | 276 | cx.set_line_width(self.options.axis.lineWidth) |
| | 277 | self._renderLines(cx) |