A numeric implementation of
Description
Notes
Example
| Example: Using NumericAxis-of to specify a fixed-range axis | |
![]() | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{LayeredChart
width = 15cm,
height = 6cm,
left-axis = {new {NumericAxis-of double}, 0, 70},
{BarLayer
{ChartDataSeries sample-records, "Age"},
{ChartDataSeries sample-records, "Points"},
{ChartDataSeries sample-records, "Wins"},
x-axis-data = {ChartDataSeries sample-records, "Name"}
}
}
|
| Create a new NumericAxis-of. |
| The maximum value for this axis. |
| The actual maximum displayed value on this axis. |
| The minimum value for this axis. |
| The actual minimum displayed value on this axis. |
| The actual number of ticks displayed on this axis. |
| Generate an axis label appropriate for this ChartAxis. |
| Generate all |
| Generate all |
| Describes the way in which a |
| Get the spatial position along this axis corresponding with zero. |
| Calculate the spatial position corresponding to a data value. |
| Calculate the data value that corresponds with a position along this axis. |
| Notify this axis that the contents of |
| Apply (or remove) a constraint to the bounds used by this axis in |
| Set the range of this axis. |
Create a new NumericAxis-of.
Example
The maximum value for this axis.
Description
Notes
The actual maximum displayed value on this axis.
Description
The minimum value for this axis.
Description
Notes
The actual minimum displayed value on this axis.
Description
The actual number of ticks displayed on this axis.
Description
Generate an axis label appropriate for this ChartAxis.
Returns
Description
Notes
Generate all
Description
Generate all
Description
Describes the way in which a
Returns
Description
| AxisDataType | Type of value | Description |
| AxisDataType.data-series | {Array-of ChartDataSeries} | This axis is directly associated with one or more |
| AxisDataType.record-field | {Array-of RecordField} | This axis is directly associated with one or more |
| AxisDataType.field-name | {Array-of String} | In a manner very similar to AxisDataType.record-field, this axis is associated with one or more record fields by name. Data will be matched to this axis if it uses a field of the same name. The field names used are returned in an array. |
| AxisDataType.type | The axis defines itself only as measuring a certain Type. | |
| AxisDataType.record-index | none (null) | This axis simply puts one |
Get the spatial position along this axis corresponding with zero.
Description
Notes
Calculate the spatial position corresponding to a data value.
Returns
Description
Calculate the data value that corresponds with a position along this axis.
Returns
Description
Notify this axis that the contents of
Description
Apply (or remove) a constraint to the bounds used by this axis in
Description
Notes
Example
| Example: Using NumericAxisMixin-of.set-forced-range | |
![]() | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{let constant axis:{NumericDataSeriesAxis-of double} =
{new {NumericDataSeriesAxis-of double},
{ChartDataSeries sample-records, "Age"},
{ChartDataSeries sample-records, "Points"},
force-zero? = false,
force-range? = true,
force-range-strict? = false,
forced-min = 1.5,
forced-max = 7.5
}
}
{LayeredChart
width = 15cm,
height = 7cm,
left-axis = axis,
{LineLayer
sample-records,
"Age",
"Points",
x-axis-data =
{ChartDataSeries sample-records, "Name"}
}
}
{Table
columns = 2,
{text forced-min:},
{TextField
value = "" & axis.forced-min,
{on ValueFinished at tf:TextField do
{axis.set-forced-range
axis.force-range?,
force-range-strict? = axis.force-range-strict?,
forced-min = {tf.value.to-double},
forced-max = axis.forced-max
}
}
},
{text forced-max:},
{TextField
value = "" & axis.forced-max,
{on ValueFinished at tf:TextField do
{axis.set-forced-range
axis.force-range?,
force-range-strict? = axis.force-range-strict?,
forced-min = axis.forced-min,
forced-max = {tf.value.to-double}
}
}
}
}
{CheckButton
label = "force-range?",
value = axis.force-range?,
{on ValueFinished at cb:CheckButton do
{axis.set-forced-range
cb.value,
force-range-strict? = axis.force-range-strict?,
forced-min = axis.forced-min,
forced-max = axis.forced-max
}
}
}
{CheckButton
label = "force-range-strict?",
value = axis.force-range-strict?,
{on ValueFinished at cb:CheckButton do
{axis.set-forced-range
axis.force-range?,
force-range-strict? = cb.value,
forced-min = axis.forced-min,
forced-max = axis.forced-max
}
}
}
|
Set the range of this axis.
Description