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:
- Vue introduces ecarts, init initializes and reports an error
- Python error: command error out with exit status 1:
- Win32 Disk Imager Error 5: Access is Denied solution
- [Solved] Import Echars5.0 Error: “export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
- 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
- Vue Error: initialize failed: invalid dom [How to Solve]
- Solution of visdom startup failure in Windows 10
- No code, a solution to the error in the path of reading CSV file by Python: filenotfounderror: [errno 2] no such file or directory: ‘XX. CSV‘
- Vue More than 1 blank line not allowed
- Typeerror in gitbook init: cb.apply is not a function solution
- pytools.prefork.ExecError: error invoking ‘nvcc –version‘: [Errno 2] No such file or directory
- Error: could not create the Java virtual machine Error:A Fatal exception has occurred
- [vue/no-parsing-error]Parsing error: control-character-in-input-stream.eslint-plugin-vue
- Image input data check: Nan inf and do not exist
- Browser console prompt: Error: NetworkError when attempting to fetch resource.
- termux Failed to initialize runtime
- Solution — windows 2012 installation Framework 3.5 in VMWare
- Solve the problem of copy failed: stat / var / lib / docker / TMP / docker builder 455335933 / opt: no such file or directory