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

Method getYScaleFields

core/graphics/XChart.cpp:456–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456std::vector<std::string> XChart::getYScaleFields() {
457 std::vector<std::string> _fields;
458
459 std::for_each(geoms_.begin(), geoms_.end(), [&](auto &geom) -> void {
460 std::string yField = geom->GetYScaleField();
461
462 auto it = std::find(_fields.begin(), _fields.end(), yField);
463 if(it == _fields.end()) {
464 _fields.push_back(yField);
465 }
466 });
467 return _fields;
468}
469
470std::string XChart::GetScaleTicks(const std::string &field) noexcept {
471 nlohmann::json rst = {};

Callers 11

GetPositionMethod · 0.95
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
DrawAxesMethod · 0.80
UpdateFollowScaleMethod · 0.80

Calls 4

findFunction · 0.85
beginMethod · 0.80
endMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected