Add support for chart.js version parameter (#4)

This commit is contained in:
Ian Webster 2021-11-07 15:18:15 -08:00 committed by GitHub
parent fbb6deee1a
commit 3735d4d181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 2 deletions

View file

@ -26,13 +26,14 @@ Chart qc = new Chart();
qc.Width = 500;
qc.Height = 300;
qc.Version = "2.9.4";
qc.Config = @"{
type: 'bar',
data: {
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
datasets: [{
label: 'Users',
data: [50, 60, 70, 180]
label: 'Users',
data: [50, 60, 70, 180]
}]
}
}";
@ -80,6 +81,9 @@ The device pixel ratio of the chart. This will multiply the number of pixels by
#### Format: string
The output format of the chart. Defaults to "png"
#### Version: string
Chart.js version (not required)
#### Key: string
API key (not required)