@easyv/charts 1.10.20 → 1.10.22
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/components/PieChart.js +84 -3
- package/lib/utils/index.js +1 -1
- package/package.json +1 -1
- package/src/components/PieChart.js +1629 -1569
- package/src/utils/index.js +1 -1
package/src/utils/index.js
CHANGED
|
@@ -621,7 +621,7 @@ const reverseGradientStops = (gradient) => {
|
|
|
621
621
|
};
|
|
622
622
|
const getBandBackground = (pattern, fill, y) => {
|
|
623
623
|
if (!(pattern && pattern.path)) {
|
|
624
|
-
return getColor(y
|
|
624
|
+
return getColor(y > 0 ? reverseGradientStops(fill) : fill); //小于0颜色翻转
|
|
625
625
|
}
|
|
626
626
|
try {
|
|
627
627
|
const { backgroundSize = "100% 100%", ..._pattern } = pattern;
|