Skip to content

Commit 3dabcf6

Browse files
committed
test bignumber
1 parent 6c178ea commit 3dabcf6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/bigNumber.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Testing the big number component
2+
3+
${Dash.BigNumber(1)}
4+
5+
<div class="card grid grid-cols-4">
6+
${Dash.BigNumber(1127)}
7+
${Dash.BigNumber(17, {secondary: 7, secondaryFormat: "+"})}
8+
${Dash.BigNumber(1e9 * Math.E, {format: "s", secondary: -2/3, secondaryFormat: ".1%"})}
9+
${Dash.BigNumber(1e9 * Math.E, {format: "s", secondary: -2/3, secondaryFormat: ".1%", secondaryColor: "steelblue"})}
10+
</div>
11+
12+
<div class="card grid grid-cols-4">
13+
${Dash.BigNumber(1127, {secondary: 0})}
14+
${Dash.BigNumber(10, {secondary: -7/17, secondaryFormat: ".0%", children: Plot.lineY({length: 100}, Plot.mapY("cumsum", {
15+
y: d3.randomNormal.source(d3.randomLcg(42))()
16+
})).plot({width: 300, height: 40, axis: false})})}
17+
${Dash.BigNumber(1e9 * Math.E, {format: "s", secondary: -2/3, secondaryFormat: ".1%"})}
18+
${Dash.BigNumber(1e9 * Math.E, {format: "s", secondary: -2/3, secondaryFormat: ".1%", secondaryColor: "steelblue", children: [html`<div>A bit of <em>explanation</em>.`, html`<div>Another bit of information.`]})}
19+
</div>

0 commit comments

Comments
 (0)