| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 | 
							- import ChartTypes from './ChartTypes'
 
- import {
 
-   PIVOT_DEFAULT_AXIS_LINE_COLOR,
 
-   PIVOT_CHART_FONT_FAMILIES,
 
-   PIVOT_DEFAULT_FONT_COLOR,
 
-   CHART_LABEL_POSITIONS
 
- } from 'app/globalConstants'
 
- import { IChartInfo } from 'containers/Widget/components/Widget'
 
- const scatter: IChartInfo = {
 
-   id: ChartTypes.Scatter,
 
-   name: 'scatter',
 
-   title: '散点图',
 
-   icon: 'icon-scatter-chart',
 
-   coordinate: 'cartesian',
 
-   rules: [{ dimension: [0, 9999], metric: 2 }],
 
-   dimetionAxis: 'col',
 
-   data: {
 
-     cols: {
 
-       title: '列',
 
-       type: 'category'
 
-     },
 
-     rows: {
 
-       title: '行',
 
-       type: 'category'
 
-     },
 
-     metrics: {
 
-       title: '指标',
 
-       type: 'value'
 
-     },
 
-     filters: {
 
-       title: '筛选',
 
-       type: 'all'
 
-     },
 
-     size: {
 
-       title: '尺寸',
 
-       type: 'value'
 
-     },
 
-     color: {
 
-       title: '颜色',
 
-       type: 'category'
 
-     },
 
-     tip: {
 
-       title: '提示信息',
 
-       type: 'value'
 
-     }
 
-   },
 
-   style: {
 
-     spec: {
 
-     },
 
-     label: {
 
-       showLabel: false,
 
-       labelPosition: CHART_LABEL_POSITIONS[0].value,
 
-       labelFontFamily: PIVOT_CHART_FONT_FAMILIES[0].value,
 
-       labelFontSize: '12',
 
-       labelColor: PIVOT_DEFAULT_FONT_COLOR
 
-     },
 
-     xAxis: {
 
-       showLine: true,
 
-       lineStyle: 'solid',
 
-       lineSize: '1',
 
-       lineColor: PIVOT_DEFAULT_AXIS_LINE_COLOR,
 
-       showLabel: true,
 
-       labelFontFamily: PIVOT_CHART_FONT_FAMILIES[0].value,
 
-       labelFontSize: '12',
 
-       labelColor: PIVOT_DEFAULT_FONT_COLOR,
 
-       showTitleAndUnit: true,
 
-       titleFontFamily: PIVOT_CHART_FONT_FAMILIES[0].value,
 
-       titleFontSize: '12',
 
-       titleColor: PIVOT_DEFAULT_FONT_COLOR,
 
-       nameLocation: 'middle',
 
-       nameRotate: 90,
 
-       nameGap: 40,
 
-       min: null,
 
-       max: null
 
-     },
 
-     yAxis: {
 
-       showLine: true,
 
-       lineStyle: 'solid',
 
-       lineSize: '1',
 
-       lineColor: PIVOT_DEFAULT_AXIS_LINE_COLOR,
 
-       showLabel: true,
 
-       labelFontFamily: PIVOT_CHART_FONT_FAMILIES[0].value,
 
-       labelFontSize: '12',
 
-       labelColor: PIVOT_DEFAULT_FONT_COLOR,
 
-       showTitleAndUnit: true,
 
-       titleFontFamily: PIVOT_CHART_FONT_FAMILIES[0].value,
 
-       titleFontSize: '12',
 
-       titleColor: PIVOT_DEFAULT_FONT_COLOR,
 
-       nameLocation: 'middle',
 
-       nameRotate: 90,
 
-       nameGap: 40,
 
-       min: null,
 
-       max: null
 
-     },
 
-     splitLine: {
 
-       showHorizontalLine: true,
 
-       horizontalLineStyle: 'dashed',
 
-       horizontalLineSize: '1',
 
-       horizontalLineColor: PIVOT_DEFAULT_AXIS_LINE_COLOR,
 
-       showVerticalLine: false,
 
-       verticalLineStyle: 'dashed',
 
-       verticalLineSize: '1',
 
-       verticalLineColor: PIVOT_DEFAULT_AXIS_LINE_COLOR
 
-     },
 
-     legend: {
 
-       showLegend: true,
 
-       legendPosition: 'right',
 
-       selectAll: true,
 
-       fontFamily: PIVOT_CHART_FONT_FAMILIES[0].value,
 
-       fontSize: '12',
 
-       color: PIVOT_DEFAULT_FONT_COLOR
 
-     }
 
-   }
 
- }
 
- export default scatter
 
 
  |