|
@@ -55,7 +55,7 @@ export default {
|
|
|
defaultLineThreshold: 200,
|
|
defaultLineThreshold: 200,
|
|
|
defaultPieThreshold: 20,
|
|
defaultPieThreshold: 20,
|
|
|
defaultScatterThreshold: 1000,
|
|
defaultScatterThreshold: 1000,
|
|
|
- defaultIndicatorThreshold: 5,
|
|
|
|
|
|
|
+ defaultIndicatorThreshold: 6,
|
|
|
baseConfig: { dataSource: { code: '' }, viewType: '' },
|
|
baseConfig: { dataSource: { code: '' }, viewType: '' },
|
|
|
aggregateTableConfig: { targetColumn: {}, statistics: [], groupBy: [] },
|
|
aggregateTableConfig: { targetColumn: {}, statistics: [], groupBy: [] },
|
|
|
dataViewConfig: { viewColumns: [], sortColumn: {key: ''}, sortType: 'asc' },
|
|
dataViewConfig: { viewColumns: [], sortColumn: {key: ''}, sortType: 'asc' },
|
|
@@ -63,7 +63,7 @@ export default {
|
|
|
lineConfig: { xAxis: { column: {}, granularity: {} }, yAxis: { column: {}, gauge: {} }, groupBy: {key:''}, threshold: 200 },
|
|
lineConfig: { xAxis: { column: {}, granularity: {} }, yAxis: { column: {}, gauge: {} }, groupBy: {key:''}, threshold: 200 },
|
|
|
pieConfig: { xAxis: { column: {}, granularity: {} }, yAxis: { column: {}, gauge: {} }, threshold: 20 },
|
|
pieConfig: { xAxis: { column: {}, granularity: {} }, yAxis: { column: {}, gauge: {} }, threshold: 20 },
|
|
|
scatterConfig: { xAxis: { column: {}, granularity: {} }, yAxis: { column: {}, gauge: {} }, groupBy: {key:''}, threshold: 1000 },
|
|
scatterConfig: { xAxis: { column: {}, granularity: {} }, yAxis: { column: {}, gauge: {} }, groupBy: {key:''}, threshold: 1000 },
|
|
|
- indicatorConfig: { xAxis: { column: {} }, yAxis: { column: {} }, threshold: 5 },
|
|
|
|
|
|
|
+ indicatorConfig: { xAxis: { column: {} }, yAxis: { column: {} }, threshold: 6 },
|
|
|
theme: 'default',
|
|
theme: 'default',
|
|
|
styleConfig: {},
|
|
styleConfig: {},
|
|
|
otherConfig:{},
|
|
otherConfig:{},
|
|
@@ -223,7 +223,16 @@ export default {
|
|
|
fetchConfig: JSON.stringify(fetchConfig),
|
|
fetchConfig: JSON.stringify(fetchConfig),
|
|
|
}; // 基本属性
|
|
}; // 基本属性
|
|
|
if(!!baseConfig.viewType) {
|
|
if(!!baseConfig.viewType) {
|
|
|
- body.chartType = baseConfig.viewType;
|
|
|
|
|
|
|
+ let _CHART_TYPE = {
|
|
|
|
|
+ "bar": "Histogram",
|
|
|
|
|
+ "line": "Line",
|
|
|
|
|
+ "pie": "Pie",
|
|
|
|
|
+ "scatter": "scatter",
|
|
|
|
|
+ "aggregateTable": "population",
|
|
|
|
|
+ "dataView": "individual",
|
|
|
|
|
+ "indicator": "indicator"
|
|
|
|
|
+ };
|
|
|
|
|
+ body.chartType = _CHART_TYPE[baseConfig.viewType];
|
|
|
body.chartConfig = JSON.stringify(chartDesigner[`${baseConfig.viewType}Config`]);
|
|
body.chartConfig = JSON.stringify(chartDesigner[`${baseConfig.viewType}Config`]);
|
|
|
}
|
|
}
|
|
|
|
|
|