1- namespace ChartjsDemo . Data
1+ using PSC . Blazor . Components . Chartjs . Models . Common ;
2+
3+ namespace ChartjsDemo . Data
24{
35 public static class LineDataExamples
46 {
57 public static List < string > SimpleLineText = new List < string > ( ) { "January" , "February" , "March" , "April" , "May" , "June" , "July" } ;
6- public static List < decimal > SimpleLine = new List < decimal > ( ) { 65 , 59 , 80 , 81 , 56 , 55 , 40 } ;
7- public static List < decimal > SimpleLine2 = new List < decimal > ( ) { 33 , 25 , 35 , 51 , 54 , 76 , 45 } ;
8+ public static List < decimal ? > SimpleLine = new List < decimal ? > ( ) { 65 , 59 , 80 , 81 , 86 , 55 , 40 } ;
9+ public static List < decimal ? > SimpleLine2 = new List < decimal ? > ( ) { 33 , 25 , 35 , 51 , 54 , 76 , 60 } ;
10+ public static List < decimal ? > SimpleLine3 = new List < decimal ? > ( ) { 53 , 91 , 39 , 61 , 39 , 87 , 23 } ;
811
912 // custom code
1013 public static List < string > CustomLineText = new List < string > ( ) { "January" , "February" , "March" , "April" , "May" , "June" } ;
11- public static List < decimal > CustomLine = new List < decimal > ( ) { 60 , 80 , 81 , 56 , 55 , 40 } ;
14+ public static List < decimal ? > CustomLine = new List < decimal ? > ( ) { 60 , 80 , 81 , 56 , 55 , 40 } ;
1215
1316 // multi axes
1417 public static List < string > MultiAxesLineText = new List < string > ( ) {
1518 "January;2015" , "February;2015;Y" , "March;2015" ,
1619 "January;2016" , "February;2016;Y" , "March;2016" } ;
17- public static List < decimal > MultiAxesLine = new List < decimal > ( ) { 12 , 19 , 3 , 5 , 2 , 3 } ;
20+ public static List < decimal ? > MultiAxesLine = new List < decimal ? > ( ) { 12 , 19 , 3 , 5 , 2 , 3 } ;
21+
22+ public static List < decimal ? > BreakLine = new List < decimal ? > ( ) { 0 , 20 , 20 , 60 , 60 , 120 , null , 180 , 120 , 125 , 105 , 110 , 170 } ;
23+ public static List < string > BreakLineText = new List < string > ( ) { "0" , "1" , "2" , "3" , "4" , "5" , "6" , "7" , "8" , "9" , "10" , "11" } ;
1824 }
1925}
0 commit comments