echarts4在项目中画不出来,在官网中却能画出来

{
tooltip: {
trigger: “axis”
},
legend: {
bottom: 0,
itemGap: 16,
textStyle: {
color: “#fff”,
fontWeight: “400”,
fontSize: 12
},
itemWidth: 8,
itemHeight: 8
},
tooltip: {
trigger: “axis”,
confine: true, //是否将 tooltip 框限制在图表的区域内
axisPointer: {
// 坐标轴指示器,坐标轴触发有效
type: “line” // 默认为直线,可选为:‘line’ | ‘shadow’
},
formatter: “”
},
grid: {
left: “3%”,
right: “4%”,
bottom: “3%”,
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {}
}
},
xAxis: {
type: “category”,
boundaryGap: false,
axisLine: {
lineStyle: {
color: “#fff”
}
},
axisLabel: {
interval: 0,
rotate: 20,
fontSize: 12,
fontWeight: “100”
}
},
yAxis: {
type: “value”,
nameTextStyle: { color: “red” },
axisLine: {
lineStyle: {
color: “#fff”
}
},
splitLine: {
lineStyle: { color: “rgba(200,200,200,0.2)” }
},
axisLabel: {
interval: 0,
fontSize: 12,
fontWeight: “100”
}
},
dataset: {
dimensions: [“create_date4”, “2”, “3”, “4”, “5”],
source: [
{
2: “1662504”,
3: “1425003”,
4: “1187503”,
5: “1425003”,
create_date4: “2019-01”
},
{
2: “1694773”,
3: “5589824”,
4: “8217694”,
5: “1114831”,
create_date4: “2019-02”
},
{
2: “3583353”,
3: “9750394”,
4: “1952266”,
5: “2356107”,
create_date4: “2019-03”
}
]
},
series: [
{
isSlideDown: true,
symbol: “circle”,
type: “line”,
itemStyle: {
normal: {
color: “#2BD1C0”
}
}
},
{
isSlideDown: true,
symbol: “circle”,
type: “line”,
itemStyle: {
normal: {
color: “#8B48EF”
}
}
},
{
isSlideDown: true,
symbol: “circle”,
type: “line”,
itemStyle: {
normal: {
color: “#FEDB65”
}
}
},
{
isSlideDown: true,
symbol: “circle”,
type: “line”,
itemStyle: {
normal: {
color: “#FEDB65”
}
}
}
]C]
在项目中画是在这里插入图片描述
但在echarts中官网里面却是
在这里插入图片描述
请问是什么原因呢?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值