I have a ui.chart with a big dataset where a needed value depends on a day of the month.
我有一个带有大数据集的ui.chart,其中所需的值取决于该月的某一天。
What I want to do is to configure xAxis to show the label only for the first day of the month. Something like
我想要做的是配置xAxis只显示该月的第一天的标签。就像是
Is it possible to configure the chart such way? Here's a code of my configuration: http://webix.com/snippet/44abd3aa
是否可以这样配置图表?这是我的配置代码:http://webix.com/snippet/44abd3aa
2 个解决方案
#1
2
xAxis:{
template:function(date){
if (date.date === '01') {
return date.month;
}
}
},
#2
0
@Denys has used date, but you can also perform the data object operations as :
@Denys使用了日期,但您也可以执行数据对象操作:
xAxis:{
template:function(obj){
if (obj.date == '01') {
return obj.month;
}
}
}
#1
2
xAxis:{
template:function(date){
if (date.date === '01') {
return date.month;
}
}
},
#2
0
@Denys has used date, but you can also perform the data object operations as :
@Denys使用了日期,但您也可以执行数据对象操作:
xAxis:{
template:function(obj){
if (obj.date == '01') {
return obj.month;
}
}
}