import { ChartConfigValueType,ChartConfigProp, RequestMethod } from "../../chart.d"; import { FontAlignHorizonDefault, FontAlignVerticalDefault, FontWeightDefault ,DataSourceTypeDefault, RequestMethodDefault, ColorDefault, OpenTypeDefault} from "../../chart.ops"; /** * 柱状图配置项 */ export const BingTuConfig : ChartConfigProp = { config : { title : "配置", config : { "图层名称":{ title : "图层名称", value : "饼图", valueType : ChartConfigValueType.INPUT, key : "柱状图", subItem : undefined }, "饼图设置":{ title : "饼图设置", value : undefined , valueType : undefined , key : "饼图设置", subItem : { "设置为环形":{ title :"设置为环形", value : true, valueType : ChartConfigValueType.SWITCH, key : "设置为环形", subItem : undefined }, "半径大小":{ title :"半径大小", value : "40%,55%", valueType : ChartConfigValueType.INPUT, key : "半径大小", subItem : undefined }, "自动排序":{ title :"自动排序", value : false, valueType : ChartConfigValueType.SWITCH, key : "自动排序", subItem : undefined } } }, "标题设置":{ title :"标题设置", value : undefined , valueType : undefined , key:"标题设置", subItem : { "显示":{ title :"显示", value : false, valueType : ChartConfigValueType.SWITCH, key : "显示", subItem : undefined }, "标题":{ title :"标题", value : "", valueType : ChartConfigValueType.INPUT, key : "标题", subItem : undefined }, "字体颜色":{ title :"字体颜色", value : "rgba(30, 144, 255, 1)", valueType : ChartConfigValueType.COLOR_SELECTOR, key : "字体颜色", subItem : undefined }, "字体粗细":{ title :"字体粗细", value : FontWeightDefault, valueType : ChartConfigValueType.RADIO, key : "字体粗细", subItem : undefined }, "字体大小":{ title :"字体大小", value : 20, valueType : ChartConfigValueType.NUMBER_INPUT, key : "字体大小", subItem : undefined }, "字体位置":{ title :"字体位置", value : FontAlignHorizonDefault, valueType : ChartConfigValueType.RADIO, key : "字体位置", subItem : undefined }, // -- 副标题相关 "副标题":{ title :"副标题", value : "", valueType : ChartConfigValueType.INPUT, key : "副标题", subItem : undefined }, "副标题字体颜色":{ title :"副标题字体颜色", value : "rgba(30, 144, 255, 1)", valueType : ChartConfigValueType.COLOR_SELECTOR, key : "副标题字体颜色", subItem : undefined }, "副标题字体粗细":{ title :"副标题字体粗细", value : FontWeightDefault, valueType : ChartConfigValueType.RADIO, key : "副标题字体粗细", subItem : undefined }, "副标题字体大小":{ title :"副标题字体大小", value : 20, valueType : ChartConfigValueType.NUMBER_INPUT, key : "副标题字体大小", subItem : undefined } } }, "数值显示":{ title : "数值显示", key : "数值显示", value : undefined, valueType : undefined , subItem : { "显示":{ title : "显示", value : true, valueType : ChartConfigValueType.SWITCH , key : "显示", subItem : undefined , }, "数值":{ title : "数值", value : true, valueType : ChartConfigValueType.SWITCH , key : "数值", subItem : undefined , }, "百分比":{ title : "百分比", value : true, valueType : ChartConfigValueType.SWITCH , key : "百分比", subItem : undefined , }, "数据项名称":{ title : "数据项名称", value : true, valueType : ChartConfigValueType.SWITCH , key : "数据项名称", subItem : undefined , }, "字体大小":{ title : "字体大小", value : 30, valueType : ChartConfigValueType.INPUT , key : "字体大小", subItem : undefined , }, "字体颜色":{ title : "字体颜色", value : "red", valueType : ChartConfigValueType.COLOR_SELECTOR , key : "字体颜色", subItem : undefined , }, "字体粗细":{ title : "字体粗细", value : FontWeightDefault, valueType : ChartConfigValueType.RADIO , key : "字体粗细", subItem : undefined , }, } }, "图例操作":{ title :"图例操作", value : undefined, valueType : undefined, key : "图例操作", subItem : { "图例":{ title :"图例", value : true, valueType : ChartConfigValueType.SWITCH, key : "图例", subItem : undefined }, "字体颜色":{ title :"字体颜色", value : "white", valueType : ChartConfigValueType.COLOR_SELECTOR, key : "字体颜色", subItem : undefined }, "图例宽度":{ title :"图例宽度", value : 36, valueType : ChartConfigValueType.NUMBER_INPUT, key : "图例宽度", subItem : undefined }, "横向位置":{ title :"横向位置", value : FontAlignHorizonDefault, valueType : ChartConfigValueType.RADIO, key : "横向位置", subItem : undefined }, "纵向位置":{ title :"纵向位置", value : FontAlignVerticalDefault, valueType : ChartConfigValueType.RADIO, key : "纵向位置", subItem : undefined }, "字体大小":{ title :"字体大小", value : 18, valueType : ChartConfigValueType.NUMBER_INPUT, key : "字体大小", subItem : undefined } } }, "配色":{ title : "配色", value : undefined, valueType : undefined, key : "配色", subItem : { "自定义配色":{ title : "自定义配色", value : ColorDefault, valueType : ChartConfigValueType.COLOR_CONFIG, key : "自定义配色", subItem : undefined , } } , }, "超链设置":{ title:"超链设置", value : undefined , valueType:undefined, key:"超链设置", subItem : { "启用":{ title :"启用", value : false, valueType : ChartConfigValueType.SWITCH, key : "启用", subItem:undefined , }, "打开方式":{ title :"打开方式", value : OpenTypeDefault, valueType : ChartConfigValueType.RADIO, key : "打开方式", subItem:undefined , }, "链接地址":{ title :"链接地址", value : "", valueType : ChartConfigValueType.INPUT, key : "链接地址", subItem:undefined , }, } } } }, data : { title : "数据", config : { "数据类型":{ title :"数据类型", value : DataSourceTypeDefault, valueType : ChartConfigValueType.RADIO, key : "数据类型", subItem : undefined }, "接口地址":{ title :"接口地址", value : "https://ssl.zhuanyegou.com/uat-devops/api/dataHandle/bingtu", valueType : ChartConfigValueType.INPUT, key : "接口地址", subItem : undefined }, "接口方式":{ title :"接口方式", value : { ...RequestMethodDefault, value:RequestMethod.post }, valueType : ChartConfigValueType.RADIO, key : "接口方式", subItem : undefined }, "参数编辑":{ title :"参数编辑", value : `{"url":"https://ssl.zhuanyegou.com/uat-devops/api/dataHandle/demo/bingtu/2"}`, valueType : ChartConfigValueType.INPUT, key : "参数编辑", subItem : undefined }, "刷新时间":{ title :"刷新时间", value : 5000, valueType : ChartConfigValueType.NUMBER_INPUT, key : "刷新时间", subItem : undefined } } }, param : { title : "参数", config : { "X位置":{ title :"X位置", value : 0, valueType : ChartConfigValueType.NUMBER_INPUT, key : "X位置", subItem : undefined }, "Y位置":{ title :"Y位置", value : 0, valueType : ChartConfigValueType.NUMBER_INPUT, key : "Y位置", subItem : undefined }, "宽度":{ title :"宽度", value : 600, valueType : ChartConfigValueType.NUMBER_INPUT, key : "宽度", subItem : undefined }, "高度":{ title :"高度", value : 300, valueType : ChartConfigValueType.NUMBER_INPUT, key : "高度", subItem : undefined } } } }