Skip to content

Commit f36dfc9

Browse files
committed
Translated comments from french to english
Translated comments from french to english and removed some useless comments.
1 parent fe3d5c1 commit f36dfc9

1 file changed

Lines changed: 16 additions & 18 deletions

File tree

jquery.highchartTable.js

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
;
22

33
(function($) {
4-
// définition du plugin jQuery
54
$.fn.highchartTable = function() {
65

76
var allowedGraphTypes = ['column', 'line', 'area', 'spline', 'pie'];
@@ -23,13 +22,13 @@
2322
var $table = $(table);
2423
var nbYaxis = 1;
2524

26-
// Récupération du titre du graphique à partir du caption
25+
// Retrieve graph title from the table caption
2726
var captions = $('caption', table);
2827
var graphTitle = captions.length ? $(captions[0]).text() : '';
2928

3029
var graphContainer;
3130
if ($table.data('graph-container-before') != 1) {
32-
// Récupération de la cible d'affichage du graphique
31+
// Retrieve where the graph must be displayed from the graph-container attribute
3332
var graphContainerSelector = $table.data('graph-container');
3433
if (!graphContainerSelector) {
3534
throw "graph-container data attribute is mandatory";
@@ -59,7 +58,7 @@
5958
graphContainer = graphContainer[0];
6059
}
6160

62-
// Récupération du type de graphique
61+
// Retrieve graph type from graph-type attribute
6362
var globalGraphType = $table.data('graph-type');
6463
if (!globalGraphType) {
6564
throw "graph-type data attribute is mandatory";
@@ -75,7 +74,7 @@
7574

7675
var isGraphInverted = $table.data('graph-inverted') == 1;
7776

78-
// Récupération des titres des séries de données à afficher sur le graphique
77+
// Retrieve series titles
7978
var ths = $('thead th', table);
8079
var columns = [];
8180
var vlines = [];
@@ -254,15 +253,15 @@
254253
}
255254

256255
var defaultColors = [
257-
'#4572A7', //bleu
258-
'#AA4643', //rouge
259-
'#89A54E', //vert
260-
'#80699B', //mauve
261-
'#3D96AE', //bleu clair
262-
'#DB843D', //orange
263-
'#92A8CD', //bleu encore plus clair
264-
'#A47D7C', //marron
265-
'#B5CA92' //vert clair
256+
'#4572A7',
257+
'#AA4643',
258+
'#89A54E',
259+
'#80699B',
260+
'#3D96AE',
261+
'#DB843D',
262+
'#92A8CD',
263+
'#A47D7C',
264+
'#B5CA92'
266265
];
267266
var colors = [];
268267

@@ -272,7 +271,7 @@
272271
var dataname = 'graph-color-' + (i+1);
273272
colors.push(typeof $table.data(dataname) != 'undefined' ? $table.data(dataname) : typeof themeColors[i] != 'undefined' ? themeColors[i] : defaultColors[i]);
274273
}
275-
// Configuration de HighChart
274+
276275
var highChartConfig = {
277276
colors: colors,
278277
chart: {
@@ -305,7 +304,7 @@
305304
opposite: $table.data('graph-xaxis-opposite') == '1',
306305
showLastLabel: true,
307306
tickInterval: $table.data('graph-xaxis-tick-interval') || null,
308-
dateTimeLabelFormats: { //par défaut on affiche numéro jour mois sur les graphs datetime
307+
dateTimeLabelFormats: { //by default, we display the day and month on the datetime graphs
309308
second: '%e. %b',
310309
minute: '%e. %b',
311310
hour: '%e. %b',
@@ -384,10 +383,9 @@
384383
}
385384
};
386385

387-
// Affichage du graphique
388386
new Highcharts.Chart(highChartConfig);
389387

390-
// Permettre le chaînage par jQuery
388+
//for fluent api
391389
return this;
392390
});
393391
};

0 commit comments

Comments
 (0)