@ausbom/charts 0.1.10 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/highchartsTheme.js +2 -2
- package/lib/index.js +1 -1
- package/package.json +3 -3
package/lib/highchartsTheme.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=
|
|
2
|
-
return"".concat(this.series.name,": ").concat(this.y)}}}},pane:{startAngle:0,endAngle:360,background:[{outerRadius:"100%",innerRadius:"93%",backgroundColor:_styles.palette.neutral.greyMedium,borderWidth:0}]},legend:{align:"left",symbolWidth:32,symbolRadius:0,itemMarginTop:10,alignColumns:false,width:"90%",itemStyle:{color:textColor,fontWeight:"normal"},itemHoverStyle:{color:textColor},itemHiddenStyle:{color:_styles.palette.neutral.charcoalMedium},title:{style:{color:textColor}}},credits:{style:{color:_styles.palette.neutral.charcoalMedium},position:{verticalAlign:"top",align:"right"}},navigation:{buttonOptions:{align:"right",verticalAlign:"bottom",buttonSpacing:12}},exporting:{buttons:{contextButton:{enabled:false}}}};var _default=
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.highchartsHtmlLabelStyle=exports["default"]=void 0;var _styles=require("@ausbom/styles");var textColor=_styles.palette.neutral.charcoalDark;var gridColor=_styles.palette.neutral.greyMedium;var dataColors=[_styles.palette.data.dataVis.dataVis1,_styles.palette.data.dataVis.dataVis2,_styles.palette.data.dataVis.dataVis3,_styles.palette.data.dataVis.dataVis4,_styles.palette.data.dataVis.dataVis5,_styles.palette.data.dataVis.dataVis6];var highchartsHtmlLabelStyle=exports.highchartsHtmlLabelStyle=function highchartsHtmlLabelStyle(){var background=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"grey";return{backgroundColor:background,color:_styles.palette.neutral.white,fontWeight:"700",fontSize:"12px",padding:"5px 7px"}};var theme={colors:dataColors,chart:{style:{color:textColor,fontFamily:"'Inter', sans-serif"},spacing:[0,1,0,0]},title:{align:"left",margin:32,style:{color:textColor,fontSize:"20px",fontWeight:"bold"}},subtitle:{style:{color:textColor}},xAxis:{gridLineColor:gridColor,labels:{style:{color:textColor,fontVariantNumeric:"slashed-zero"}},lineColor:textColor,lineWidth:1,tickColor:textColor,tickWidth:1,title:{margin:24,style:{color:textColor}}},yAxis:{gridLineColor:gridColor,labels:{style:{color:textColor,fontVariantNumeric:"slashed-zero"}},lineColor:textColor,lineWidth:0,tickColor:textColor,tickWidth:0,title:{margin:24,style:{color:textColor}}},tooltip:{backgroundColor:_styles.palette.neutral.charcoalDark,borderColor:_styles.palette.neutral.charcoalDark,borderRadius:0,borderWidth:1,shadow:false,padding:12,style:{color:_styles.palette.neutral.white}},plotOptions:{line:{states:{hover:{halo:{size:12}}}},area:{fillOpacity:0.1,lineWidth:2,states:{hover:{lineWidth:2,halo:{size:12}}}},series:{dataLabels:{color:textColor,style:{fontSize:"13px"}},marker:{lineColor:undefined,radius:6,states:{hover:{fillColor:_styles.palette.neutral.white,lineColor:undefined,lineWidth:2,radiusPlus:0}}}},column:{pointPadding:0},pie:{borderWidth:4,states:{hover:{halo:null},select:{enabled:false}}},solidgauge:{innerRadius:"88%",radius:"100%",dataLabels:{borderWidth:0,formatter:function formatter(){// eslint-disable-line
|
|
2
|
+
return"".concat(this.series.name,": ").concat(this.y)}}}},pane:{startAngle:0,endAngle:360,background:[{outerRadius:"100%",innerRadius:"93%",backgroundColor:_styles.palette.neutral.greyMedium,borderWidth:0}]},legend:{align:"left",symbolWidth:32,symbolRadius:0,itemMarginTop:10,alignColumns:false,width:"90%",itemStyle:{color:textColor,fontWeight:"normal"},itemHoverStyle:{color:textColor},itemHiddenStyle:{color:_styles.palette.neutral.charcoalMedium},title:{style:{color:textColor}}},credits:{style:{color:_styles.palette.neutral.charcoalMedium},position:{verticalAlign:"top",align:"right"}},navigation:{buttonOptions:{align:"right",verticalAlign:"bottom",buttonSpacing:12}},exporting:{buttons:{contextButton:{enabled:false}}}};var _default=exports["default"]=theme;
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _typeof=require("@babel/runtime/helpers/typeof");Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"highchartsHtmlLabelStyle",{enumerable:true,get:function get(){return _highchartsTheme.highchartsHtmlLabelStyle}});Object.defineProperty(exports,"highchartsTheme",{enumerable:true,get:function get(){return _highchartsTheme["default"]}});var _highchartsTheme=_interopRequireWildcard(require("./highchartsTheme"));function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,"default":e};if(null===e||"object"!=_typeof(e)&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f)}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f})(e,t)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ausbom/charts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"react": ">= 16.3.x"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ausbom/styles": "^0.
|
|
40
|
+
"@ausbom/styles": "^0.14.2",
|
|
41
41
|
"highcharts": "^9.0.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b2fb259306f6ff4acc90b41a8491469a9cea4d29"
|
|
44
44
|
}
|