Skip to content

Commit 299c8ad

Browse files
docs for double.NaN suopport
1 parent 8f1b3e9 commit 299c8ad

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

docs/cartesianChart/axes.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ chartControl.UpdateStarted +=
187187

188188
## Clearing the current zooming or panning
189189

190-
Setting `MinLimit` and `MaxLimit` properties to `null` will clear the current `zooming` or `panning`, and will let the chart fit the view
191-
of the chart to the available data in the chart, the default value of both properties is `null`.
190+
Setting `MinLimit` and `MaxLimit` properties to `null` or `double.NaN` will clear the current limits and fit the the data to the viewport.
192191

193192
## MinStep property
194193

docs/cartesianChart/overview.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,7 @@ method is called.
429429

430430
## Clearing the current zooming or panning
431431

432-
Setting `MinLimit` and `MaxLimit` properties to `null` will clear the current `zooming` or `panning`, and will let the chart fit the view
433-
of the chart to the available data in the chart, the default value of both properties is `null`.
432+
Setting `MinLimit` and `MaxLimit` properties to `null` or `double.NaN` will clear the current limits and fit the the data to the viewport.
434433

435434
{{ render this "~/shared/chart.md" }}
436435

docs/samples/lines/zoom/template.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ the max and min visible limits of the axis, default is `null` and `null` means t
9999

100100
# Clearing zooming and panning
101101

102-
Setting the axes `MinLimit` and `MaxLimit` properties to `null` will clear the current `zooming` or `panning`, and will let the chart fit the view
103-
of the chart to the available data in the chart, for example:
102+
Setting `MinLimit` and `MaxLimit` properties to `null` or `double.NaN` will clear the current limits and fit the the data to the viewport.
104103

105104
```c#
106105
// where myChart is a reference to the chart in the UI

src/LiveChartsCore/Kernel/Sketches/IPlane.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public interface IPlane : IChartElement
115115

116116
/// <summary>
117117
/// Gets or sets the minimum value visible in the axis, any point less than this value will be hidden,
118-
/// set it to null to use a value based on the smaller value in the chart.
118+
/// set it to null (or double.NaN) to use a value based on the smaller value in the chart.
119119
/// </summary>
120120
/// <value>
121121
/// The minimum value.
@@ -124,7 +124,7 @@ public interface IPlane : IChartElement
124124

125125
/// <summary>
126126
/// Gets or sets the maximum value visible in the axis, any point greater than this value will be hidden,
127-
/// set it null to use a value based on the greater value in the chart.
127+
/// set it null (or double.NaN) to use a value based on the greater value in the chart.
128128
/// </summary>
129129
/// <value>
130130
/// The maximum value.

0 commit comments

Comments
 (0)