1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- import PivotTypes from './PivotTypes'
- import {
- PIVOT_DEFAULT_AXIS_LINE_COLOR,
- PIVOT_CHART_FONT_FAMILIES,
- PIVOT_DEFAULT_FONT_COLOR,
- PIVOT_DEFAULT_HEADER_BACKGROUND_COLOR
- } from 'app/globalConstants'
- import { IChartInfo } from 'containers/Widget/components/Widget'
- const pie: IChartInfo = {
- id: PivotTypes.Pie,
- name: 'pie',
- title: '饼图',
- icon: 'icon-chartpie',
- coordinate: 'polar',
- rules: [{ dimension: [0, 9999], metric: [1, 9999] }],
- data: {
- cols: {
- title: '列',
- type: 'category'
- },
- rows: {
- title: '行',
- type: 'category'
- },
- metrics: {
- title: '指标',
- type: 'value'
- },
- filters: {
- title: '筛选',
- type: 'all'
- },
- color: {
- title: '颜色',
- type: 'category'
- },
- label: {
- title: '标签',
- type: 'all'
- },
- tip: {
- title: '提示信息',
- type: 'value'
- }
- },
- style: {
- spec: {
- circle: false
- },
- 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
- },
- 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
- },
- pivot: {
- fontFamily: PIVOT_CHART_FONT_FAMILIES[0].value,
- fontSize: '12',
- color: PIVOT_DEFAULT_FONT_COLOR,
- lineStyle: 'solid',
- lineColor: PIVOT_DEFAULT_AXIS_LINE_COLOR,
- headerBackgroundColor: PIVOT_DEFAULT_HEADER_BACKGROUND_COLOR
- }
- }
- }
- export default pie
|