AxisScaleBreakStyle 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
차트의 Y축에 있는 눈금 나누기를 나타냅니다.
public ref class AxisScaleBreakStyle
public class AxisScaleBreakStyle
type AxisScaleBreakStyle = class
Public Class AxisScaleBreakStyle
- 상속
-
AxisScaleBreakStyle
예제
다음 코드 예제에서는 컨트롤이 디자인 화면에 추가된 후 배율 중단을 Chart 사용하도록 설정하고 사용자 지정하는 방법을 보여 줍니다.
Imports System.Web.UI.DataVisualization.Charting
Private Function AddChartData()
chart1.Series("Default").Points.Add(New DataPoint(1, 2))
chart1.Series("Default").Points.Add(New DataPoint(2, 4))
chart1.Series("Default").Points.Add(New DataPoint(3, 400000))
chart1.Series("Default").Points.Add(New DataPoint(4, 3))
End Sub
Private Function AddScaleBreaks()
' Enable scale breaks.
chart1.ChartAreas("Default").AxisY.ScaleBreakStyle.Enabled = True
' Show scale break if more than 25% of the chart is empty space.
chart1.ChartAreas("Default").AxisY.ScaleBreakStyle.CollapsibleSpaceThreshold = 25
' Set the line width of the scale break.
chart1.ChartAreas("Default").AxisY.ScaleBreakStyle.LineWidth = 2
' Set the color of the scale break.
chart1.ChartAreas("Default").AxisY.ScaleBreakStyle.LineColor = Color.Red
' If all data points are significantly far from zero, the chart will calculate the scale minimum value.
chart1.ChartAreas("Default").AxisY.ScaleBreakStyle.StartFromZero = StartFromZero.Auto
' Set the spacing gap between the lines of the scale break (as a percentage of the Y-axis).
chart1.ChartAreas["Default"].AxisY.ScaleBreakStyle.Spacing = 2;
End Function
using System.Web.UI.DataVisualization.Charting
private void AddChartData()
{
chart1.Series["Series1"].Points.Add(new DataPoint(1, 2));
chart1.Series["Series1"].Points.Add(new DataPoint(2, 4));
chart1.Series["Series1"].Points.Add(new DataPoint(3, 400000));
chart1.Series["Series1"].Points.Add(new DataPoint(4, 3));
}
private void AddScaleBreaks()
{
// Enable scale breaks.
chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.Enabled = true;
// Show scale break if more than 25% of the chart is empty space.
chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.CollapsibleSpaceThreshold = 25;
// Set the line width of the scale break.
chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.LineWidth = 2;
// Set the color of the scale break.
chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.LineColor = Color.Red;
// If all data points are significantly far from zero, the chart will calculate the scale minimum value.
chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.StartFromZero = StartFromZero.Auto;
// Set the spacing gap between the lines of the scale break (as a percentage of the Y-axis).
chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.Spacing = 2;
}
설명
배율 구분선은 차트의 계열에서 데이터 요소를 재배포하는 데 가장 자주 사용되는 Y축의 의도적인 불연속성입니다. 이 기능은 한 계열에서 그리는 데이터의 높음 값과 낮은 값 사이에 큰 차이가 있을 때 가독성을 향상시킵니다. 여러 계열의 데이터 간 차이에 대해서는 배율 구분선이 그려지지 않습니다.
기본적으로 배율 구분은 사용하지 않도록 설정됩니다. 속성을 .로 설정하여 Y축에서 배율 나누기를 Enabledtrue사용하도록 설정할 수 있습니다. 눈금 나누기의 세로 공간 크기를 변경하려면 값을 지정할 Spacing 수 있습니다. 이는 Y축 눈금의 백분율로 계산됩니다.
배율 구분선을 그리려면 단일 계열의 데이터 요소 범위를 충분히 분리해야 합니다. 기본적으로 차트의 25% 이상의 데이터 범위 사이가 구분되는 경우에만 배율 구분선을 추가할 수 있습니다. 데이터 범위 간에 충분한 거리가 있더라도 눈금 나누기를 사용하도록 설정했지만 표시되지 않는 경우 속성을 25보다 작은 값으로 설정할 CollapsibleSpaceThreshold 수 있습니다.
차트는 차트당 최대 5개의 배율 나누기를 지원합니다. 그러나 둘 이상의 눈금 나누기를 표시하면 차트를 읽을 수 없게 될 수 있습니다. 데이터 범위가 두 개 이상인 경우 이 데이터를 표시하는 다른 방법을 사용하십시오. 이 MaxNumberOfBreaks 속성을 사용하여 차트에 표시할 수 있는 눈금 나누기 수를 줄입니다.
눈금 나누기를 사용하면 Y축 레이블이 오프셋이 될 수 있습니다. 레이블 오프셋을 사용하지 않도록 설정하려면 속성을 false.로 설정합니다IsStaggered.
크기 조정 중단은 다음 조건 중 어떤 조건에서도 지원되지 않습니다.
원형, 도넛형, 깔때기형, 피라미드형, 방사형 또는 누적 차트 종류가 사용됩니다.
레이블, 눈금 또는 눈금선에 대한 사용자 지정 간격을 사용할 수 있습니다.
축의 최소값 또는 최대값이 설정됩니다.
사용자 지정 레이블이 사용됩니다.
로그 Y축이 지정됩니다.
스크롤 및 확대/축소를 포함하는 Y축의 축 보기가 사용됩니다.
3차원 차트가 사용됩니다.
생성자
| Name | Description |
|---|---|
| AxisScaleBreakStyle() |
AxisScaleBreakStyle 클래스의 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| BreakLineStyle |
눈금 나누기를 그리는 데 사용할 줄 바꿈의 스타일을 가져오거나 설정합니다. |
| CollapsibleSpaceThreshold |
눈금 나누기를 그릴 차트의 공간 임계값을 가져오거나 설정합니다. |
| Enabled |
배율 구분선이 사용되는지 여부를 나타내는 플래그를 가져오거나 설정합니다. |
| LineColor |
눈금 구분선의 색을 가져오거나 설정합니다. |
| LineDashStyle |
눈금 구분선의 스타일을 가져오거나 설정합니다. |
| LineWidth |
눈금 구분선의 너비를 가져오거나 설정합니다. |
| MaxNumberOfBreaks |
차트에 표시할 최대 눈금 나누기 수를 가져오거나 설정합니다. |
| Spacing |
눈금 구분선 사이의 간격 간격을 가져오거나 설정합니다. 간격 간격은 Y축의 백분율로 표시됩니다. |
| StartFromZero |
눈금 나누기를 0에서 시작할지 여부를 나타내는 열거형 값을 가져오거나 설정합니다 StartFromZero . |
메서드
| Name | Description |
|---|---|
| Equals(Object) |
지정된 개체가 현재 개체와 같은지 여부를 확인합니다. (다음에서 상속됨 Object) |
| GetHashCode() |
기본 해시 함수로 사용됩니다. (다음에서 상속됨 Object) |
| GetType() |
현재 인스턴스의 Type 가져옵니다. (다음에서 상속됨 Object) |
| MemberwiseClone() |
현재 Object단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
| ToString() |
현재 개체를 나타내는 문자열을 반환합니다. (다음에서 상속됨 Object) |