使用echarts时候x轴数值问题,拷贝过来的代码测试时后面被吃了

![![var resourceAlarmTrendOption;
var resourceAlarmTrendChart;
$(document).ready(function () {
echartsInit();

});
function echartsInit(){

//告警趋势
resourceAlarmTrendChart = echarts.init(document.getElementById('resource_alarm_trend'));
resourceAlarmTrendOption = {
title: {
text: "对数轴示例",
x: "center"
},
tooltip: {
trigger: "item",
formatter: "{a}
{b} : {c}"
},
legend: {
x: 'left',
data: ["2的指数", "3的指数"]
},
xAxis: [
{
type: "category",
name: "x",
splitLine: {show: false},
data: ["一", "二", "三", "四", "五", "六", "七", "八", "九"]
}
],
yAxis: [
{
type: "log",
name: "y"
}
],
toolbox: {
show: true,
feature: {
mark: {
show: true
},
dataView: {
show: true,
readOnly: true
},
restore: {
show: true
},
saveAsImage: {
show: true
}
}
},
calculable: true,
series: [
{
name: "3的指数",
type: "line",
data: [1, 3, 9, 27, 81, 247, 741]

   },
   {
       name: "2的指数",
       type: "line",
       data: [1, 2, 4, 8, 16, 32, 64]

   }

]
};

   resourceAlarmTrendChart.setOption(resourceAlarmTrendOption);

}

function isUndefined_Num(reValue) {
if (typeof (reValue) == "undefined" || reValue == "undefined" || reValue == "null" || reValue == null) {
return 0;
} else {
return reValue;
}
}


图片说明](https://img-ask.csdn.net/upload/201702/08/1486521490_886981.png)图片说明](https://img-ask.csdn.net/upload/201702/08/1486521447_79442.png)

图片说明

图片说明

同样遇到这样的问题 请问你解决了吗