|
|
@ -764,6 +764,7 @@ QXYSeries *ChartView::createSeries(SeriesType type, QColor color) { |
|
|
|
chart()->legend()->setMarkerShape(QLegend::MarkerShapeFromSeries); |
|
|
|
chart()->legend()->setMarkerShape(QLegend::MarkerShapeFromSeries); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
series = new QScatterSeries(this); |
|
|
|
series = new QScatterSeries(this); |
|
|
|
|
|
|
|
static_cast<QScatterSeries*>(series)->setBorderColor(color); |
|
|
|
chart()->legend()->setMarkerShape(QLegend::MarkerShapeCircle); |
|
|
|
chart()->legend()->setMarkerShape(QLegend::MarkerShapeCircle); |
|
|
|
} |
|
|
|
} |
|
|
|
series->setColor(color); |
|
|
|
series->setColor(color); |
|
|
|