├── README.md
├── chartjs
├── Chart.bundle.js
├── Chart.bundle.min.js
├── Chart.js
├── Chart.min.js
├── LICENSE.md
└── samples
│ ├── advanced
│ ├── data-labelling.html
│ └── progress-bar.html
│ ├── charts
│ ├── area
│ │ ├── analyser.js
│ │ ├── line-boundaries.html
│ │ ├── line-datasets.html
│ │ ├── line-stacked.html
│ │ └── radar.html
│ ├── bar
│ │ ├── horizontal.html
│ │ ├── multi-axis.html
│ │ ├── stacked-group.html
│ │ ├── stacked.html
│ │ └── vertical.html
│ ├── bubble.html
│ ├── combo-bar-line.html
│ ├── doughnut.html
│ ├── line
│ │ ├── basic.html
│ │ ├── interpolation-modes.html
│ │ ├── line-styles.html
│ │ ├── multi-axis.html
│ │ ├── point-sizes.html
│ │ ├── point-styles.html
│ │ ├── skip-points.html
│ │ └── stepped.html
│ ├── pie.html
│ ├── polar-area.html
│ ├── radar-skip-points.html
│ ├── radar.html
│ └── scatter
│ │ ├── basic.html
│ │ └── multi-axis.html
│ ├── favicon.ico
│ ├── index.html
│ ├── legend
│ ├── point-style.html
│ └── positioning.html
│ ├── logo.svg
│ ├── samples.js
│ ├── scales
│ ├── filtering-labels.html
│ ├── gridlines-display.html
│ ├── gridlines-style.html
│ ├── linear
│ │ ├── min-max-suggested.html
│ │ ├── min-max.html
│ │ └── step-size.html
│ ├── logarithmic
│ │ ├── line.html
│ │ └── scatter.html
│ ├── multiline-labels.html
│ ├── non-numeric-y.html
│ ├── time
│ │ ├── combo.html
│ │ ├── financial.html
│ │ ├── line-point-data.html
│ │ └── line.html
│ └── toggle-scale-type.html
│ ├── scriptable
│ └── bubble.html
│ ├── style.css
│ ├── tooltips
│ ├── border.html
│ ├── callbacks.html
│ ├── custom-line.html
│ ├── custom-pie.html
│ ├── custom-points.html
│ ├── interactions.html
│ └── positioning.html
│ └── utils.js
├── index.php
└── koneksi.php
/README.md:
--------------------------------------------------------------------------------
1 | # grafik-dari-database-php-dan-mysqli
2 | Tutorial menampilkan data dalam grafik chart.js dengan PHP dan MySQLi
3 |
4 | Tutorial https://www.malasngoding.com/membuat-grafik-dari-database-mysql-dan-php-dengan-chart-js/
5 |
--------------------------------------------------------------------------------
/chartjs/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2018 Chart.js Contributors
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
--------------------------------------------------------------------------------
/chartjs/samples/advanced/data-labelling.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Labelling Data Points
7 |
8 |
9 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
129 |
130 |
131 |
132 |
--------------------------------------------------------------------------------
/chartjs/samples/advanced/progress-bar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Animation Callbacks
5 |
6 |
7 |
14 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/area/analyser.js:
--------------------------------------------------------------------------------
1 | /* global Chart */
2 |
3 | 'use strict';
4 |
5 | (function() {
6 | Chart.plugins.register({
7 | id: 'samples-filler-analyser',
8 |
9 | beforeInit: function(chart, options) {
10 | this.element = document.getElementById(options.target);
11 | },
12 |
13 | afterUpdate: function(chart) {
14 | var datasets = chart.data.datasets;
15 | var element = this.element;
16 | var stats = [];
17 | var meta, i, ilen, dataset;
18 |
19 | if (!element) {
20 | return;
21 | }
22 |
23 | for (i = 0, ilen = datasets.length; i < ilen; ++i) {
24 | meta = chart.getDatasetMeta(i).$filler;
25 | if (meta) {
26 | dataset = datasets[i];
27 | stats.push({
28 | fill: dataset.fill,
29 | target: meta.fill,
30 | visible: meta.visible,
31 | index: i
32 | });
33 | }
34 | }
35 |
36 | this.element.innerHTML = '' +
37 | '' +
38 | 'Dataset | ' +
39 | 'Fill | ' +
40 | 'Target (visibility) | ' +
41 | '
' +
42 | stats.map(function(stat) {
43 | var target = stat.target;
44 | var row =
45 | '' + stat.index + ' | ' +
46 | '' + JSON.stringify(stat.fill) + ' | ';
47 |
48 | if (target === false) {
49 | target = 'none';
50 | } else if (isFinite(target)) {
51 | target = 'dataset ' + target;
52 | } else {
53 | target = 'boundary "' + target + '"';
54 | }
55 |
56 | if (stat.visible) {
57 | row += '' + target + ' | ';
58 | } else {
59 | row += '(hidden) | ';
60 | }
61 |
62 | return '' + row + '
';
63 | }).join('') + '
';
64 | }
65 | });
66 | }());
67 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/area/line-boundaries.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | area > boundaries | Chart.js sample
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
120 |
121 |
122 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/area/line-datasets.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | area > datasets | Chart.js sample
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
159 |
160 |
161 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/area/line-stacked.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
181 |
182 |
183 |
184 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/area/radar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | area > radar | Chart.js sample
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
138 |
139 |
140 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/bar/horizontal.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Horizontal Bar Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
147 |
148 |
149 |
150 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/bar/multi-axis.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Bar Chart Multi Axis
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
106 |
107 |
108 |
109 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/bar/stacked-group.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Stacked Bar Chart with Groups
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
103 |
104 |
105 |
106 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/bar/stacked.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Stacked Bar Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
100 |
101 |
102 |
103 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/bar/vertical.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Bar Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
142 |
143 |
144 |
145 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/bubble.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Bubble Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
189 |
190 |
191 |
192 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/combo-bar-line.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Combo Bar-Line Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
99 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/doughnut.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Doughnut Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
142 |
143 |
144 |
145 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/line/basic.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
161 |
162 |
163 |
164 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/line/interpolation-modes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart - Cubic interpolation mode
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
101 |
102 |
103 |
104 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/line/line-styles.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Styles
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
109 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/line/multi-axis.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart Multiple Axes
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
102 |
103 |
104 |
105 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/line/point-sizes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Different Point Sizes
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
127 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/line/point-styles.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart
6 |
7 |
8 |
27 |
28 |
29 |
30 |
31 |
32 |
94 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/line/skip-points.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/line/stepped.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Stepped Line Chart
6 |
7 |
8 |
27 |
28 |
29 |
30 |
31 |
32 |
101 |
102 |
103 |
104 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/pie.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Pie Chart
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
95 |
96 |
97 |
98 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/polar-area.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Polar Area Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
115 |
116 |
117 |
118 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/radar-skip-points.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Radar Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
107 |
108 |
109 |
110 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/radar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Radar Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
144 |
145 |
146 |
147 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/scatter/basic.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Scatter Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
105 |
106 |
107 |
108 |
--------------------------------------------------------------------------------
/chartjs/samples/charts/scatter/multi-axis.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Scatter Chart Multi Axis
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
137 |
138 |
139 |
140 |
--------------------------------------------------------------------------------
/chartjs/samples/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Chart.js samples
12 |
13 |
14 |
27 |
28 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/chartjs/samples/legend/point-style.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Legend Point Style
6 |
7 |
8 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
114 |
115 |
116 |
117 |
--------------------------------------------------------------------------------
/chartjs/samples/legend/positioning.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Legend Positions
6 |
7 |
8 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
119 |
120 |
121 |
122 |
--------------------------------------------------------------------------------
/chartjs/samples/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/chartjs/samples/samples.js:
--------------------------------------------------------------------------------
1 | (function(global) {
2 |
3 | var Samples = global.Samples || (global.Samples = {});
4 |
5 | Samples.items = [{
6 | title: 'Bar charts',
7 | items: [{
8 | title: 'Vertical',
9 | path: 'charts/bar/vertical.html'
10 | }, {
11 | title: 'Horizontal',
12 | path: 'charts/bar/horizontal.html'
13 | }, {
14 | title: 'Multi axis',
15 | path: 'charts/bar/multi-axis.html'
16 | }, {
17 | title: 'Stacked',
18 | path: 'charts/bar/stacked.html'
19 | }, {
20 | title: 'Stacked groups',
21 | path: 'charts/bar/stacked-group.html'
22 | }]
23 | }, {
24 | title: 'Line charts',
25 | items: [{
26 | title: 'Basic',
27 | path: 'charts/line/basic.html'
28 | }, {
29 | title: 'Multi axis',
30 | path: 'charts/line/multi-axis.html'
31 | }, {
32 | title: 'Stepped',
33 | path: 'charts/line/stepped.html'
34 | }, {
35 | title: 'Interpolation',
36 | path: 'charts/line/interpolation-modes.html'
37 | }, {
38 | title: 'Line styles',
39 | path: 'charts/line/line-styles.html'
40 | }, {
41 | title: 'Point styles',
42 | path: 'charts/line/point-styles.html'
43 | }, {
44 | title: 'Point sizes',
45 | path: 'charts/line/point-sizes.html'
46 | }]
47 | }, {
48 | title: 'Area charts',
49 | items: [{
50 | title: 'Boundaries (line)',
51 | path: 'charts/area/line-boundaries.html'
52 | }, {
53 | title: 'Datasets (line)',
54 | path: 'charts/area/line-datasets.html'
55 | }, {
56 | title: 'Stacked (line)',
57 | path: 'charts/area/line-stacked.html'
58 | }, {
59 | title: 'Radar',
60 | path: 'charts/area/radar.html'
61 | }]
62 | }, {
63 | title: 'Other charts',
64 | items: [{
65 | title: 'Scatter',
66 | path: 'charts/scatter/basic.html'
67 | }, {
68 | title: 'Scatter - Multi axis',
69 | path: 'charts/scatter/multi-axis.html'
70 | }, {
71 | title: 'Doughnut',
72 | path: 'charts/doughnut.html'
73 | }, {
74 | title: 'Pie',
75 | path: 'charts/pie.html'
76 | }, {
77 | title: 'Polar area',
78 | path: 'charts/polar-area.html'
79 | }, {
80 | title: 'Radar',
81 | path: 'charts/radar.html'
82 | }, {
83 | title: 'Combo bar/line',
84 | path: 'charts/combo-bar-line.html'
85 | }]
86 | }, {
87 | title: 'Linear scale',
88 | items: [{
89 | title: 'Step size',
90 | path: 'scales/linear/step-size.html'
91 | }, {
92 | title: 'Min & max',
93 | path: 'scales/linear/min-max.html'
94 | }, {
95 | title: 'Min & max (suggested)',
96 | path: 'scales/linear/min-max-suggested.html'
97 | }]
98 | }, {
99 | title: 'Logarithmic scale',
100 | items: [{
101 | title: 'Line',
102 | path: 'scales/logarithmic/line.html'
103 | }, {
104 | title: 'Scatter',
105 | path: 'scales/logarithmic/scatter.html'
106 | }]
107 | }, {
108 | title: 'Time scale',
109 | items: [{
110 | title: 'Line',
111 | path: 'scales/time/line.html'
112 | }, {
113 | title: 'Line (point data)',
114 | path: 'scales/time/line-point-data.html'
115 | }, {
116 | title: 'Time Series',
117 | path: 'scales/time/financial.html'
118 | }, {
119 | title: 'Combo',
120 | path: 'scales/time/combo.html'
121 | }]
122 | }, {
123 | title: 'Scale options',
124 | items: [{
125 | title: 'Grid lines display',
126 | path: 'scales/gridlines-display.html'
127 | }, {
128 | title: 'Grid lines style',
129 | path: 'scales/gridlines-style.html'
130 | }, {
131 | title: 'Multiline labels',
132 | path: 'scales/multiline-labels.html'
133 | }, {
134 | title: 'Filtering Labels',
135 | path: 'scales/filtering-labels.html'
136 | }, {
137 | title: 'Non numeric Y Axis',
138 | path: 'scales/non-numeric-y.html'
139 | }, {
140 | title: 'Toggle Scale Type',
141 | path: 'scales/toggle-scale-type.html'
142 | }]
143 | }, {
144 | title: 'Legend',
145 | items: [{
146 | title: 'Positioning',
147 | path: 'legend/positioning.html'
148 | }, {
149 | title: 'Point style',
150 | path: 'legend/point-style.html'
151 | }]
152 | }, {
153 | title: 'Tooltip',
154 | items: [{
155 | title: 'Positioning',
156 | path: 'tooltips/positioning.html'
157 | }, {
158 | title: 'Interactions',
159 | path: 'tooltips/interactions.html'
160 | }, {
161 | title: 'Callbacks',
162 | path: 'tooltips/callbacks.html'
163 | }, {
164 | title: 'Border',
165 | path: 'tooltips/border.html'
166 | }, {
167 | title: 'HTML tooltips (line)',
168 | path: 'tooltips/custom-line.html'
169 | }, {
170 | title: 'HTML tooltips (pie)',
171 | path: 'tooltips/custom-pie.html'
172 | }, {
173 | title: 'HTML tooltips (points)',
174 | path: 'tooltips/custom-points.html'
175 | }]
176 | }, {
177 | title: 'Scriptable',
178 | items: [{
179 | title: 'Bubble Chart',
180 | path: 'scriptable/bubble.html'
181 | }]
182 | }, {
183 | title: 'Advanced',
184 | items: [{
185 | title: 'Progress bar',
186 | path: 'advanced/progress-bar.html'
187 | }, {
188 | title: 'Data labelling (plugin)',
189 | path: 'advanced/data-labelling.html'
190 | }]
191 | }];
192 |
193 | }(this));
194 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/filtering-labels.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Chart with xAxis Filtering
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
89 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/gridlines-display.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Grid Lines Display Settings
6 |
7 |
8 |
27 |
28 |
29 |
30 |
31 |
122 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/gridlines-style.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Grid Lines Style Settings
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/linear/min-max-suggested.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Suggested Min/Max Settings
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/linear/min-max.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Min/Max Settings
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/linear/step-size.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
173 |
174 |
175 |
176 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/logarithmic/line.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Logarithmic Line Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
95 |
96 |
97 |
98 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/logarithmic/scatter.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Scatter Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
169 |
170 |
171 |
172 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/multiline-labels.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
84 |
85 |
86 |
87 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/non-numeric-y.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/time/combo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart - Combo Time Scale
6 |
7 |
8 |
9 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
173 |
174 |
175 |
176 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/time/financial.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart
6 |
7 |
8 |
9 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | Chart Type:
25 |
29 |
30 |
100 |
101 |
102 |
103 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/time/line-point-data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Time Scale Point Data
6 |
7 |
8 |
9 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
158 |
159 |
160 |
161 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/time/line.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart
6 |
7 |
8 |
9 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
201 |
202 |
203 |
204 |
--------------------------------------------------------------------------------
/chartjs/samples/scales/toggle-scale-type.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Toggle Scale Type
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
97 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/chartjs/samples/scriptable/bubble.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Scriptable > Bubble | Chart.js sample
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
130 |
131 |
132 |
--------------------------------------------------------------------------------
/chartjs/samples/style.css:
--------------------------------------------------------------------------------
1 | @import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
2 | @import url('https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900');
3 |
4 | body, html {
5 | color: #333538;
6 | font-family: 'Lato', sans-serif;
7 | line-height: 1.6;
8 | padding: 0;
9 | margin: 0;
10 | }
11 |
12 | a {
13 | color: #f27173;
14 | text-decoration: none;
15 | }
16 |
17 | a:hover {
18 | color: #e25f5f;
19 | text-decoration: underline;
20 | }
21 |
22 | .content {
23 | max-width: 800px;
24 | margin: auto;
25 | padding: 16px 32px;
26 | }
27 |
28 | .header {
29 | text-align: center;
30 | padding: 32px 0;
31 | }
32 |
33 | .wrapper {
34 | min-height: 400px;
35 | padding: 16px 0;
36 | position: relative;
37 | }
38 |
39 | .wrapper.col-2 {
40 | display: inline-block;
41 | min-height: 256px;
42 | width: 49%;
43 | }
44 |
45 | @media (max-width: 400px) {
46 | .wrapper.col-2 {
47 | width: 100%
48 | }
49 | }
50 |
51 | .wrapper canvas {
52 | -moz-user-select: none;
53 | -webkit-user-select: none;
54 | -ms-user-select: none;
55 | }
56 |
57 | .toolbar {
58 | display: flex;
59 | }
60 |
61 | .toolbar > * {
62 | margin: 0 8px 0 0;
63 | }
64 |
65 | .btn {
66 | background-color: #aaa;
67 | border-radius: 4px;
68 | color: white;
69 | padding: 0.25rem 0.75rem;
70 | }
71 |
72 | .btn .fa {
73 | font-size: 1rem;
74 | }
75 |
76 | .btn:hover {
77 | background-color: #888;
78 | color: white;
79 | text-decoration: none;
80 | }
81 |
82 | .btn-chartjs { background-color: #f27173; }
83 | .btn-chartjs:hover { background-color: #e25f5f; }
84 | .btn-docs:hover { background-color: #2793db; }
85 | .btn-docs { background-color: #36A2EB; }
86 | .btn-docs:hover { background-color: #2793db; }
87 | .btn-gh { background-color: #444; }
88 | .btn-gh:hover { background-color: #333; }
89 |
90 | .btn-on {
91 | border-style: inset;
92 | }
93 |
94 | .chartjs-title {
95 | font-size: 2rem;
96 | font-weight: 600;
97 | white-space: nowrap;
98 | }
99 |
100 | .chartjs-title::before {
101 | background-image: url(logo.svg);
102 | background-position: left center;
103 | background-repeat: no-repeat;
104 | background-size: 40px;
105 | content: 'Chart.js | ';
106 | color: #f27173;
107 | font-weight: 600;
108 | padding-left: 48px;
109 | }
110 |
111 | .chartjs-caption {
112 | font-size: 1.2rem;
113 | }
114 |
115 | .chartjs-links {
116 | display: flex;
117 | justify-content: center;
118 | padding: 8px 0;
119 | }
120 |
121 | .chartjs-links a {
122 | align-items: center;
123 | display: flex;
124 | font-size: 0.9rem;
125 | margin: 0.2rem;
126 | }
127 |
128 | .chartjs-links .fa:before {
129 | margin-right: 0.5em;
130 | }
131 |
132 | .samples-category {
133 | display: inline-block;
134 | margin-bottom: 32px;
135 | vertical-align: top;
136 | width: 25%;
137 | }
138 |
139 | .samples-category > .title {
140 | color: #aaa;
141 | font-weight: 300;
142 | font-size: 1.5rem;
143 | }
144 |
145 | .samples-category:hover > .title {
146 | color: black;
147 | }
148 |
149 | .samples-category > .items {
150 | padding: 8px 0;
151 | }
152 |
153 | .samples-entry {
154 | padding: 0 0 4px 0;
155 | }
156 |
157 | .samples-entry > .title {
158 | font-weight: 700;
159 | }
160 |
161 | @media (max-width: 640px) {
162 | .samples-category { width: 33%; }
163 | }
164 |
165 | @media (max-width: 512px) {
166 | .samples-category { width: 50%; }
167 | }
168 |
169 | @media (max-width: 420px) {
170 | .chartjs-caption { font-size: 1.05rem; }
171 | .chartjs-title::before { content: ''; }
172 | .chartjs-links a { flex-direction: column; }
173 | .chartjs-links .fa { margin: 0 }
174 | .samples-category { width: 100%; }
175 | }
176 |
177 | .analyser table {
178 | color: #333;
179 | font-size: 0.9rem;
180 | margin: 8px 0;
181 | width: 100%
182 | }
183 |
184 | .analyser th {
185 | background-color: #f0f0f0;
186 | padding: 2px;
187 | }
188 |
189 | .analyser td {
190 | padding: 2px;
191 | text-align: center;
192 | }
193 |
--------------------------------------------------------------------------------
/chartjs/samples/tooltips/border.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Tooltip Border
6 |
7 |
8 |
27 |
28 |
29 |
30 |
31 |
32 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/chartjs/samples/tooltips/callbacks.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Tooltip Hooks
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
105 |
106 |
107 |
108 |
--------------------------------------------------------------------------------
/chartjs/samples/tooltips/custom-line.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Line Chart with Custom Tooltips
6 |
7 |
8 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
164 |
165 |
166 |
167 |
--------------------------------------------------------------------------------
/chartjs/samples/tooltips/custom-pie.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Pie Chart with Custom Tooltips
6 |
7 |
8 |
9 |
35 |
36 |
37 |
38 |
44 |
45 |
144 |
145 |
146 |
147 |
--------------------------------------------------------------------------------
/chartjs/samples/tooltips/custom-points.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Custom Tooltips using Data Points
6 |
7 |
8 |
9 |
35 |
36 |
37 |
38 |
43 |
126 |
127 |
128 |
129 |
--------------------------------------------------------------------------------
/chartjs/samples/tooltips/interactions.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Tooltip Interaction Modes
6 |
7 |
8 |
27 |
28 |
29 |
30 |
31 |
32 |
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/chartjs/samples/tooltips/positioning.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Tooltip Interaction Modes
6 |
7 |
8 |
27 |
28 |
29 |
30 |
31 |
32 |
84 |
85 |
86 |
87 |
--------------------------------------------------------------------------------
/chartjs/samples/utils.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | window.chartColors = {
4 | red: 'rgb(255, 99, 132)',
5 | orange: 'rgb(255, 159, 64)',
6 | yellow: 'rgb(255, 205, 86)',
7 | green: 'rgb(75, 192, 192)',
8 | blue: 'rgb(54, 162, 235)',
9 | purple: 'rgb(153, 102, 255)',
10 | grey: 'rgb(201, 203, 207)'
11 | };
12 |
13 | (function(global) {
14 | var Months = [
15 | 'January',
16 | 'February',
17 | 'March',
18 | 'April',
19 | 'May',
20 | 'June',
21 | 'July',
22 | 'August',
23 | 'September',
24 | 'October',
25 | 'November',
26 | 'December'
27 | ];
28 |
29 | var COLORS = [
30 | '#4dc9f6',
31 | '#f67019',
32 | '#f53794',
33 | '#537bc4',
34 | '#acc236',
35 | '#166a8f',
36 | '#00a950',
37 | '#58595b',
38 | '#8549ba'
39 | ];
40 |
41 | var Samples = global.Samples || (global.Samples = {});
42 | var Color = global.Color;
43 |
44 | Samples.utils = {
45 | // Adapted from http://indiegamr.com/generate-repeatable-random-numbers-in-js/
46 | srand: function(seed) {
47 | this._seed = seed;
48 | },
49 |
50 | rand: function(min, max) {
51 | var seed = this._seed;
52 | min = min === undefined ? 0 : min;
53 | max = max === undefined ? 1 : max;
54 | this._seed = (seed * 9301 + 49297) % 233280;
55 | return min + (this._seed / 233280) * (max - min);
56 | },
57 |
58 | numbers: function(config) {
59 | var cfg = config || {};
60 | var min = cfg.min || 0;
61 | var max = cfg.max || 1;
62 | var from = cfg.from || [];
63 | var count = cfg.count || 8;
64 | var decimals = cfg.decimals || 8;
65 | var continuity = cfg.continuity || 1;
66 | var dfactor = Math.pow(10, decimals) || 0;
67 | var data = [];
68 | var i, value;
69 |
70 | for (i = 0; i < count; ++i) {
71 | value = (from[i] || 0) + this.rand(min, max);
72 | if (this.rand() <= continuity) {
73 | data.push(Math.round(dfactor * value) / dfactor);
74 | } else {
75 | data.push(null);
76 | }
77 | }
78 |
79 | return data;
80 | },
81 |
82 | labels: function(config) {
83 | var cfg = config || {};
84 | var min = cfg.min || 0;
85 | var max = cfg.max || 100;
86 | var count = cfg.count || 8;
87 | var step = (max - min) / count;
88 | var decimals = cfg.decimals || 8;
89 | var dfactor = Math.pow(10, decimals) || 0;
90 | var prefix = cfg.prefix || '';
91 | var values = [];
92 | var i;
93 |
94 | for (i = min; i < max; i += step) {
95 | values.push(prefix + Math.round(dfactor * i) / dfactor);
96 | }
97 |
98 | return values;
99 | },
100 |
101 | months: function(config) {
102 | var cfg = config || {};
103 | var count = cfg.count || 12;
104 | var section = cfg.section;
105 | var values = [];
106 | var i, value;
107 |
108 | for (i = 0; i < count; ++i) {
109 | value = Months[Math.ceil(i) % 12];
110 | values.push(value.substring(0, section));
111 | }
112 |
113 | return values;
114 | },
115 |
116 | color: function(index) {
117 | return COLORS[index % COLORS.length];
118 | },
119 |
120 | transparentize: function(color, opacity) {
121 | var alpha = opacity === undefined ? 0.5 : 1 - opacity;
122 | return Color(color).alpha(alpha).rgbString();
123 | }
124 | };
125 |
126 | // DEPRECATED
127 | window.randomScalingFactor = function() {
128 | return Math.round(Samples.utils.rand(-100, 100));
129 | };
130 |
131 | // INITIALIZATION
132 |
133 | Samples.utils.srand(Date.now());
134 |
135 | // Google Analytics
136 | /* eslint-disable */
137 | if (document.location.hostname.match(/^(www\.)?chartjs\.org$/)) {
138 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
139 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
140 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
141 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
142 | ga('create', 'UA-28909194-3', 'auto');
143 | ga('send', 'pageview');
144 | }
145 | /* eslint-enable */
146 |
147 | }(this));
148 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | MEMBUAT GRAFIK DARI DATABASE MYSQL DENGAN PHP DAN CHART.JS - www.malasngoding.com
5 |
6 |
7 |
8 |
17 |
18 |
19 |
20 | MEMBUAT GRAFIK DARI DATABASE MYSQL DENGAN PHP DAN CHART.JS
- www.malasngoding.com -
21 |
22 |
23 |
24 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | No |
39 | Nama Mahasiswa |
40 | NIM |
41 | Fakultas |
42 |
43 |
44 |
45 |
50 |
51 | |
52 | |
53 | |
54 | |
55 |
56 |
59 |
60 |
61 |
62 |
63 |
115 |
116 |
--------------------------------------------------------------------------------
/koneksi.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------