private void DrawCoordinate(VertexHelper vh) { if (!coordinate.show) { return; } // draw splitline for (int i = 1; i < yAxis.GetScaleNumber(); i++) { float pX = zeroX - coordinate.splitWidth; float pY = zeroY + i * coordinateHig / (yAxis.GetScaleNumber() - 1); ChartUtils.DrawLine(vh, new Vector3(pX, pY), new Vector3(zeroX, pY), coordinate.tickness, themeInfo.axisLineColor); if (yAxis.showSplitLine) { DrawSplitLine(vh, true, yAxis.splitLineType, new Vector3(zeroX, pY), new Vector3(zeroX + coordinateWid, pY)); } } for (int i = 1; i < xAxis.GetScaleNumber(); i++) { float pX = zeroX + i * coordinateWid / (xAxis.GetScaleNumber() - 1); float pY = zeroY - coordinate.splitWidth - 2; ChartUtils.DrawLine(vh, new Vector3(pX, zeroY), new Vector3(pX, pY), coordinate.tickness, themeInfo.axisLineColor); if (xAxis.showSplitLine) { DrawSplitLine(vh, false, xAxis.splitLineType, new Vector3(pX, zeroY), new Vector3(pX, zeroY + coordinateHig)); } } //draw x,y axis ChartUtils.DrawLine(vh, new Vector3(zeroX, zeroY - coordinate.splitWidth), new Vector3(zeroX, zeroY + coordinateHig + 2), coordinate.tickness, themeInfo.axisLineColor); ChartUtils.DrawLine(vh, new Vector3(zeroX - coordinate.splitWidth, zeroY), new Vector3(zeroX + coordinateWid + 2, zeroY), coordinate.tickness, themeInfo.axisLineColor); }