-
Notifications
You must be signed in to change notification settings - Fork 139
Home
shaman edited this page Jan 18, 2017
·
7 revisions
Welcome to the wxCharts wiki!
分时图配置:
`return {
name: type || 'time-sharing',
width: width || 'auto',
height: 200,
axis: {
row: 4,
col: 4,
paddingTop: 0,
paddingBottom: 0,
paddingLeft: 0,
paddingRight: 0,
color: '#cdcdcd'
},
xAxis: {
data: []
},
yAxis: [
{
type: 'line',
lineColor: '#2F6098',
background: 'rgba(53,125,222,0.1)',
/*background: function () { //渐变背景在IOS上会影响均线颜色,这个应该是小程序canvas的bug
return ['rgba(53,125,222,0.3)', 'rgba(0,0,0,0)'];
},*/
data: []
},
{
type: 'line',
lineColor: '#A96F3E',
data: []
}
],
callback: function (time) {
var page = getCurrentPages();
page = page[page.length - 1];
page.setData({
ts1RenderTime: time
});
}
};`