|
| 1 | +module Data |
| 2 | + |
| 3 | +open Fable.Core |
| 4 | + |
| 5 | +type [<Pojo>] Data = |
| 6 | + { name: string; uv: int; pv: int; amt: int } |
| 7 | + |
| 8 | +type [<Pojo>] Data01 = |
| 9 | + { day: string; weather: string } |
| 10 | + |
| 11 | +type [<Pojo>] RangeData = |
| 12 | + { day: string; temperature: int * int } |
| 13 | + |
| 14 | +let data = |
| 15 | + [| { name = "Page A"; uv = 4000; pv = 2400; amt = 2400 } |
| 16 | + { name = "Page B"; uv = 3000; pv = 1398; amt = 2210 } |
| 17 | + { name = "Page C"; uv = 2000; pv = 9800; amt = 2290 } |
| 18 | + { name = "Page D"; uv = 2780; pv = 3908; amt = 2000 } |
| 19 | + { name = "Page E"; uv = 1890; pv = 4800; amt = 2181 } |
| 20 | + { name = "Page F"; uv = 2390; pv = 3800; amt = 2500 } |
| 21 | + { name = "Page G"; uv = 3490; pv = 4300; amt = 2100 } |
| 22 | + |] |
| 23 | + |
| 24 | +let data01 = |
| 25 | + [| { day = "05-01"; weather = "sunny" } |
| 26 | + { day = "05-02"; weather = "sunny" } |
| 27 | + { day = "05-03"; weather = "cloudy" } |
| 28 | + { day = "05-04"; weather = "rain" } |
| 29 | + { day = "05-05"; weather = "rain" } |
| 30 | + { day = "05-06"; weather = "cloudy" } |
| 31 | + { day = "05-07"; weather = "cloudy" } |
| 32 | + { day = "05-08"; weather = "sunny" } |
| 33 | + { day = "05-09"; weather = "sunny" } |
| 34 | + |] |
| 35 | + |
| 36 | +let data02 = |
| 37 | + [| { name = "Page A"; uv = 4000; pv = 2400; amt = 2400 } |
| 38 | + { name = "Page B"; uv = 3000; pv = 1398; amt = 2210 } |
| 39 | + { name = "Page C"; uv = 2000; pv = 9800; amt = 2290 } |
| 40 | + { name = "Page D"; uv = 2780; pv = 3908; amt = 2000 } |
| 41 | + { name = "Page E"; uv = 1890; pv = 4800; amt = 2181 } |
| 42 | + |] |
| 43 | + |
| 44 | +let rangeData = |
| 45 | + [| { day = "05-01"; temperature = (-1, 10) } |
| 46 | + { day = "05-02"; temperature = (2, 15) } |
| 47 | + { day = "05-03"; temperature = (3, 12) } |
| 48 | + { day = "05-04"; temperature = (4, 12) } |
| 49 | + { day = "05-05"; temperature = (12, 16) } |
| 50 | + { day = "05-06"; temperature = (5, 16) } |
| 51 | + { day = "05-07"; temperature = (3, 12) } |
| 52 | + { day = "05-08"; temperature = (0, 8) } |
| 53 | + { day = "05-09"; temperature = (-3, 5) } |
| 54 | + |] |
0 commit comments