diff --git a/README.md b/README.md index 2160be9..ef13983 100644 --- a/README.md +++ b/README.md @@ -29,37 +29,26 @@ English | [简体中文](README-zh_CN.md) ```razor - @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, + }; } ```