|
@@ -161,7 +161,7 @@ class Chart extends Component{
|
|
|
let name='';
|
|
|
it&&it.creatTime.map((x,i)=>{
|
|
|
inx=xAxis.findIndex((a)=>{
|
|
|
- name=type=='week'?x.substr(0,13):x.substr(0,10);
|
|
|
+ name=x.substr(0,13);
|
|
|
return a.substr(0,13)==name;
|
|
|
}); //日期对应横坐标的位置
|
|
|
if(inx!=-1){
|
|
@@ -222,7 +222,7 @@ class Chart extends Component{
|
|
|
rotate:65,
|
|
|
fontSize:10,
|
|
|
formatter: function(value,index){
|
|
|
- return value.substr(0,10);
|
|
|
+ return value.substr(0,13);
|
|
|
}
|
|
|
}
|
|
|
},
|