| 591 | } |
| 592 | |
| 593 | void QmitkChartWidget::Impl::SetChartType(const std::string &label, QmitkChartWidget::ChartType chartType) |
| 594 | { |
| 595 | auto element = GetDataElementByLabel(label); |
| 596 | if (element) |
| 597 | { |
| 598 | if (chartType == ChartType::scatter) |
| 599 | { |
| 600 | SetShowDataPoints(true); |
| 601 | MITK_INFO << "Enabling data points for all because of scatter plot"; |
| 602 | } |
| 603 | const std::string chartTypeName(m_ChartTypeToName.at(chartType)); |
| 604 | element->SetChartType(QVariant(QString::fromStdString(chartTypeName))); |
| 605 | } |
| 606 | } |
| 607 | |
| 608 | void QmitkChartWidget::Impl::SetMinMaxValueXView(double minValueX, double maxValueX) { |
| 609 | m_C3Data.SetMinValueXView(minValueX); |