mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 12:08:46 +00:00
修复Axis的inverse没能正确反转的问题
This commit is contained in:
@@ -636,7 +636,7 @@ namespace XCharts.Runtime
|
||||
float pX;
|
||||
if (useXValueForShadow && i < showData.Count && showData[i].data.Count > 0)
|
||||
{
|
||||
var xVal = showData[i].data[0];
|
||||
var xVal = (xAxis != null && xAxis.inverse) ? -showData[i].data[0] : showData[i].data[0];
|
||||
pX = dataZoom.context.x + (float)((xVal - xMinValue) / (xMaxValue - xMinValue)) * dataZoom.context.width;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user