暂降模块,图表生成替换
This commit is contained in:
@@ -229,4 +229,109 @@ public class DrawPicUtil {
|
||||
String eventDensityJson = BarGenerator.generateEventDensity(data);
|
||||
return drawPic(eventDensityJson, width, height);
|
||||
}
|
||||
|
||||
/***
|
||||
* 绘制生成区域统计图
|
||||
* @author hongawen
|
||||
* @date 2023/6/21 11:01
|
||||
* @return String base64数据
|
||||
*/
|
||||
public String drawEventRegion(List<String> xData, List<Integer> yData) {
|
||||
return drawEventRegion(xData,yData, 0, 0);
|
||||
}
|
||||
|
||||
/***
|
||||
* 绘制生成区域统计图
|
||||
* @author hongawen
|
||||
* @date 2023/6/21 11:01
|
||||
* @return String base64数据
|
||||
*/
|
||||
public String drawEventRegion(List<String> xData, List<Integer> yData, int width, int height) {
|
||||
String eventDensityJson = LineGenerator.generateRegionOption(xData,yData);
|
||||
return drawPic(eventDensityJson, width, height);
|
||||
}
|
||||
|
||||
/***
|
||||
* 绘制生成电压暂降,已关联未关联得次数图
|
||||
* @author hongawen
|
||||
* @date 2023/6/21 11:01
|
||||
* @return String base64数据
|
||||
*/
|
||||
public String drawEventAssociatedUnassociated(List<String> eventValue, List<Integer> pereventValue, List<Integer> pereventValue1, String xName) {
|
||||
return drawEventAssociatedUnassociated(eventValue,pereventValue,pereventValue1,xName, 0, 0);
|
||||
}
|
||||
|
||||
/***
|
||||
* 绘制生成电压暂降,已关联未关联得次数图
|
||||
* @author hongawen
|
||||
* @date 2023/6/21 11:01
|
||||
* @return String base64数据
|
||||
*/
|
||||
public String drawEventAssociatedUnassociated(List<String> eventValue, List<Integer> pereventValue, List<Integer> pereventValue1, String xName, int width, int height) {
|
||||
String eventDensityJson = LineGenerator.generateAssociatedUnassociatedOption(eventValue,pereventValue,pereventValue1,xName);
|
||||
return drawPic(eventDensityJson, width, height);
|
||||
}
|
||||
|
||||
/***
|
||||
* 绘制生成区域统计图
|
||||
* @author hongawen
|
||||
* @date 2023/6/21 11:01
|
||||
* @return String base64数据
|
||||
*/
|
||||
public String drawEventVoltageLevel(List<String> xData, List<Integer> yData) {
|
||||
return drawEventVoltageLevel(xData,yData, 0, 0);
|
||||
}
|
||||
|
||||
/***
|
||||
* 绘制生成区域统计图
|
||||
* @author hongawen
|
||||
* @date 2023/6/21 11:01
|
||||
* @return String base64数据
|
||||
*/
|
||||
public String drawEventVoltageLevel(List<String> xData, List<Integer> yData, int width, int height) {
|
||||
String eventDensityJson = LineGenerator.generateVoltageLevelOption(xData,yData);
|
||||
return drawPic(eventDensityJson, width, height);
|
||||
}
|
||||
|
||||
/***
|
||||
* 绘制生成设备运行情况图
|
||||
* @author hongawen
|
||||
* @date 2023/6/21 11:01
|
||||
* @return String base64数据
|
||||
*/
|
||||
public String drawEventRegionDevice(List<String> xData, List<Integer> onlineData,List<Integer> offlineData,String subtext,String xName) {
|
||||
return drawEventRegionDevice(xData,onlineData,offlineData,subtext,xName, 0, 0);
|
||||
}
|
||||
|
||||
/***
|
||||
* 绘制生成设备运行情况图
|
||||
* @author hongawen
|
||||
* @date 2023/6/21 11:01
|
||||
* @return String base64数据
|
||||
*/
|
||||
public String drawEventRegionDevice(List<String> xData, List<Integer> onlineData,List<Integer> offlineData,String subtext,String xName, int width, int height) {
|
||||
String eventDensityJson = LineGenerator.generateRegionDeviceOption(xData,onlineData,offlineData,subtext,xName);
|
||||
return drawPic(eventDensityJson, width, height);
|
||||
}
|
||||
|
||||
/***
|
||||
* 绘制生成暂态事件次数图
|
||||
* @author hongawen
|
||||
* @date 2023/6/21 11:01
|
||||
* @return String base64数据
|
||||
*/
|
||||
public String drawEventFrequency(List<String> xData, List<Integer> dip,List<Integer> interruptions,List<Integer> rise,String subtext,String xName) {
|
||||
return drawEventFrequency(xData,dip,interruptions,rise,subtext,xName, 0, 0);
|
||||
}
|
||||
|
||||
/***
|
||||
* 绘制生成暂态事件次数图
|
||||
* @author hongawen
|
||||
* @date 2023/6/21 11:01
|
||||
* @return String base64数据
|
||||
*/
|
||||
public String drawEventFrequency(List<String> xData, List<Integer> dip,List<Integer> interruptions,List<Integer> rise,String subtext,String xName, int width, int height) {
|
||||
String eventDensityJson = LineGenerator.generateFrequencyOption(xData,dip,interruptions,rise,subtext,xName);
|
||||
return drawPic(eventDensityJson, width, height);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user