@@ -46,7 +46,7 @@ With this approach, the items in each series are independent from the other seri
4646 </TelerikChartCategoryAxes>
4747</TelerikChart>
4848
49- @functions {
49+ @code {
5050 public List<object> data1 = new List<object>() { 1, 2, 3, 4 };
5151 public List<object> data2 = new List<object>() { 2, 3, 4, 5 };
5252 public string[] xAxisItems = new string[] { "Q1", "Q2", "Q3", "Q4" };
@@ -84,7 +84,7 @@ With this, the items from the series will be matched to the items (categories) o
8484 </TelerikChartSeriesItems>
8585</TelerikChart>
8686
87- @functions {
87+ @code {
8888 public class MyDataModel
8989 {
9090 public string MySharedCategories { get; set; }
@@ -122,7 +122,7 @@ With this, the items from the series will be matched to the items (categories) o
122122 </TelerikChartSeriesItems>
123123</TelerikChart>
124124
125- @functions {
125+ @code {
126126 public class MyDataModel
127127 {
128128 public string FirstSeriesCategories { get; set; }
@@ -163,7 +163,7 @@ With this, the items from the series will be matched to the items (categories) o
163163 </TelerikChartSeriesItems>
164164</TelerikChart>
165165
166- @functions {
166+ @code {
167167 public class MyDataModel
168168 {
169169 public string FirstSeriesCategories { get; set; }
@@ -215,7 +215,7 @@ For example, you can take the data for some series from a complex model, and the
215215 </TelerikChartCategoryAxes>
216216</TelerikChart>
217217
218- @functions {
218+ @code {
219219 public List<object> standaloneData = new List<object>() { 3, 4, 5, 6 };
220220 public string[] xAxisItems = new string[] { "Q1", "Q2", "Q3", "Q4" };
221221
@@ -260,7 +260,7 @@ For example, you can take the data for some series from a complex model, and the
260260 </TelerikChartCategoryAxes>
261261</TelerikChart>
262262
263- @functions {
263+ @code {
264264 public List<object> standaloneData = new List<object>() { 3, 4, 5, 6 };
265265
266266 //the standalone categories will be ignored if they are data bound from a series configuration
0 commit comments