实现源码如下
Echarts柱状折线混合图var option = {
tooltip: {
trigger: 'axis'
},
legend: {
data:['降水量','折线']
},
xAxis: [
{
type: 'category',
data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月']
}
],
yAxis: [
{
type: 'value',
name: '水量/ml',
min: 0,
max: 250,
interval: 50,
axisLabel: {
formatter: '{value} '
}
}
],
series: [
{
name:'降水量',
type:'bar',
/*itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(
0,