You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@
5
5
6
6
[](https://gitter.im/ChartJs-Blazor/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -24,12 +25,15 @@ You need an IDE that supports Blazor and .NET Core SDK 3.x+
24
25
25
26
## Installation
26
27
27
-
There's a NuGet package available: [ChartJs.Blazor](https://www.nuget.org/packages/ChartJs.Blazor/)
28
+
**Due to an [unfortunate situation](https://github.com/mariusmuntean/ChartJs.Blazor/issues/160), the new 2.0 release is only available in an [alternative NuGet package](https://www.nuget.org/packages/ChartJs.Blazor.Fork/) for the time being.**
29
+
The original NuGet is [ChartJs.Blazor](https://www.nuget.org/packages/ChartJs.Blazor/).
You can install it with the Package Manager in your IDE or alternatively using the command line:
30
34
31
35
```bash
32
-
dotnet add package ChartJs.Blazor
36
+
dotnet add package ChartJs.Blazor.Fork
33
37
```
34
38
35
39
## Usage
@@ -40,10 +44,10 @@ Before you can start creating a chart, you have to add some static assets to you
40
44
In your `_Host.cshtml` (server-side) or in your `index.html` (client-side) add the following lines to the `body` tag **after** the `_framework` reference.
If you are using a time scale (`TimeAxis`), you also need to include Moment.js.
@@ -135,7 +139,7 @@ Unfortunately, we're not up to date yet and many samples are missing. If you'd l
135
139
The [ChartJs.Blazor.Samples folder](./ChartJs.Blazor.Samples) contains the projects to showcase the samples. It's based on [Suchiman/BlazorDualMode](https://github.com/Suchiman/BlazorDualMode) and allows you to switch between the server- and the client-side Blazor mode.
136
140
137
141
The samples should always be up to date with the current development on master. That means that the code you see on master might not work for your version.
138
-
To browse the samples for the latest nuget version, see the [samples on the releases branch](https://github.com/mariusmuntean/ChartJs.Blazor/tree/releases/ChartJs.Blazor.Samples/Client/Pages) or select a specific tag.
142
+
To browse the samples for the latest NuGet version, see the [samples on the releases branch](https://github.com/mariusmuntean/ChartJs.Blazor/tree/releases/ChartJs.Blazor.Samples/Client/Pages) or select a specific tag.
139
143
If there's not a sample for your use-case on the releases branch, check out the master one. Maybe someone already contributed what you're looking for and if not, why not do it yourself :wink:
140
144
141
145
We would usually host the samples on https://www.iheartblazor.com but unfortunately, the version shown there is really old and we highly recommend downloading and running our samples on your machine.
0 commit comments