12 #ifndef QmitkChartWidget_h
13 #define QmitkChartWidget_h
142 void AddData1D(
const std::vector<double>& data1D,
const std::string& label, ChartType chartType = ChartType::bar);
150 void UpdateData1D(
const std::vector<double> &data1D,
const std::string &label);
156 void UpdateData2D(
const std::vector< std::pair<double, double> > &data2D,
const std::string &label);
158 void UpdateChartExampleData(
const std::vector< std::pair<double, double> >& data2D,
159 const std::string& label,
160 const std::string& type,
161 const std::string& color,
162 const std::string& lineStyle,
163 const std::string& pieLabelsData = 0);
175 void AddData2D(
const std::vector< std::pair<double, double> > &data2D,
176 const std::string &label,
177 ChartType chartType = ChartType::bar);
180 void AddChartExampleData(
const std::vector< std::pair<double, double> >& data2D,
181 const std::string& label,
182 const std::string& type,
183 const std::string& color,
184 const std::string& style,
185 const std::string& pieLabelsData = 0);
193 void RemoveData(
const std::string& label);
195 void UpdateLabel(
const std::string& existingLabel,
const std::string& newLabel);
207 void SetColor(
const std::string& label,
const std::string& colorName);
217 void SetLineStyle(
const std::string& label, LineStyle style);
223 void SetMarkerSymbol(
const std::string &label, MarkerSymbol symbol);
229 void SetYAxisScale(AxisScale scale);
231 void SetXAxisLabel(
const std::string& label);
233 void SetYAxisLabel(
const std::string& label);
239 void SetPieLabels(
const std::vector<std::string> &pieLabels,
const std::string &label);
243 void SetTitle(
const std::string &title);
252 void SetChartType(
const std::string& label, ChartType type);
260 void SetXErrorBars(
const std::string &label,
const std::vector<double> &errorPlus,
const std::vector<double>& errorMinus = std::vector<double>());
267 void SetYErrorBars(
const std::string &label,
const std::vector<double> &errorPlus,
const std::vector<double> &errorMinus = std::vector<double>());
274 void SetLegendPosition(LegendPosition position);
276 void SetShowLegend(
bool show);
278 void SetStackedData(
bool stacked);
285 void Show(
bool showSubChart=
false);
293 void SetShowDataPoints(
bool showDataPoints);
305 void SetTheme(ColorTheme themeEnabled);
312 void SetShowSubchart(
bool showSubChart);
320 void SetShowErrorBars(
bool showErrorBars);
326 void SetMinMaxValueXView(
double minValueX,
double maxValueX);
331 void SetMinMaxValueYView(
double minValueY,
double maxValueY);
339 QSize sizeHint()
const override;
341 void SavePlotAsImage();
344 void OnLoadFinished(
bool isLoadSuccessful);
345 void OnPageSuccessfullyLoaded();
348 void PageSuccessfullyLoaded();
352 std::string convertBooleanValue(
bool value)
const;
355 std::unique_ptr<Impl> m_Impl;