连续性的映射
LinearScale
01 Syntax
Microsoft.VisualBasic.Imaging.d3js.scale.LinearScale
02 Methods
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| valueDomain | 1 | 作图的时候的用户数据区间 |
| domainSize | 1 | DoubleRange.Length value of LinearScale.valueDomain |
| Value | 1 | 将图形数据映射为实际的像素位置 |
04 Fields
05 Members
#ctor(
Boolean)Constructs a new continuous scale with the unit domain [0, 1], the unit range [0, 1], the default interpolator and clamping disabled. Linear scales are a good default choice for continuous quantitative data because they preserve proportional differences. Each range value y can be expressed as a function of the domain value x: y = mx + b.
domain(
IEnumerable(Of Double))输入的绘图数据,建议输入由原始数据所计算出来的Ticks的结果
Parameters
| Name | Type | Description |
|---|---|---|
values | IEnumerable(Of Double) | - |
domain(
IEnumerable(Of String))设置绘图的值区间
Parameters
| Name | Type | Description |
|---|---|---|
values | IEnumerable(Of String) | - |
domain(
IEnumerable(Of Int32))设置绘图的值区间
Parameters
| Name | Type | Description |
|---|---|---|
values | IEnumerable(Of Int32) | - |
domain(
IEnumerable(Of Single))设置绘图的值区间
Parameters
| Name | Type | Description |
|---|---|---|
singles | IEnumerable(Of Single) | - |
valueDomain
作图的时候的用户数据区间
domainSize
DoubleRange.Length value of LinearScale.valueDomain
Value(
Double)将图形数据映射为实际的像素位置
Parameters
| Name | Type | Description |
|---|---|---|
x | Double | - |
_domain
作图的时候的用户数据区间
_reverse
适用于Y坐标轴数据的映射,因为Y坐标轴与绘制的像素Y之间是反过来的关系