diff --git a/components/option/stackedBarChart.js b/components/option/stackedBarChart.js new file mode 100644 index 0000000..f678c83 --- /dev/null +++ b/components/option/stackedBarChart.js @@ -0,0 +1,27 @@ +export default function brokenLine(yName=[],data=[],hoveName=[]){ + const option = { + tooltip: { + trigger: 'axis', + axisPointer: { + // Use axis to trigger tooltip + type: 'shadow' // 'shadow' as default; can also be 'line' or 'shadow' + } + }, + grid: { + left: '3%', + right: '4%', + bottom: '3%', + containLabel: true + }, + xAxis: { + type: 'value' + }, + yAxis: { + type: 'category', + data: yName + }, + //数据 + series:[] + } + return option +} \ No newline at end of file