帮我用java拼成这种数据 yAxis xAxis typecategory data 1-101-智能设备05
String data = "{\n" + " yAxis: {},\n" + " xAxis: [{\n" + " type:"category",\n" + " data: ['1-101-智能设备05',\n" + " '1-101-智能设备02',\n" + " '1-101-智能设备16',\n" + " '1-101-智能设备15', '1-101-智能设备01', '1-101-显示器', '2-108-摄像头', '2-109-键盘', '3-103-打印机', '3-102-显示器', '2-111-鼠标', '2-104-条码阅读器', '2-106-摄像头'],\n" + " axisLabel: {\n" + " rotate: 30\n" + " },\n" + "\n" + " }\n" + " ],\n" + " series: [\n" + " {\n" + " data: [1, 2, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1],\n" + "\n" + " type: 'bar'\n" + " }\n" + "\n" + "\n" + " ],\n" + " tooltip: {},\n" + " title: {\n" + " text: '设备统计'\n" + " }\n" + " };"
原文地址: https://www.cveoy.top/t/topic/fcbm 著作权归作者所有。请勿转载和采集!