JSD-8199 甘特图扩展
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

56 lines
1.6 KiB

package com.fr.plugin.third.party.jsdibjj;
import com.fanruan.api.report.chart.BaseChartType;
import com.fanruan.api.report.chart.BaseChartWithData;
import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original;
import com.fr.record.analyzer.EnableMetrics;
@EnableMetrics
public class CustomGanttType extends BaseChartType {
/**
* 该种图表所有的图表对象实例,比如柱形图就有堆积柱形图,百分比堆积柱形图等等
*
* @return 所有的图表对象实例
*/
@Focus(id = "com.fr.plugin.third.party.jsd8199", text = "plugin-jsd-8199", source = Original.PLUGIN)
public BaseChartWithData[] getChartTypes() {
return new BaseChartWithData[]{
new CustomGanttChart()
};
}
/**
* 图表在web端展现时需要的JS文件
*
* @return JS文件数组
*/
public String[] getRequiredJS() {
return new String[]{
"com/fr/plugin/third/party/jsdibjj/web/echarts.min.js",
"com/fr/plugin/third/party/jsdibjj/web/customGanttPlusWrapper.js"
};
}
/**
* 图表在web端展现时需要的CSS文件
*
* @return CSS文件数组
*/
public String[] getRequiredCss() {
return new String[]{
"com/fr/plugin/third/party/jsdibjj/web/customGanttPlus.css"
};
}
/**
* JS对象名,该对象一般是一个函数,执行后会在给定的dom中绘制图表
*
* @return JS对象名
*/
public String getWrapperName() {
return "customGanttPlusWrapper";
}
}