Float foregroundAlpha = chart.getChartView().getForegroundAlpha();
if (foregroundAlpha != null) {
plot.setForegroundAlpha(foregroundAlpha);
}
ChartNoDataMessage chartNoDataMessage = chart.getNoDataMessage();
if (chartNoDataMessage != null && chartNoDataMessage.getText() != null) {
plot.setNoDataMessage(chartNoDataMessage.getText());
StyleObjectModel cssMessageModel = chartNoDataMessage.getStyleObjectModel();
if (cssMessageModel != null) {
plot.setNoDataMessagePaint(cssMessageModel.getColor());
plot.setNoDataMessageFont(CSSUtil.getFont(cssMessageModel));
}
}