In echarts development process, while using the map, if you use the geo, and want to set the map text content and style, we can use the geo. Label. Normal. The formatter to customize these functions, but sometimes can appear the formatter is not effective, then modify the source code to solve the problem.
1, open every js file
2. GetFormattedLabel ‘
3. Find this location:
will be in the figure above, the source of the original line of code to comment, and then add two lines of code, to complete the
code as followsvar path = status == 'normal' ?'label.formatter' : 'label.' + status + >'.formatter'; var formatter = regionModel.get(path);
Read More:
- Python error: command error out with exit status 1:
- Win32 Disk Imager Error 5: Access is Denied solution
- Python – annotate and uncomment multiline programs
- FileNotFoundError: [Errno 2] No such file or directory: ‘./mnist_image_label/mnist_train_jpg_6000028
- Security error: error ᦇ 2148
- Solution of visdom startup failure in Windows 10
- Error: could not create the Java virtual machine Error:A Fatal exception has occurred
- Solve the problem of copy failed: stat / var / lib / docker / TMP / docker builder 455335933 / opt: no such file or directory
- Browser console prompt: Error: NetworkError when attempting to fetch resource.
- How to Use Subfigure in Latex
- @How to solve eclipse error after setter and @ getter (@ data) annotation
- PIP report failed to create process
- Mixing iteration and read methods would lose data
- Solve the problem of ‘error compiling template’
- Get picture captcha with Python + Chrome
- pygobject pip3 upgrade problem: ERROR: Failed building wheel for pycairo
- Job for network.service Failed because the control process exited with error code. See “SystemC
- How to solve the problem of “version 11 or greater is required” in eclipse 2020
- Three ways of single line and multi line comment in Python