2021-01-14 09:48:44 +01:00
|
|
|
// A line to show median an mean in histograms
|
|
|
|
#ifndef HISTOGRAM_MARKER_H
|
|
|
|
#define HISTOGRAM_MARKER_H
|
|
|
|
|
2024-09-12 11:17:45 +02:00
|
|
|
#include "statsitem.h"
|
2021-01-14 09:48:44 +01:00
|
|
|
|
|
|
|
class StatsAxis;
|
|
|
|
|
|
|
|
// A line marking median or mean in histograms
|
|
|
|
class HistogramMarker : public ChartLineItem {
|
|
|
|
public:
|
2023-04-16 20:05:36 +02:00
|
|
|
HistogramMarker(ChartView &view, double val, bool horizontal, QColor color, StatsAxis *xAxis, StatsAxis *yAxis);
|
2021-01-14 09:48:44 +01:00
|
|
|
void updatePosition();
|
|
|
|
private:
|
|
|
|
StatsAxis *xAxis, *yAxis;
|
|
|
|
double val;
|
|
|
|
bool horizontal;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|