|
|
@@ -116,16 +116,16 @@ public class ShowHistogramService {
|
|
|
//X轴
|
|
|
//判断是否为日期类型
|
|
|
if ("time".equals(xColumnType)){
|
|
|
- timeReture = timeConverterUtil.timeConverter(xColumn, tableName, xAxisType, screen, 20);
|
|
|
+ timeReture = timeConverterUtil.timeConverter(xColumn, tableName, xAxisType, screen, histogramConfigInfo.getMaxCount());
|
|
|
xAxisData = timeReture.getValues();
|
|
|
chartsDataInfo.setTooMany(timeReture.isOverdose());
|
|
|
xData = timeConverterUtil.toRespons(xAxisData,xAxisType );
|
|
|
}else {
|
|
|
int count = showChartsMapper.getNumForX(xColumn, tableName);
|
|
|
- if (count > 20){
|
|
|
+ if (count > histogramConfigInfo.getMaxCount()){
|
|
|
chartsDataInfo.setTooMany(true);
|
|
|
}
|
|
|
- xAxisData = showChartsMapper.getXAxis(xColumn, tableName, screen, 20);
|
|
|
+ xAxisData = showChartsMapper.getXAxis(xColumn, tableName, screen, histogramConfigInfo.getMaxCount());
|
|
|
|
|
|
}
|
|
|
if ("".equals(xAxisData) || xAxisData == null || xAxisData.size() == 0){
|