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

Function SetChartLegend

core/android/F2NativeJNI.cpp:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static jint SetChartLegend(JNIEnv *env, jclass clazz, jlong chart, jstring field, jstring config) {
134 std::string _field = JavaStringToString(env, field);
135 std::string _config = JavaStringToString(env, config);
136
137 xg::XChart *_chart = reinterpret_cast<xg::XChart *>(chart);
138 _chart->Legend(_field, std::move(_config));
139 F2_LOG_I(_chart->GetChartName(), "%s", "#SetChartLegend");
140 return 0;
141}
142
143static jint SetChartGuideType(JNIEnv *env, jclass clazz, jlong chart, jstring type, jstring config) {
144 xg::XChart *_chart = reinterpret_cast<xg::XChart *>(chart);

Callers

nothing calls this directly

Calls 2

JavaStringToStringFunction · 0.85
LegendMethod · 0.80

Tested by

no test coverage detected