-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLogExamples.stories.tsx
More file actions
87 lines (78 loc) · 2.13 KB
/
LogExamples.stories.tsx
File metadata and controls
87 lines (78 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import type { Meta } from '@storybook/react-vite';
import { HorizontalExample, VerticalExample } from './TestAxis.js';
export default {
title: 'Hooks/static/useLogTicks',
component: HorizontalExample || VerticalExample,
} as Meta;
interface Props {
domain: [number, number];
scientificNotation: boolean;
}
export function HorizontalCentaines(props: Props) {
return <HorizontalExample {...props} type="log" />;
}
HorizontalCentaines.args = {
domain: [10, 100000],
scientificNotation: false,
};
HorizontalCentaines.storyName = 'Horizontal positive powers';
export function HorizontalDecimals() {
return (
<HorizontalExample
domain={[0.0000001, 100]}
scientificNotation={false}
type="log"
/>
);
}
HorizontalDecimals.storyName = 'Horizontal negative values';
export function HorizontalScientificCentaines() {
return (
<HorizontalExample domain={[10, 100000]} scientificNotation type="log" />
);
}
HorizontalScientificCentaines.storyName =
'Horizontal scientific positive powers';
export function HorizontalScientificDecimals() {
return (
<HorizontalExample
domain={[0.0000001, 100]}
scientificNotation
type="log"
/>
);
}
HorizontalScientificDecimals.storyName =
'Horizontal scientific negative values';
export function VerticalCentaines() {
return (
<VerticalExample
domain={[10, 100000]}
scientificNotation={false}
type="log"
/>
);
}
VerticalCentaines.storyName = 'Vertical positive powers';
export function VerticalDecimals() {
return (
<VerticalExample
domain={[0.0000001, 100]}
scientificNotation={false}
type="log"
/>
);
}
VerticalDecimals.storyName = 'Vertical negative values';
export function VerticalScientificCentaines() {
return (
<VerticalExample domain={[10, 100000]} scientificNotation type="log" />
);
}
VerticalScientificCentaines.storyName = 'Vertical scientific positive powers';
export function VerticalScientificDecimals() {
return (
<VerticalExample domain={[0.0000001, 100]} scientificNotation type="log" />
);
}
VerticalScientificDecimals.storyName = 'Vertical scientific negative values';