web可视化
求助大佬,为啥我这个图表加载不出,找不出bug了,求助大佬?<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta charset='utf-8'>
<title>Basic Line Chart</title>
<script src="https://cdn.staticfile.org/echarts/4.8.0/echarts.min.js">
</script>
</head>
<body>
<div id='main' style="width: 600px; height: 400px;"></div>
<script type='javascript'>
var myChart = echarts.init(document.getElementByid('main'))
;
var option ={
title: {
text: '第一个实例'
},
tooltip: {},
legend:{
data:['销量']
},
xAxis: {
type: 'category',
data: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun']
},
yAxis: {
type : 'value'
},
series: [{
data: ,
type: 'line'
}]
};
myChart.setOption(option);
</body>
</html>
本帖最后由 xiaosi4081 于 2020-7-22 14:58 编辑
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta charset='utf-8'>
<title>Basic Line Chart</title>
<script src="https://cdn.staticfile.org/echarts/4.8.0/echarts.min.js">
</script>
</head>
<body>
<div id='main' style="width: 600px; height: 400px;"></div>
<script type='javascript'>
var myChart = echarts.init(document.getElementByid('main'))
;
var option ={
title: {
text: '第一个实例'
},
tooltip: {},
legend:{
data:['销量']
},
xAxis: {
type: 'category',
data: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun']
},
yAxis: {
type : 'value'
},
series: [{
data: ,
type: 'line'
}]
};
myChart.setOption(option);
</script>
</body>
</html>
你犯的错误好低级呀{:10_250:} <!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta charset='utf-8'>
<title>Basic Line Chart</title>
<script src="https://cdn.staticfile.org/echarts/4.8.0/echarts.min.js">
</script>
</head>
<body>
<div id='main' style="width: 600px; height: 400px;"></div>
<script type='javascript'>
var myChart = echarts.init(document.getElementByid('main'))
;
var option ={
title: {
text: '第一个实例'
},
tooltip: {},
legend:{
data:['销量']
},
xAxis: {
type: 'category',
data: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun']
},
yAxis: {
type : 'value'
},
series: [{
data: ,
type: 'line'
}]
};
myChart.setOption(option);
</script>
</body>
</html> <!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta charset='utf-8'>
<title>Basic Line Chart</title>
<script src="https://cdn.staticfile.org/echarts/4.8.0/echarts.min.js">
</script>
</head>
<body>
<div id='main' style="width: 600px; height: 400px;"></div>
<script type='text/javascript'>
var myChart = echarts.init(document.getElementById('main'))
;
var option ={
title: {
text: '第一个实例'
},
tooltip: {},
legend:{
data:['销量']
},
xAxis: {
type: 'category',
data: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun']
},
yAxis: {
type : 'value'
},
series: [{
data: ,
type: 'line'
}]
};
myChart.setOption(option);
</script>
</body>
</html>
页:
[1]