1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- 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 waterfall: IChartInfo = {
- id: ChartTypes.Waterfall,
- name: 'waterfall',
- title: '瀑布图',
- icon: 'icon-waterfall',
- coordinate: 'cartesian',
- rules: [{ dimension: 1, metric: 1 }],
- dimetionAxis: 'col',
- data: {
- cols: {
- title: '列',
- type: 'category'
- },
- rows: {
- title: '行',
- type: 'category'
- },
- metrics: {
- title: '指标',
- type: 'value'
- },
- filters: {
- title: '筛选',
- type: 'all'
- }
- },
- 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,
- xAxisInterval: 0,
- xAxisRotate: 0
- },
- 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
- }
- }
- }
- export default waterfall
|