| 61 | } |
| 62 | |
| 63 | void tooltip::ToolTipController::AddConfig(const nlohmann::json &cfg) { |
| 64 | if (cfg.is_object()) { |
| 65 | nlohmann::json newCfg = config_; |
| 66 | newCfg.merge_patch(cfg); |
| 67 | configs_.push_back(newCfg); |
| 68 | } |
| 69 | if (configs_.size() > 0) { |
| 70 | // chart_->GetLogTracer()->trace("ToolTips Config: %s", configs_.back().dump().data()); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | void tooltip::ToolTipController::Init(const nlohmann::json &cfg) { |
| 75 | if (cfg.is_object()) { |
no test coverage detected