Skip to content

Commit ab67e87

Browse files
committed
Clean the code
2 parents 09bd87f + 5fe6202 commit ab67e87

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ _config1.Data.Datasets.Add(new Dataset()
105105

106106
The result of the code above is this chart
107107

108-
![image](https://user-images.githubusercontent.com/9497415/145194274-63997957-82ab-4b38-a2bf-bdd748c2b005.png)
108+
![image](https://user-images.githubusercontent.com/9497415/196674629-baaa69d2-24ab-484c-b35e-597cdd2b961c.png)
109109

110110
## Implemented charts
111111
- [x] Bar chart

src/Models/Common/HoverContext.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace PSC.Blazor.Components.Chartjs.Models.Common
1+
namespace PSC.Blazor.Components.Chartjs.Models.Common
82
{
93
/// <summary>
104
/// Hover Context

src/Models/Common/Options.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.AspNetCore.Components.Web;
22
using System.Threading.Tasks;
3+
using Microsoft.AspNetCore.Components.Web;
34

45
namespace PSC.Blazor.Components.Chartjs.Models.Common
56
{
@@ -106,5 +107,8 @@ public class Options : IOptions
106107
[JsonPropertyName("scales")]
107108
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
108109
public Dictionary<string, Axis> Scales { get; set; }
110+
111+
[JsonIgnore]
112+
public Func<MouseEventArgs, ValueTask>? OnMouseOutAsync { get; set; }
109113
}
110114
}

0 commit comments

Comments
 (0)