In all cases, passing the `stylemanager` is not necessary. Calling `getChartPainter().getStyleManager()` should always work.