private void DrawSingleAxisTick(VertexHelper vh, SingleAxis axis)
 {
     if (AxisHelper.NeedShowSplit(axis))
     {
         var dataZoom = chart.GetDataZoomOfAxis(axis);
         DrawAxisTick(vh, axis, chart.theme.axis, dataZoom,
                      axis.orient,
                      axis.context.x,
                      axis.context.y,
                      axis.context.width);
     }
 }
Пример #2
0
        private void DrawParallelAxisTick(VertexHelper vh, ParallelAxis axis)
        {
            if (AxisHelper.NeedShowSplit(axis))
            {
                if (m_Parallel == null)
                {
                    return;
                }

                var dataZoom = chart.GetDataZoomOfAxis(axis);

                DrawAxisTick(vh, axis, chart.theme.axis, dataZoom,
                             m_Orient,
                             axis.context.x,
                             axis.context.y,
                             axis.context.width);
            }
        }
Пример #3
0
        private void DrawYAxisTick(VertexHelper vh, int yAxisIndex, YAxis yAxis)
        {
            if (AxisHelper.NeedShowSplit(yAxis))
            {
                var grid = chart.GetChartComponent <GridCoord>(yAxis.gridIndex);
                if (grid == null)
                {
                    return;
                }

                var dataZoom = chart.GetDataZoomOfAxis(yAxis);

                DrawAxisTick(vh, yAxis, chart.theme.axis, dataZoom,
                             Orient.Vertical,
                             GetAxisLineXOrY(),
                             grid.context.y,
                             grid.context.height);
            }
        }
Пример #4
0
        private void DrawXAxisTick(VertexHelper vh, XAxis xAxis)
        {
            if (AxisHelper.NeedShowSplit(xAxis))
            {
                var grid = chart.GetChartComponent <GridCoord>(xAxis.gridIndex);
                if (grid == null)
                {
                    return;
                }

                var dataZoom = chart.GetDataZoomOfAxis(xAxis);

                DrawAxisTick(vh, xAxis, chart.theme.axis, dataZoom,
                             Orient.Horizonal,
                             grid.context.x,
                             GetAxisLineXOrY(),
                             grid.context.width);
            }
        }
Пример #5
0
 private void DrawYAxisSplit(VertexHelper vh, int yAxisIndex, YAxis yAxis)
 {
     if (AxisHelper.NeedShowSplit(yAxis))
     {
         var grid = chart.GetChartComponent <GridCoord>(yAxis.gridIndex);
         if (grid == null)
         {
             return;
         }
         var relativedAxis = chart.GetChartComponent <XAxis>(yAxis.gridIndex);
         var dataZoom      = chart.GetDataZoomOfAxis(yAxis);
         DrawAxisSplit(vh, chart.theme.axis, dataZoom,
                       Orient.Vertical,
                       grid.context.x,
                       grid.context.y,
                       grid.context.height,
                       grid.context.width,
                       relativedAxis);
     }
 }