Skip to content

Commit

Permalink
doc: Update document.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 8, 2024
1 parent 625562a commit a8a513c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const value = [
{ date: '2016/01/11', count: 2 },
{ date: '2016/01/12', count: 20 },
{ date: '2016/01/13', count: 10 },
...[...Array(17)].map((_, idx) => ({ date: `2016/02/${idx + 10}`, count: idx, content: '' })),
...[...Array(17)].map((_, idx) => ({
date: `2016/02/${idx + 10}`, count: idx, content: ''
})),
{ date: '2016/04/11', count: 2 },
{ date: '2016/05/01', count: 5 },
{ date: '2016/05/02', count: 5 },
Expand Down Expand Up @@ -154,7 +156,14 @@ const Demo = () => {
const [range, setRange] = useState(5)
return (
<div>
<input type="range" min="0" max="5" step="0.1" value={range} onChange={(e) => setRange(e.target.value)} /> {range}
<input
type="range"
min="0"
max="5"
step="0.1"
value={range}
onChange={(e) => setRange(e.target.value)}
/> {range}
<HeatMap
value={value}
width={600}
Expand Down

0 comments on commit a8a513c

Please sign in to comment.