当前位置:网站首页>Problems related to the use of ucharts (components) in uniapp
Problems related to the use of ucharts (components) in uniapp
2022-07-26 06:34:00 【console.log('D')】
1.uCharts The chart cannot get the correct index and location
problem : Click on the corresponding bar Get index , The location information is incorrect
solve : The parent container has relative positioning or fixed positioning , Remove it
2. Chart level problem
problem :pc No problem , The level of real machine debugging chart is too high , On top of all components
solve : Turn on canvas2d
<Ucharts
class="charts"
type="bar"
:opts="businessOpts"
:chartData="bussinessCartsdata"
@getIndex="getCurrentbar"
:canvas2d="true"
canvasId="vkfYPAEGcxeMYdlHJtqzjeRfAibvPVWb"
></Ucharts>
import Ucharts from "@/components/common/uCharts/components/qiun-data-charts/qiun-data-charts.vue";
3. Update frequently chartsData Data chart jitter problem
problem : Update data , Chart jitter
solve : Update again ucharts Clear the last data before data , And get the data
// obtain ucharts data
getInitUchartsData() {
this.isLoading = true;
// Clear the last data before each data acquisition
this.bussinessCartsdata = {};
let params = {
bidderName: this.dealerName
};
dealerApi
.getBusinessDistribute(params)
.then(res => {
if (res.code === 200) {
this.businessAreaList = res.data.businessAreaDistributeBean;
this.hospitalLevalList = res.data.medicalLevelBean;
this.areaType = "province";
}
})
.catch(err => {})
.finally(() => {
this.isLoading = false;
});
},边栏推荐
- [day06_0423] C language multiple choice questions
- Map collection inheritance structure
- Use scanner to get multiple data types from the keyboard
- 信号处理系统综合设计-求解器函数的设计(连续和离散时间系统)
- 力扣——3. 无重复字符的最长子串
- Upgrade appium automation framework to the latest 2.0
- Go channel
- 【pytorch】图片增广
- Map dictionary and constraints of go
- 【图像隐藏】基于混合 DWT-HD-SVD 的数字图像水印方法技术附matlab代码
猜你喜欢

【无标题】

【Day04_0421】C语言选择题

Code Runner for VS Code,下载量突破 4000 万!支持超过50种语言
![[pytorch] picture enlargement](/img/79/2eeefcb4623156f65957d78997e138.jpg)
[pytorch] picture enlargement

How can machinery manufacturing enterprises do well in production management with the help of ERP system?

机械制造企业如何借助ERP系统,做好生产管理?

白盒测试的概念、目的是什么?及主要方法有哪些?

Input the records of 5 students (each record includes student number and grade), form a record array, and then output them in order of grade from high to low The sorting method adopts selective sortin

@Constructorproperties annotation understanding and its corresponding usage

Code runner for vs code, with more than 40million downloads! Support more than 50 languages
随机推荐
力扣——4. 寻找两个正序数组的中位数
[day06_0423] C language multiple choice questions
RNN循环神经网络
JVM class loading and GC garbage collection mechanism
What are the main reasons for server crash
英语句式参考纯享版 - 状语从句
BPG notes (IV)
Sequential action localization | fine grained temporal contrast learning for weak supervised temporal action localization (CVPR 2022)
BigDecimal变为负数
将一个正整数分解质因数,要求分解成尽可能小的多个的因数。
Conda 虚拟环境envs目录为空
Gdown Access denied:Cannot retrieve the public link of the file.
[day_020419] inverted string
Map dictionary and constraints of go
English sentence pattern reference exclusive Edition - adverbial clause
YOLOv6:又快又准的目标检测框架开源啦
Regular expressions and calling related functions in C language
【Web3 系列开发教程——创建你的第一个 NFT(4)】NFTs 可以给你带来什么
机械制造企业如何借助ERP系统,做好生产管理?
Input the records of 5 students (each record includes student number and grade), form a record array, and then output them in order of grade from high to low The sorting method adopts selective sortin