cabana: set border color for scatter series (#29408)

old-commit-hash: 9dac6b66f982dc5356821048627d70b18595b39e
This commit is contained in:
Dean Lee
2023-08-16 01:28:48 +08:00
committed by GitHub
parent 92ff85f4b4
commit 3648506b7c
+1
View File
@@ -764,6 +764,7 @@ QXYSeries *ChartView::createSeries(SeriesType type, QColor color) {
chart()->legend()->setMarkerShape(QLegend::MarkerShapeFromSeries);
} else {
series = new QScatterSeries(this);
static_cast<QScatterSeries*>(series)->setBorderColor(color);
chart()->legend()->setMarkerShape(QLegend::MarkerShapeCircle);
}
series->setColor(color);