Coder Social home page Coder Social logo

echarts-wx-uniapp's People

Contributors

yah0130 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

echarts-wx-uniapp's Issues

我想问一下axisLabel.formatter为什么无效

					axisLabel: {
						show: true,
						distance: -10,
						color: '#999',
						fontSize: 5,
						padding: [24, 0, 0, 0],
						formatter: function(value) {
							console.log('123', value)
							switch (value) {
								case 0:
									return 0; //首位刻度         
								case 100:
									return 200; //末尾刻度                         
								default:
									return '';
							}
						}
					},

上面代码中的formatter无法打印除’value‘ 想问一下怎么解决这个问题,而且其他配置中的formatter也一样无法打印出对应的参数

图表懒加载不能使用多个么?

我按照常见问题中的第三点的解决方法,去展示两个图表,但是运行起来的时候只显示了第一个图表,

html部分






js部分:
let RadialChart = ''
let RadialOption = {}

let HorizontalChart = ''
let HorizontalOption = {}

js部分____data中的数据:
RadialEc: { //温度的图表配置项
lazyLoad: true,
},
HorizontalEc: { //水平的图表配置项
lazyLoad: true,
}
onload:
onLoad(option) {
setTimeout(() => {
// this.ec.option.series[0].data = [1, 2, 3, 4, 5, 6, 7];
this.initRadial()
console.log("Radial图表加载啦");
}, 1000);
setTimeout(() => {
this.initHorizontal()
console.log("Horizontal图表加载啦")
}, 1500)
},

methods部分:

//初始化Radial图表
initRadialChart(canvas, width, height, canvasDpr) {
// console.log(canvas, width, height, canvasDpr)
RadialChart = echarts.init(canvas, null, {
width: width,
height: height,
devicePixelRatio: canvasDpr
})
canvas.setChart(RadialChart)
RadialChart.setOption(RadialOption)
return RadialChart
},
//初始化Horizontal图表
initHorizontalChart(canvas, width, height, canvasDpr) {
// console.log(canvas, width, height, canvasDpr)
HorizontalChart = echarts.init(canvas, null, {
width: width,
height: height,
devicePixelRatio: canvasDpr
})
canvas.setChart(HorizontalChart)
HorizontalChart.setOption(HorizontalOption)
return HorizontalChart
},

//加载radial数据
initRadial: function() {
RadialOption ={ 我的一些相关图表配置 };
this.$refs.canvas.init(this.initRadialChart)
},

//加载Horizontal数据
initHorizontal: function() {
HorizontalOption = { 我的一些相关图表配置 };
this.$refs.canvas.init(this.initHorizontal)
},

option

为图表设置option的时候,如果设置多次的话,目前是默认的merge操作,希望能够提供一种覆盖Option的方法

markLine设置多条,出现报错

标记线如何设置多条啊,我直接在markLine的data里写了个数组,但报错,说是

TypeError: Cannot read property 'coord' of undefined"

found in

---> <UniEcCanvas> at components/uni-ec-canvas/uni-ec-canvas.vue

多图被悬浮无法滚动

一个页面多张图表时被悬浮无法滚动;查看了一下,父级无absolut和fixed定位,只用了relative;请问是怎么回事,如何解决

tooltip中formatter不支持回调函数

目前需求使用uni-app开发,formatter字符串模板不能满足需求,要使用到回调函数的方式,但是代码不支持,麻烦问一下有没有实现支持回调函数的解决方案,谢谢
``tooltip: {
trigger: "item",
padding: [10, 10, 10, 10],
backgroundColor: "#fff",
extraCssText: "box-shadow:2px 2px 6px 0px rgba(0, 0, 0, 0.2);",
textStyle: {
color: "#FF84BB",
},
trigger: "item",
// formatter: "{c0}",
formatter: (params) => {
console.log('>>>>>>>>>>', params);
}

请问series.type支持custom吗?

{
type: 'custom',
renderItem: renderArrow,
encode: {
x: dims.time,
y: dims.windSpeed
},
data: data,
z: 10
}
我用出custom类型一直报错series.render is required.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.