Skip to content

Commit a5e7f8d

Browse files
author
workaholicpanda
committed
chore: fix typos and update CHANGELOG to specify the acceptable value range for slider
1 parent c2ddb67 commit a5e7f8d

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
100100
dcc.Slider(0, 100)
101101
```
102102

103-
The SI units used in `marks` are:
104-
105-
* `z` - zepto, 10⁻²¹
106-
* `a` - atto, 10⁻¹⁸
107-
* `f` - femto, 10⁻¹⁵
108-
* `p` - pico, 10⁻¹²
109-
* `n` - nano, 10⁻⁹
103+
The SI units and ranges supported in `marks` are:
110104
* `µ` - micro, 10⁻⁶
111105
* `m` - milli, 10⁻³
112106
* `​` (none) - 10⁰
@@ -116,7 +110,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
116110
* `T` - tera, 10¹²
117111
* `P` - peta, 10¹⁵
118112
* `E` - exa, 10¹⁸
119-
* `Z` - zetta, 10²¹
113+
114+
_Ranges below 10µ are not supported by the Slider. This is a bug: https://github.com/plotly/dash/issues/1766_
120115

121116
**`DataTable`**
122117

components/dash-core-components/tests/integration/misc/test_bcdp_auto_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
def test_msps002_auto_id_assert(dash_dcc):
55
app = Dash(__name__)
66

7-
input1 = dcc.Input(value="Hello")
8-
input2 = dcc.Input(value="Hello")
7+
input1 = dcc.Input(value="Hello Input 1")
8+
input2 = dcc.Input(value="Hello Input 2")
99
input3 = dcc.Input(value=3)
1010
output1 = html.Div()
1111
output2 = html.Div()

components/dash-core-components/tests/integration/sliders/test_sliders_shorthands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def test_slsh002_sliders_marks_si_unit_format(dash_dcc):
180180
dcc.Slider(min, max, value=0.4 * max),
181181
dcc.RangeSlider(min, max, value=[0.2 * max, 0.4 * max]),
182182
html.Div(f"value=0.5 * 10^{n}"),
183-
dcc.Slider(min, max, value=0.4 * max),
183+
dcc.Slider(min, max, value=0.5 * max),
184184
dcc.RangeSlider(min, max, value=[0.2 * max, 0.5 * max]),
185185
]
186186
)

0 commit comments

Comments
 (0)