| 299 | } |
| 300 | |
| 301 | void ChartBridge::CallbackError(const std::string &methodName, BridgeCallback callback, const std::string &msg) { |
| 302 | nlohmann::json ret = {{"method", methodName}, {"error", msg} , {"renderResult", {{"state", false}}}}; |
| 303 | callback(ret.dump()); |
| 304 | } |
| 305 | |
| 306 | void ChartBridge::SetEnableListConfig(const std::string ¶ms){ |
| 307 | if (chart_ == nullptr || params.empty()) { |