File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using System . Linq ;
21using Microsoft . AspNetCore . Components ;
2+ using Microsoft . AspNetCore . Components . Web ;
33using Microsoft . JSInterop ;
44using System . Threading . Tasks ;
5- using Microsoft . AspNetCore . Components . Web ;
65
76namespace PSC . Blazor . Components . Chartjs
87{
@@ -123,9 +122,9 @@ public static Task ChartClick(int indexValue)
123122 }
124123
125124 [ JSInvokable ]
126- public static string [ ] TooltipCallbacksLabel ( DotNetObjectReference < IChartConfig > config , int [ ] parameters )
125+ public static string [ ] TooltipCallbacksLabel ( DotNetObjectReference < IChartConfig > config , int [ ] parameters )
127126 {
128- var ctx = new TooltipContext ( parameters [ 0 ] , parameters [ 1 ] ) ;
127+ var ctx = new TooltipContext ( parameters [ 0 ] , parameters [ 1 ] ) ;
129128 if ( config . Value . Options is Options options )
130129 return options . Plugins . Tooltip . Callbacks . Label ( ctx ) ;
131130 else
Original file line number Diff line number Diff line change 11.chart-container {
2- display : inline-block;
32 position : relative;
4- width : 100% ;
53}
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ public interface IChartConfig
44 {
55 string CanvasId { get ; }
66 string Type { get ; set ; }
7- IOptions Options { get ; }
7+ IOptions Options { get ; }
88 }
99}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public sealed class Callbacks
1515 /// </value>
1616 [ JsonInclude ]
1717 [ JsonPropertyName ( "hasLabel" ) ]
18- public bool HasLabel => Label != null ;
18+ public bool HasLabel => Label != null ;
1919
2020 /// <summary>
2121 /// Gets or sets the label.
@@ -24,6 +24,6 @@ public sealed class Callbacks
2424 /// The label.
2525 /// </value>
2626 [ JsonIgnore ]
27- public Func < TooltipContext , string [ ] > ? Label { get ; set ; }
27+ public Func < TooltipContext , string [ ] > ? Label { get ; set ; }
2828 }
2929}
Original file line number Diff line number Diff line change 11using Microsoft . AspNetCore . Components . Web ;
22using System . Threading . Tasks ;
3- using Microsoft . AspNetCore . Components . Web ;
43
54namespace PSC . Blazor . Components . Chartjs . Models . Common
65{
@@ -107,8 +106,5 @@ public class Options : IOptions
107106 [ JsonPropertyName ( "scales" ) ]
108107 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
109108 public Dictionary < string , Axis > Scales { get ; set ; }
110-
111- [ JsonIgnore ]
112- public Func < MouseEventArgs , ValueTask > ? OnMouseOutAsync { get ; set ; }
113109 }
114110}
Original file line number Diff line number Diff line change 33 /// <summary>
44 /// Tooltip Context
55 /// </summary>
6- public readonly record struct TooltipContext ( int DatasetIndex , int DataIndex )
6+ public readonly record struct TooltipContext ( int DatasetIndex , int DataIndex )
77 {
88 }
99}
Original file line number Diff line number Diff line change @@ -13521,5 +13521,4 @@ if (typeof window !== 'undefined') {
1352113521}
1352213522
1352313523return Chart ;
13524-
13525- } ) ) ;
13524+ } ) ) ;
You can’t perform that action at this time.
0 commit comments