当前位置:网站首页>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;
});
},边栏推荐
- 使用Scanner从键盘获取多种数据类型
- C language file operation
- 【Day04_0421】C语言选择题
- @Constructorproperties annotation understanding and its corresponding usage
- The "darkest hour" has not come yet. Cherish every bullet 2020-03-22
- 输入5个学生的记录(每条记录包括学号和成绩), 组成记录数组, 然后按照成绩由高到低的次序输出. 排序方法采用选择排序
- Regular expressions and calling related functions in C language
- [C language] address book dynamic version and document version
- Read five articles in the evening | Economic Daily: don't treat digital collections as wealth making products
- CONDA virtual environment envs directory is empty
猜你喜欢

Code runner for vs code, with more than 40million downloads! Support more than 50 languages
![[Web3 series development tutorial - create your first NFT (4)] what can NFTs bring to you](/img/57/f263f3f3c40b1440b0cbb58c5e05a5.jpg)
[Web3 series development tutorial - create your first NFT (4)] what can NFTs bring to you

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

Do it yourself smart home: intelligent air conditioning control

Show you the principle of IO multiplexing (select, poll and epoll)

@Constructorproperties annotation understanding and its corresponding usage

Concurrency opening -- take you from 0 to 1 to build the cornerstone of concurrency knowledge system

Oc/swift Technology Download File (breakpoint continuation AFN download file alamofire Download File native download) (source code)

【pytorch】图片增广

09 eth smart contract
随机推荐
Map集合继承结构
[nanny level] package volume optimization tutorial
Go的map字典及约束
【Web3 系列开发教程——创建你的第一个 NFT(4)】NFTs 可以给你带来什么
【Day_03 0420】字符串中找出连续最长的数字串
Code runner for vs code, with more than 40million downloads! Support more than 50 languages
【Day_04 0421】进制转换
[pytorch] fine tuning technology
Concurrency opening -- take you from 0 to 1 to build the cornerstone of concurrency knowledge system
【Day_02 0419】排序子序列
Intelligent fire protection application based on fire GIS system
Deep learning - CV, CNN, RNN
[day03_0420] C language multiple choice questions
【Day_05 0422】统计回文
Flex layout
【Day_07 0425】Fibonacci数列
【pytorch】图片增广
Go 的切片与数组
【无标题】
Design principle of infrared circuit of single chip microcomputer