mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 09:50:15 +00:00
修复RingChart无法设置环形的背景色的问题 #141
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
## Latest
|
## Latest
|
||||||
|
|
||||||
|
* (2021.05.09) Fixed an issue where `RingChart` could not set the background color of the ring #141
|
||||||
* (2021.05.08) Added `Liquidchart` support for `Rect` shape
|
* (2021.05.08) Added `Liquidchart` support for `Rect` shape
|
||||||
* (2021.05.07) Improved the `Axis` scale performance #135
|
* (2021.05.07) Improved the `Axis` scale performance #135
|
||||||
* (2021.05.01) Added `Settings` parameters for painter's material #140
|
* (2021.05.01) Added `Settings` parameters for painter's material #140
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
## Latest
|
## Latest
|
||||||
|
|
||||||
|
* (2021.05.09) 修复`RingChart`无法设置环形的背景色的问题 #141
|
||||||
* (2021.05.08) 增加`LiquidChart`的方形水位图支持
|
* (2021.05.08) 增加`LiquidChart`的方形水位图支持
|
||||||
* (2021.05.07) 优化`Axis`的刻度表现 #135
|
* (2021.05.07) 优化`Axis`的刻度表现 #135
|
||||||
* (2021.05.01) 增加`Settings`中关于关于材质球设置的参数 #140
|
* (2021.05.01) 增加`Settings`中关于关于材质球设置的参数 #140
|
||||||
|
|||||||
@@ -98,6 +98,12 @@ namespace XCharts
|
|||||||
serieData.runtimePieToAngle = serie.clockwise ? toDegree : startDegree;
|
serieData.runtimePieToAngle = serie.clockwise ? toDegree : startDegree;
|
||||||
serieData.runtimePieInsideRadius = insideRadius;
|
serieData.runtimePieInsideRadius = insideRadius;
|
||||||
serieData.runtimePieOutsideRadius = outsideRadius;
|
serieData.runtimePieOutsideRadius = outsideRadius;
|
||||||
|
if (itemStyle.backgroundColor.a != 0)
|
||||||
|
{
|
||||||
|
UGL.DrawDoughnut(vh, serie.runtimeCenterPos, insideRadius, outsideRadius, itemStyle.backgroundColor,
|
||||||
|
itemStyle.backgroundColor, Color.clear, 0, 360, borderWidth, borderColor, 0,
|
||||||
|
chart.settings.cicleSmoothness, false, serie.clockwise);
|
||||||
|
}
|
||||||
UGL.DrawDoughnut(vh, serie.runtimeCenterPos, insideRadius, outsideRadius, itemColor, itemToColor,
|
UGL.DrawDoughnut(vh, serie.runtimeCenterPos, insideRadius, outsideRadius, itemColor, itemToColor,
|
||||||
Color.clear, startDegree, toDegree, borderWidth, borderColor, 0, chart.settings.cicleSmoothness,
|
Color.clear, startDegree, toDegree, borderWidth, borderColor, 0, chart.settings.cicleSmoothness,
|
||||||
roundCap, serie.clockwise);
|
roundCap, serie.clockwise);
|
||||||
|
|||||||
Reference in New Issue
Block a user