DxPolarChartValueAxis.LinearThreshold Property
Specifies a value used to calculate the range on a logarithmic axis within which the axis should be linear. Applies only if the data source contains negative values or zeroes.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(null)]
[Parameter]
public int? LinearThreshold { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Nullable<Int32> | null | The threshold value. |
Remarks
Set an axis Type property to Logarithmic
to display logarithmic values using a base of 10
. If you need to display data with another base, assign an integer value to the LogarithmBase property. To reduce the number of small axis values rendered, specify the LinearThreshold
property.
In the following example, the LinearThreshold
value is 4
and the Polar Chart does not render 3 data points of a series.
<DxPolarChart Data="@GetData()">
<DxChartLegend Visible="false" />
<DxPolarChartArgumentAxis Type="ChartAxisType.Discrete"
StartAngle="25" />
<DxPolarChartValueAxis Type="ChartAxisType.Logarithmic"
LogarithmBase="2"
LinearThreshold="4" />
<DxPolarChartLineSeries ArgumentField="@((DataPoint s) => s.Argument)"
ValueField="@((DataPoint s) => s.Value)"
Closed="false" />
</DxPolarChart>
@code {
List<DataPoint> GetData() {
List<DataPoint> result = new List<DataPoint>(11);
result.Add(new DataPoint("Silence", 0));
result.Add(new DataPoint("Breathing", 0.075));
result.Add(new DataPoint("Whisper", 0.15));
result.Add(new DataPoint("Street noise", 8));
result.Add(new DataPoint("Jackhammer", 32));
result.Add(new DataPoint("Subway train", 64));
result.Add(new DataPoint("Loud music", 128));
result.Add(new DataPoint("Pain threshold", 256));
result.Add(new DataPoint("Buzzer", 512));
result.Add(new DataPoint("Rocket launch", 2048));
result.Add(new DataPoint("Deadly level", 16348));
return result;
}
struct DataPoint {
public DataPoint (string argument, double value) { Argument = argument; Value = value; }
public string Argument { get; set; }
public double Value { get; set; }
}
}