MCPcopy Create free account
hub / github.com/antvis/F2Native / InvertYTip

Method InvertYTip

core/graphics/tooltip/TooltipController.cpp:437–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437std::string tooltip::ToolTipController::InvertYTip(const util::Point &p, xg::scale::AbstractScale &yScale) {
438 util::Point invertPoint = chart_->GetCoord().InvertPoint(p);
439 nlohmann::json yVal = yScale.Invert(invertPoint.y);
440 return yScale.GetTickText(yVal, chart_, 0);
441}

Callers

nothing calls this directly

Calls 3

InvertPointMethod · 0.45
InvertMethod · 0.45
GetTickTextMethod · 0.45

Tested by

no test coverage detected