Skip to content

Commit

Permalink
docs: Actual get started in README (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
CAPCHIK authored Apr 3, 2024
1 parent 514fbd8 commit d71cb7b
Showing 1 changed file with 16 additions and 27 deletions.
43 changes: 16 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,37 +29,26 @@ English | [简体中文](README-zh_CN.md)
```razor
<Line Data="data" Config="config" />
@code{
@code {
object[] data = new object[] {
new { year= "1991", value= 3 },
new { year= "1992", value= 4 },
new { year= "1993", value= 3.5 },
new { year= "1994", value= 5 },
new { year= "1995", value= 4.9 },
new { year= "1996", value= 6 },
new { year= "1997", value= 7 },
new { year= "1998", value= 9 },
new { year= "1999", value= 13 },
};
new { year = "1991", value = 3 },
new { year = "1992", value = 4 },
new { year = "1993", value = 3.5 },
new { year = "1994", value = 5 },
new { year = "1995", value = 4.9 },
new { year = "1996", value = 6 },
new { year = "1997", value = 7 },
new { year = "1998", value = 9 },
new { year = "1999", value = 13 },
};
LineConfig config = new LineConfig()
{
title = new Title()
{
visible = true,
text = "Line",
},
description = new Description()
{
visible = true,
text = "description",
},
padding = "auto",
forceFit = true,
xField = "year",
yField = "value",
smooth = true,
};
Padding = "auto",
XField = "year",
YField = "value",
Smooth = true,
};
}
```
Expand Down

0 comments on commit d71cb7b

Please sign in to comment.