| 426 | } |
| 427 | |
| 428 | bool tooltip::ToolTipController::HideToolTip() { |
| 429 | nlohmann::json emptyData; |
| 430 | std::for_each(actionListeners_.begin(), actionListeners_.end(), |
| 431 | [&](ToolTipMarkerItemsCallback callback) -> void { callback(emptyData); }); |
| 432 | container_->Clear(); |
| 433 | chart_->Redraw(); |
| 434 | return true; |
| 435 | } |
| 436 | |
| 437 | std::string tooltip::ToolTipController::InvertYTip(const util::Point &p, xg::scale::AbstractScale &yScale) { |
| 438 | util::Point invertPoint = chart_->GetCoord().InvertPoint(p); |
no test coverage detected