Skip to content

Commit 6a7ed5d

Browse files
committed
upgrade samples
1 parent e1a72b3 commit 6a7ed5d

16 files changed

+47
-284
lines changed

samples/animation.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="../node_modules/chart.js/dist/Chart.bundle.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0-alpha/dist/Chart.js"></script>
66
<script src="../build/Chart.BoxPlot.js" type="text/javascript"></script>
77
<style>
88
canvas {
@@ -52,13 +52,11 @@
5252
text: 'Chart.js Box Plot Chart',
5353
},
5454
scales: {
55-
xAxes: [
56-
{
57-
// Specific to Bar Controller
58-
categoryPercentage: 0.9,
59-
barPercentage: 0.8,
60-
},
61-
],
55+
x: {
56+
// Specific to Bar Controller
57+
categoryPercentage: 0.9,
58+
barPercentage: 0.8,
59+
},
6260
},
6361
},
6462
});

samples/chartjs291.html

Lines changed: 0 additions & 134 deletions
This file was deleted.

samples/datalimits.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="../node_modules/chart.js/dist/Chart.bundle.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0-alpha/dist/Chart.js"></script>
66
<script src="../build/Chart.BoxPlot.js" type="text/javascript"></script>
77
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.js"></script>
88
<script src="./utils.js"></script>
@@ -56,15 +56,9 @@
5656
display: true,
5757
text: 'Chart.js Box Plot Chart',
5858
},
59-
scales: {
60-
yAxes: [
61-
{
62-
ticks: {
63-
minStats: 'min',
64-
maxStats: 'max',
65-
},
66-
},
67-
],
59+
boxplot: {
60+
minStats: 'min',
61+
maxStats: 'max',
6862
},
6963
};
7064

samples/datastructures.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="../node_modules/chart.js/dist/Chart.bundle.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0-alpha/dist/Chart.js"></script>
66
<script src="../build/Chart.BoxPlot.js" type="text/javascript"></script>
77
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.js"></script>
88
<script src="./utils.js"></script>

samples/empty.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="../node_modules/chart.js/dist/Chart.bundle.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0-alpha/dist/Chart.js"></script>
66
<script src="../build/Chart.BoxPlot.js" type="text/javascript"></script>
77
<style>
88
canvas {
@@ -52,13 +52,11 @@
5252
text: 'Chart.js Box Plot Chart',
5353
},
5454
scales: {
55-
xAxes: [
56-
{
57-
// Specific to Bar Controller
58-
categoryPercentage: 0.9,
59-
barPercentage: 0.8,
60-
},
61-
],
55+
x: {
56+
// Specific to Bar Controller
57+
categoryPercentage: 0.9,
58+
barPercentage: 0.8,
59+
},
6260
},
6361
},
6462
});

samples/fivenum.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="../node_modules/chart.js/dist/Chart.bundle.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0-alpha/dist/Chart.js"></script>
66
<script src="../build/Chart.BoxPlot.js" type="text/javascript"></script>
77
<style>
88
canvas {
@@ -52,14 +52,8 @@
5252
display: true,
5353
text: 'Quantiles type 7',
5454
},
55-
scales: {
56-
yAxes: [
57-
{
58-
ticks: {
59-
quantiles: 'quantiles',
60-
},
61-
},
62-
],
55+
boxplot: {
56+
quantiles: 'quantiles',
6357
},
6458
},
6559
});

samples/horizontalBoxplot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Horizontal Bar Chart</title>
5-
<script src="../node_modules/chart.js/dist/Chart.bundle.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0-alpha/dist/Chart.js"></script>
66
<script src="../build/Chart.BoxPlot.js" type="text/javascript"></script>
77
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.js"></script>
88
<script src="./utils.js"></script>

samples/horizontalViolin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Violin Chart</title>
5-
<script src="../node_modules/chart.js/dist/Chart.bundle.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0-alpha/dist/Chart.js"></script>
66
<script src="../build/Chart.BoxPlot.js" type="text/javascript"></script>
77
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.js"></script>
88
<script src="./utils.js"></script>

samples/hybrid.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="../node_modules/chart.js/dist/Chart.bundle.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0-alpha/dist/Chart.js"></script>
66
<script src="../build/Chart.BoxPlot.js" type="text/javascript"></script>
77
<script src="./utils.js"></script>
88
<style>
@@ -57,13 +57,6 @@
5757
display: true,
5858
text: 'Chart.js Box Plot and Line Chart',
5959
},
60-
scales: {
61-
yAxes: [
62-
{
63-
type: 'arrayLinear',
64-
},
65-
],
66-
},
6760
},
6861
});
6962
};

samples/ie11.html

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)