tvcharts 0.8.90 → 0.8.91

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.
@@ -59,6 +59,8 @@ var getProfitColor = function (profit, bgColor) {
59
59
  return "#049A81";
60
60
  } else if (profit < 0) {
61
61
  return "#F23646";
62
+ } else if (typeof bgColor !== 'string') {
63
+ return "#049A81";
62
64
  }
63
65
  return getIsLightColor(bgColor) ? "rgba(0,0,0,0.5)" : "rgba(255,255,255,0.5)";
64
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.8.90",
3
+ "version": "0.8.91",
4
4
  "main": "dist/echarts.js",
5
5
  "module": "index.js",
6
6
  "jsdelivr": "dist/echarts.min.js",