Skip to content

Commit

Permalink
Merge pull request #358 from ipax77/dev2
Browse files Browse the repository at this point in the history
pax.BlazorChartJs v0.6.0 / ChartJs v4.4.0
  • Loading branch information
ipax77 authored Aug 28, 2023
2 parents 99ac1ee + 400f0a3 commit c306f65
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/pax.dsstats.web/Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
builder.Services.AddBlazoredToast();
builder.Services.AddChartJs(options =>
{
options.ChartJsLocation = "/_content/sc2dsstats.razorlib/js/chart.umd.js";
options.ChartJsLocation = "/_content/sc2dsstats.razorlib/js/chart.js";
options.ChartJsPluginDatalabelsLocation = "/_content/sc2dsstats.razorlib/js/chartjs-plugin-datalabels.min.js";
//options.ChartJsLocation = "/js/chart.js";
//options.ChartJsPluginDatalabelsLocation = "/js/chartjs-plugin-datalabels.js";
Expand Down
2 changes: 1 addition & 1 deletion src/sc2dsstats.maui/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static MauiApp CreateMauiApp()
builder.Services.AddBlazoredToast();
builder.Services.AddChartJs(options =>
{
options.ChartJsLocation = "/_content/sc2dsstats.razorlib/js/chart.umd.js";
options.ChartJsLocation = "/_content/sc2dsstats.razorlib/js/chart.js";
options.ChartJsPluginDatalabelsLocation = "/_content/sc2dsstats.razorlib/js/chartjs-plugin-datalabels.min.js";
});

Expand Down
2 changes: 1 addition & 1 deletion src/sc2dsstats.razorlib/Stats/StatsChartComponent.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ private bool SetRadarChartConfig(StatsRequest statsRequest)
{
R = new LinearRadialAxis()
{
AngelLines = new AngelLines()
AngleLines = new AngleLines()
{
Display = true,
Color = "#f2f2f233"
Expand Down
2 changes: 1 addition & 1 deletion src/sc2dsstats.razorlib/Stats/Synergy/SynergyChart.razor
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
{
R = new LinearRadialAxis()
{
AngelLines = new AngelLines()
AngleLines = new AngleLines()
{
Display = true,
Color = "#f2f2f233"
Expand Down
2 changes: 1 addition & 1 deletion src/sc2dsstats.razorlib/sc2dsstats.razorlib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageReference Include="MathNet.Numerics" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.21" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="6.0.21" />
<PackageReference Include="pax.BlazorChartJs" Version="0.5.1" />
<PackageReference Include="pax.BlazorChartJs" Version="0.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down
20 changes: 20 additions & 0 deletions src/sc2dsstats.razorlib/wwwroot/js/chart.js

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions src/sc2dsstats.razorlib/wwwroot/js/chart.umd.js

This file was deleted.

0 comments on commit c306f65

Please sign in to comment.