|
@@ -17,7 +17,7 @@
|
|
|
*/
|
|
|
|
|
|
// 主题颜色配置:如每个图表类型需要不同主题,请在对应图表类型上更改color属性
|
|
|
-const color = ["#0052d4", "#ff5959", "#f9b248", '#ea7ccc', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4'];
|
|
|
+const color = ["#0052d4", "#ff5959", "#f9b248", '#3CA272', '#73C0DE', '#ea7ccc', '#FC8452', '#9A60B4'];
|
|
|
|
|
|
//事件转换函数,主要用作格式化x轴为时间轴,根据需求自行修改
|
|
|
const formatDateTime = (timeStamp, returnType) => {
|
|
@@ -53,15 +53,15 @@ const cfu = {
|
|
|
//demotype为自定义图表类型,一般不需要自定义图表类型,只需要改根节点上对应的类型即可
|
|
|
"type": ["pie", "ring", "rose", "word", "funnel", "map", "arcbar", "line", "column", "bar", "area", "radar",
|
|
|
"gauge", "candle", "mix", "tline", "tarea", "scatter", "bubble", "demotype", "mainline", "mainradar",
|
|
|
- "mini-line", "mini-area", "mini-column"
|
|
|
+ "mini-line", "mini-area", "mini-column","mini-rose"
|
|
|
],
|
|
|
"range": ["饼状图", "圆环图", "玫瑰图", "词云图", "漏斗图", "地图", "圆弧进度条", "折线图", "柱状图", "条状图", "区域图", "雷达图", "仪表盘", "K线图",
|
|
|
- "混合图", "时间轴折线", "时间轴区域", "散点图", "气泡图", "自定义类型", "首页趋势图", "首页雷达图", "折线缩略图", "区域缩略图", "柱状缩略图"
|
|
|
+ "混合图", "时间轴折线", "时间轴区域", "散点图", "气泡图", "自定义类型", "首页趋势图", "首页雷达图", "折线缩略图", "区域缩略图", "柱状缩略图", "玫瑰缩略图"
|
|
|
],
|
|
|
//增加自定义图表类型,如果需要categories,请在这里加入您的图表类型,例如最后的"demotype"
|
|
|
//自定义类型时需要注意"tline","tarea","scatter","bubble"等时间轴(矢量x轴)类图表,没有categories,不需要加入categories
|
|
|
"categories": ["line", "column", "bar", "area", "radar", "gauge", "candle", "mix", "demotype", "mainline",
|
|
|
- "mainradar", "mini-line", "mini-area", "mini-column"
|
|
|
+ "mainradar", "mini-line", "mini-area", "mini-column",
|
|
|
],
|
|
|
//instance为实例变量承载属性,不要删除
|
|
|
"instance": {},
|
|
@@ -169,28 +169,90 @@ const cfu = {
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
- "rose": {
|
|
|
- "type": "rose",
|
|
|
- "color": color,
|
|
|
- "padding": [5, 5, 5, 5],
|
|
|
- "legend": {
|
|
|
- "show": true,
|
|
|
- "position": "left",
|
|
|
- "lineHeight": 25,
|
|
|
- },
|
|
|
- "extra": {
|
|
|
- "rose": {
|
|
|
- "type": "area",
|
|
|
- "minRadius": 50,
|
|
|
- "activeOpacity": 0.5,
|
|
|
- "activeRadius": 10,
|
|
|
- "offsetAngle": 0,
|
|
|
- "labelWidth": 15,
|
|
|
- "border": false,
|
|
|
- "borderWidth": 2,
|
|
|
- "borderColor": "#FFFFFF"
|
|
|
- },
|
|
|
- }
|
|
|
+ "rose":{
|
|
|
+ "type": "rose",
|
|
|
+ "canvasId": "",
|
|
|
+ "canvas2d": false,
|
|
|
+ "background": "none",
|
|
|
+ "animation": true,
|
|
|
+ "timing": "easeOut",
|
|
|
+ "duration": 1000,
|
|
|
+ "color": [
|
|
|
+ "#0052d4",
|
|
|
+ "#ff5959",
|
|
|
+ "#f9b248",
|
|
|
+ "#3CA272",
|
|
|
+ "#73C0DE",
|
|
|
+ "#ff55a3"
|
|
|
+ ],
|
|
|
+ "padding": [
|
|
|
+ 5,
|
|
|
+ 5,
|
|
|
+ 5,
|
|
|
+ 5
|
|
|
+ ],
|
|
|
+ "rotate": false,
|
|
|
+ "errorReload": true,
|
|
|
+ "fontSize": 13,
|
|
|
+ "fontColor": "#666666",
|
|
|
+ "enableScroll": false,
|
|
|
+ "touchMoveLimit": 60,
|
|
|
+ "enableMarkLine": false,
|
|
|
+ "dataLabel": false,
|
|
|
+ "dataPointShape": false,
|
|
|
+ "dataPointShapeType": "hollow",
|
|
|
+ "tapLegend": true,
|
|
|
+ "legend": {
|
|
|
+ "show": true,
|
|
|
+ "position": "bottom",
|
|
|
+ "float": "center",
|
|
|
+ "padding": 5,
|
|
|
+ "margin": 5,
|
|
|
+ "backgroundColor": "rgba(0,0,0,0)",
|
|
|
+ "borderColor": "rgba(0,0,0,0)",
|
|
|
+ "borderWidth": 0,
|
|
|
+ "fontSize": 13,
|
|
|
+ "fontColor": "#666666",
|
|
|
+ "lineHeight": 25,
|
|
|
+ "hiddenColor": "#CECECE",
|
|
|
+ "itemGap": 10
|
|
|
+ },
|
|
|
+ "extra": {
|
|
|
+ "rose": {
|
|
|
+ "type": "radius",
|
|
|
+ "minRadius": 50,
|
|
|
+ "activeOpacity": 0.5,
|
|
|
+ "activeRadius": 10,
|
|
|
+ "offsetAngle": 0,
|
|
|
+ "labelWidth": 15,
|
|
|
+ "border": true,
|
|
|
+ "borderWidth": 2,
|
|
|
+ "borderColor": "#FFFFFF",
|
|
|
+ "linearType": "none"
|
|
|
+ },
|
|
|
+ "tooltip": {
|
|
|
+ "showBox": true,
|
|
|
+ "showArrow": false,
|
|
|
+ "showCategory": false,
|
|
|
+ "borderWidth": 0,
|
|
|
+ "borderRadius": 6,
|
|
|
+ "borderColor": "#000000",
|
|
|
+ "borderOpacity": 0.5,
|
|
|
+ "bgColor": "#000000",
|
|
|
+ "bgOpacity": 0.5,
|
|
|
+ "gridType": "solid",
|
|
|
+ "dashLength": 4,
|
|
|
+ "gridColor": "#CCCCCC",
|
|
|
+ "fontColor": "#FFFFFF",
|
|
|
+ "splitLine": true,
|
|
|
+ "horizentalLine": false,
|
|
|
+ "xAxisLabel": false,
|
|
|
+ "yAxisLabel": false,
|
|
|
+ "labelBgColor": "#FFFFFF",
|
|
|
+ "labelBgOpacity": 0.7,
|
|
|
+ "labelFontColor": "#666666"
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
"word": {
|
|
|
"type": "word",
|
|
@@ -1598,8 +1660,92 @@ const cfu = {
|
|
|
"data": []
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
+ },
|
|
|
+"mini-rose":{
|
|
|
+ "type": "rose",
|
|
|
+ "canvasId": "",
|
|
|
+ "canvas2d": false,
|
|
|
+ "background": "none",
|
|
|
+ "animation": true,
|
|
|
+ "timing": "easeOut",
|
|
|
+ "duration": 1000,
|
|
|
+ "color": [
|
|
|
+ "#0052d4",
|
|
|
+ "#ff5959",
|
|
|
+ "#f9b248",
|
|
|
+ "#3CA272",
|
|
|
+ "#73C0DE",
|
|
|
+ "#ff55a3"
|
|
|
+ ],
|
|
|
+ "padding": [
|
|
|
+ 5,
|
|
|
+ 5,
|
|
|
+ 5,
|
|
|
+ 5
|
|
|
+ ],
|
|
|
+ "rotate": false,
|
|
|
+ "errorReload": true,
|
|
|
+ "fontSize": 13,
|
|
|
+ "fontColor": "#666666",
|
|
|
+ "enableScroll": false,
|
|
|
+ "touchMoveLimit": 60,
|
|
|
+ "enableMarkLine": false,
|
|
|
+ "dataLabel": false,
|
|
|
+ "dataPointShape": false,
|
|
|
+ "dataPointShapeType": "hollow",
|
|
|
+ "tapLegend": false,
|
|
|
+ "legend": {
|
|
|
+ "show": false,
|
|
|
+ "position": "bottom",
|
|
|
+ "float": "center",
|
|
|
+ "padding": 5,
|
|
|
+ "margin": 5,
|
|
|
+ "backgroundColor": "rgba(0,0,0,0)",
|
|
|
+ "borderColor": "rgba(0,0,0,0)",
|
|
|
+ "borderWidth": 0,
|
|
|
+ "fontSize": 13,
|
|
|
+ "fontColor": "#666666",
|
|
|
+ "lineHeight": 25,
|
|
|
+ "hiddenColor": "#CECECE",
|
|
|
+ "itemGap": 10
|
|
|
+ },
|
|
|
+ "extra": {
|
|
|
+ "rose": {
|
|
|
+ "type": "radius",
|
|
|
+ "minRadius": 50,
|
|
|
+ "activeOpacity": 0.5,
|
|
|
+ "activeRadius": 10,
|
|
|
+ "offsetAngle": 0,
|
|
|
+ "labelWidth": 15,
|
|
|
+ "border": true,
|
|
|
+ "borderWidth": 2,
|
|
|
+ "borderColor": "#FFFFFF",
|
|
|
+
|
|
|
+ },
|
|
|
+ "tooltip": {
|
|
|
+ "showBox": true,
|
|
|
+ "showArrow": false,
|
|
|
+ "showCategory": false,
|
|
|
+ "borderWidth": 0,
|
|
|
+ "borderRadius": 6,
|
|
|
+ "borderColor": "#000000",
|
|
|
+ "borderOpacity": 0.5,
|
|
|
+ "bgColor": "#000000",
|
|
|
+ "bgOpacity": 0.5,
|
|
|
+ "gridType": "solid",
|
|
|
+ "dashLength": 4,
|
|
|
+ "gridColor": "#CCCCCC",
|
|
|
+ "fontColor": "#FFFFFF",
|
|
|
+ "splitLine": true,
|
|
|
+ "horizentalLine": false,
|
|
|
+ "xAxisLabel": false,
|
|
|
+ "yAxisLabel": false,
|
|
|
+ "labelBgColor": "#FFFFFF",
|
|
|
+ "labelBgOpacity": 0.7,
|
|
|
+ "labelFontColor": "#666666"
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
}
|
|
|
|
|
|
export default cfu;
|