Bonjour à tous,

je reviens vers vous car je suis planté sur un truc depuis 2 jours, qui, j'en suis sur va être tout bête, mais impossible de le faire.

Voila, je vais essayé d'être clair : dans la bulle qui s'affiche lorsqu'on survol les courbes, je voudrai afficher la valeur de référence au dessus des séries.
Nom : echart26.png
Affichages : 204
Taille : 19,5 Ko
Dans l'image, c'est la tranche horaire qui s'affiche et qui ne change donc que lorsque la souris change de tranche horaire sur l'axe X.
Mais il faudrait que ça change à chaque fois que la souris bouge.

Il y a 1440 valeurs puisque nous sommes en heures glissantes minutes par minutes :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
Interv=["0000 - 0059","0001 - 0100","0002 - 0101","0003 - 0102","0004 - 0103","0005 - 0104","0006 - 0105","0007 - 0106","0008 - 0107","0009 - 0108","0010 - 0109","0011 - 0110","0012 - 0111","0013 - 0112","0014 - 0113","0015 - 0114","0016 - 0115","0017 - 0116","0018 - 0117","0019 - 0118","0020 - 0119","0021 - 0120","0022 - 0121","0023 - 0122","0024 - 0123","0025 - 0124","0026 - 0125","0027 - 0126","0028 - 0127","0029 - 0128","0030 - 0129","0031 - 0130","0032 - 0131","0033 - 0132","0034 - 0133","0035 - 0134","0036 - 0135","0037 - 0136","0038 - 0137","0039 - 0138","0040 - 0139","0041 - 0140","0042 - 0141","0043 - 0142","0044 - 0143","0045 - 0144","0046 - 0145","0047 - 0146","0048 - 0147","0049 - 0148","0050 - 0149","0051 - 0150","0052 - 0151","0053 - 0152","0054 - 0153","0055 - 0154","0056 - 0155","0057 - 0156","0058 - 0157","0059 - 0158","0100 - 0159","0101 - 0200","0102 - 0201","0103 - 0202","0104 - 0203","0105 - 0204","0106 - 0205","0107 - 0206","0108 - 0207","0109 - 0208","0110 - 0209","0111 - 0210","0112 - 0211","0113 - 0212","0114 - 0213","0115 - 0214","0116 - 0215","0117 - 0216","0118 - 0217","0119 - 0218","0120 - 0219","0121 - 0220","0122 - 0221","0123 - 0222","0124 - 0223","0125 - 0224","0126 - 0225","0127 - 0226","0128 - 0227","0129 - 0228","0130 - 0229","0131 - 0230","0132 - 0231","0133 - 0232","0134 - 0233","0135 - 0234","0136 - 0235","0137 - 0236","0138 - 0237","0139 - 0238","0140 - 0239","0141 - 0240","0142 - 0241","0143 - 0242","0144 - 0243","0145 - 0244","0146 - 0245","0147 - 0246","0148 - 0247","0149 - 0248","0150 - 0249","0151 - 0250","0152 - 0251","0153 - 0252","0154 - 0253","0155 - 0254","0156 - 0255","0157 - 0256","0158 - 0257","0159 - 0258","0200 - 0259","0201 - 0300","0202 - 0301","0203 - 0302","0204 - 0303","0205 - 0304","0206 - 0305","0207 - 0306","0208 - 0307","0209 - 0308","0210 - 0309","0211 - 0310","0212 - 0311","0213 - 0312","0214 - 0313","0215 - 0314","0216 - 0315","0217 - 0316","0218 - 0317","0219 - 0318","0220 - 0319","0221 - 0320","0222 - 0321","0223 - 0322","0224 - 0323","0225 - 0324","0226 - 0325","0227 - 0326","0228 - 0327","0229 - 0328","0230 - 0329","0231 - 0330","0232 - 0331","0233 - 0332","0234 - 0333","0235 - 0334","0236 - 0335","0237 - 0336","0238 - 0337","0239 - 0338","0240 - 0339","0241 - 0340","0242 - 0341","0243 - 0342","0244 - 0343","0245 - 0344","0246 - 0345","0247 - 0346","0248 - 0347","0249 - 0348","0250 - 0349","0251 - 0350","0252 - 0351","0253 - 0352","0254 - 0353","0255 - 0354","0256 - 0355","0257 - 0356","0258 - 0357","0259 - 0358","0300 - 0359","0301 - 0400","0302 - 0401","0303 - 0402","0304 - 0403","0305 - 0404","0306 - 0405","0307 - 0406","0308 - 0407","0309 - 0408","0310 - 0409","0311 - 0410","0312 - 0411","0313 - 0412","0314 - 0413","0315 - 0414","0316 - 0415","0317 - 0416","0318 - 0417","0319 - 0418","0320 - 0419","0321 - 0420","0322 - 0421","0323 - 0422","0324 - 0423","0325 - 0424","0326 - 0425","0327 - 0426","0328 - 0427","0329 - 0428","0330 - 0429","0331 - 0430","0332 - 0431","0333 - 0432","0334 - 0433","0335 - 0434","0336 - 0435","0337 - 0436","0338 - 0437","0339 - 0438","0340 - 0439","0341 - 0440","0342 - 0441","0343 - 0442","0344 - 0443","0345 - 0444","0346 - 0445","0347 - 0446","0348 - 0447","0349 - 0448","0350 - 0449","0351 - 0450","0352 - 0451","0353 - 0452","0354 - 0453","0355 - 0454","0356 - 0455","0357 - 0456","0358 - 0457","0359 - 0458","0400 - 0459","0401 - 0500","0402 - 0501","0403 - 0502","0404 - 0503","0405 - 0504","0406 - 0505","0407 - 0506","0408 - 0507","0409 - 0508","0410 - 0509","0411 - 0510","0412 - 0511","0413 - 0512","0414 - 0513","0415 - 0514","0416 - 0515","0417 - 0516","0418 - 0517","0419 - 0518","0420 - 0519","0421 - 0520","0422 - 0521","0423 - 0522","0424 - 0523","0425 - 0524","0426 - 0525","0427 - 0526","0428 - 0527","0429 - 0528","0430 - 0529","0431 - 0530","0432 - 0531","0433 - 0532","0434 - 0533","0435 - 0534","0436 - 0535","0437 - 0536","0438 - 0537","0439 - 0538","0440 - 0539","0441 - 0540","0442 - 0541","0443 - 0542","0444 - 0543","0445 - 0544","0446 - 0545","0447 - 0546","0448 - 0547","0449 - 0548","0450 - 0549","0451 - 0550","0452 - 0551","0453 - 0552","0454 - 0553","0455 - 0554","0456 - 0555","0457 - 0556","0458 - 0557","0459 - 0558","0500 - 0559","0501 - 0600","0502 - 0601","0503 - 0602","0504 - 0603","0505 - 0604","0506 - 0605","0507 - 0606","0508 - 0607","0509 - 0608","0510 - 0609","0511 - 0610","0512 - 0611","0513 - 0612","0514 - 0613","0515 - 0614","0516 - 0615","0517 - 0616","0518 - 0617","0519 - 0618","0520 - 0619","0521 - 0620","0522 - 0621","0523 - 0622","0524 - 0623","0525 - 0624","0526 - 0625","0527 - 0626","0528 - 0627","0529 - 0628","0530 - 0629","0531 - 0630","0532 - 0631","0533 - 0632","0534 - 0633","0535 - 0634","0536 - 0635","0537 - 0636","0538 - 0637","0539 - 0638","0540 - 0639","0541 - 0640","0542 - 0641","0543 - 0642","0544 - 0643","0545 - 0644","0546 - 0645","0547 - 0646","0548 - 0647","0549 - 0648","0550 - 0649","0551 - 0650","0552 - 0651","0553 - 0652","0554 - 0653","0555 - 0654","0556 - 0655","0557 - 0656","0558 - 0657","0559 - 0658","0600 - 0659","0601 - 0700","0602 - 0701","0603 - 0702","0604 - 0703","0605 - 0704","0606 - 0705","0607 - 0706","0608 - 0707","0609 - 0708","0610 - 0709","0611 - 0710","0612 - 0711","0613 - 0712","0614 - 0713","0615 - 0714","0616 - 0715","0617 - 0716","0618 - 0717","0619 - 0718","0620 - 0719","0621 - 0720","0622 - 0721","0623 - 0722","0624 - 0723","0625 - 0724","0626 - 0725","0627 - 0726","0628 - 0727","0629 - 0728","0630 - 0729","0631 - 0730","0632 - 0731","0633 - 0732","0634 - 0733","0635 - 0734","0636 - 0735","0637 - 0736","0638 - 0737","0639 - 0738","0640 - 0739","0641 - 0740","0642 - 0741","0643 - 0742","0644 - 0743","0645 - 0744","0646 - 0745","0647 - 0746","0648 - 0747","0649 - 0748","0650 - 0749","0651 - 0750","0652 - 0751","0653 - 0752","0654 - 0753","0655 - 0754","0656 - 0755","0657 - 0756","0658 - 0757","0659 - 0758","0700 - 0759","0701 - 0800","0702 - 0801","0703 - 0802","0704 - 0803","0705 - 0804","0706 - 0805","0707 - 0806","0708 - 0807","0709 - 0808","0710 - 0809","0711 - 0810","0712 - 0811","0713 - 0812","0714 - 0813","0715 - 0814","0716 - 0815","0717 - 0816","0718 - 0817","0719 - 0818","0720 - 0819","0721 - 0820","0722 - 0821","0723 - 0822","0724 - 0823","0725 - 0824","0726 - 0825","0727 - 0826","0728 - 0827","0729 - 0828","0730 - 0829","0731 - 0830","0732 - 0831","0733 - 0832","0734 - 0833","0735 - 0834","0736 - 0835","0737 - 0836","0738 - 0837","0739 - 0838","0740 - 0839","0741 - 0840","0742 - 0841","0743 - 0842","0744 - 0843","0745 - 0844","0746 - 0845","0747 - 0846","0748 - 0847","0749 - 0848","0750 - 0849","0751 - 0850","0752 - 0851","0753 - 0852","0754 - 0853","0755 - 0854","0756 - 0855","0757 - 0856","0758 - 0857","0759 - 0858","0800 - 0859","0801 - 0900","0802 - 0901","0803 - 0902","0804 - 0903","0805 - 0904","0806 - 0905","0807 - 0906","0808 - 0907","0809 - 0908","0810 - 0909","0811 - 0910","0812 - 0911","0813 - 0912","0814 - 0913","0815 - 0914","0816 - 0915","0817 - 0916","0818 - 0917","0819 - 0918","0820 - 0919","0821 - 0920","0822 - 0921","0823 - 0922","0824 - 0923","0825 - 0924","0826 - 0925","0827 - 0926","0828 - 0927","0829 - 0928","0830 - 0929","0831 - 0930","0832 - 0931","0833 - 0932","0834 - 0933","0835 - 0934","0836 - 0935","0837 - 0936","0838 - 0937","0839 - 0938","0840 - 0939","0841 - 0940","0842 - 0941","0843 - 0942","0844 - 0943","0845 - 0944","0846 - 0945","0847 - 0946","0848 - 0947","0849 - 0948","0850 - 0949","0851 - 0950","0852 - 0951","0853 - 0952","0854 - 0953","0855 - 0954","0856 - 0955","0857 - 0956","0858 - 0957","0859 - 0958","0900 - 0959","0901 - 1000","0902 - 1001","0903 - 1002","0904 - 1003","0905 - 1004","0906 - 1005","0907 - 1006","0908 - 1007","0909 - 1008","0910 - 1009","0911 - 1010","0912 - 1011","0913 - 1012","0914 - 1013","0915 - 1014","0916 - 1015","0917 - 1016","0918 - 1017","0919 - 1018","0920 - 1019","0921 - 1020","0922 - 1021","0923 - 1022","0924 - 1023","0925 - 1024","0926 - 1025","0927 - 1026","0928 - 1027","0929 - 1028","0930 - 1029","0931 - 1030","0932 - 1031","0933 - 1032","0934 - 1033","0935 - 1034","0936 - 1035","0937 - 1036","0938 - 1037","0939 - 1038","0940 - 1039","0941 - 1040","0942 - 1041","0943 - 1042","0944 - 1043","0945 - 1044","0946 - 1045","0947 - 1046","0948 - 1047","0949 - 1048","0950 - 1049","0951 - 1050","0952 - 1051","0953 - 1052","0954 - 1053","0955 - 1054","0956 - 1055","0957 - 1056","0958 - 1057","0959 - 1058","1000 - 1059","1001 - 1100","1002 - 1101","1003 - 1102","1004 - 1103","1005 - 1104","1006 - 1105","1007 - 1106","1008 - 1107","1009 - 1108","1010 - 1109","1011 - 1110","1012 - 1111","1013 - 1112","1014 - 1113","1015 - 1114","1016 - 1115","1017 - 1116","1018 - 1117","1019 - 1118","1020 - 1119","1021 - 1120","1022 - 1121","1023 - 1122","1024 - 1123","1025 - 1124","1026 - 1125","1027 - 1126","1028 - 1127","1029 - 1128","1030 - 1129","1031 - 1130","1032 - 1131","1033 - 1132","1034 - 1133","1035 - 1134","1036 - 1135","1037 - 1136","1038 - 1137","1039 - 1138","1040 - 1139","1041 - 1140","1042 - 1141","1043 - 1142","1044 - 1143","1045 - 1144","1046 - 1145","1047 - 1146","1048 - 1147","1049 - 1148","1050 - 1149","1051 - 1150","1052 - 1151","1053 - 1152","1054 - 1153","1055 - 1154","1056 - 1155","1057 - 1156","1058 - 1157","1059 - 1158","1100 - 1159","1101 - 1200","1102 - 1201","1103 - 1202","1104 - 1203","1105 - 1204","1106 - 1205","1107 - 1206","1108 - 1207","1109 - 1208","1110 - 1209","1111 - 1210","1112 - 1211","1113 - 1212","1114 - 1213","1115 - 1214","1116 - 1215","1117 - 1216","1118 - 1217","1119 - 1218","1120 - 1219","1121 - 1220","1122 - 1221","1123 - 1222","1124 - 1223","1125 - 1224","1126 - 1225","1127 - 1226","1128 - 1227","1129 - 1228","1130 - 1229","1131 - 1230","1132 - 1231","1133 - 1232","1134 - 1233","1135 - 1234","1136 - 1235","1137 - 1236","1138 - 1237","1139 - 1238","1140 - 1239","1141 - 1240","1142 - 1241","1143 - 1242","1144 - 1243","1145 - 1244","1146 - 1245","1147 - 1246","1148 - 1247","1149 - 1248","1150 - 1249","1151 - 1250","1152 - 1251","1153 - 1252","1154 - 1253","1155 - 1254","1156 - 1255","1157 - 1256","1158 - 1257","1159 - 1258","1200 - 1259","1201 - 1300","1202 - 1301","1203 - 1302","1204 - 1303","1205 - 1304","1206 - 1305","1207 - 1306","1208 - 1307","1209 - 1308","1210 - 1309","1211 - 1310","1212 - 1311","1213 - 1312","1214 - 1313","1215 - 1314","1216 - 1315","1217 - 1316","1218 - 1317","1219 - 1318","1220 - 1319","1221 - 1320","1222 - 1321","1223 - 1322","1224 - 1323","1225 - 1324","1226 - 1325","1227 - 1326","1228 - 1327","1229 - 1328","1230 - 1329","1231 - 1330","1232 - 1331","1233 - 1332","1234 - 1333","1235 - 1334","1236 - 1335","1237 - 1336","1238 - 1337","1239 - 1338","1240 - 1339","1241 - 1340","1242 - 1341","1243 - 1342","1244 - 1343","1245 - 1344","1246 - 1345","1247 - 1346","1248 - 1347","1249 - 1348","1250 - 1349","1251 - 1350","1252 - 1351","1253 - 1352","1254 - 1353","1255 - 1354","1256 - 1355","1257 - 1356","1258 - 1357","1259 - 1358","1300 - 1359","1301 - 1400","1302 - 1401","1303 - 1402","1304 - 1403","1305 - 1404","1306 - 1405","1307 - 1406","1308 - 1407","1309 - 1408","1310 - 1409","1311 - 1410","1312 - 1411","1313 - 1412","1314 - 1413","1315 - 1414","1316 - 1415","1317 - 1416","1318 - 1417","1319 - 1418","1320 - 1419","1321 - 1420","1322 - 1421","1323 - 1422","1324 - 1423","1325 - 1424","1326 - 1425","1327 - 1426","1328 - 1427","1329 - 1428","1330 - 1429","1331 - 1430","1332 - 1431","1333 - 1432","1334 - 1433","1335 - 1434","1336 - 1435","1337 - 1436","1338 - 1437","1339 - 1438","1340 - 1439","1341 - 1440","1342 - 1441","1343 - 1442","1344 - 1443","1345 - 1444","1346 - 1445","1347 - 1446","1348 - 1447","1349 - 1448","1350 - 1449","1351 - 1450","1352 - 1451","1353 - 1452","1354 - 1453","1355 - 1454","1356 - 1455","1357 - 1456","1358 - 1457","1359 - 1458","1400 - 1459","1401 - 1500","1402 - 1501","1403 - 1502","1404 - 1503","1405 - 1504","1406 - 1505","1407 - 1506","1408 - 1507","1409 - 1508","1410 - 1509","1411 - 1510","1412 - 1511","1413 - 1512","1414 - 1513","1415 - 1514","1416 - 1515","1417 - 1516","1418 - 1517","1419 - 1518","1420 - 1519","1421 - 1520","1422 - 1521","1423 - 1522","1424 - 1523","1425 - 1524","1426 - 1525","1427 - 1526","1428 - 1527","1429 - 1528","1430 - 1529","1431 - 1530","1432 - 1531","1433 - 1532","1434 - 1533","1435 - 1534","1436 - 1535","1437 - 1536","1438 - 1537","1439 - 1538","1440 - 1539","1441 - 1540","1442 - 1541","1443 - 1542","1444 - 1543","1445 - 1544","1446 - 1545","1447 - 1546","1448 - 1547","1449 - 1548","1450 - 1549","1451 - 1550","1452 - 1551","1453 - 1552","1454 - 1553","1455 - 1554","1456 - 1555","1457 - 1556","1458 - 1557","1459 - 1558","1500 - 1559","1501 - 1600","1502 - 1601","1503 - 1602","1504 - 1603","1505 - 1604","1506 - 1605","1507 - 1606","1508 - 1607","1509 - 1608","1510 - 1609","1511 - 1610","1512 - 1611","1513 - 1612","1514 - 1613","1515 - 1614","1516 - 1615","1517 - 1616","1518 - 1617","1519 - 1618","1520 - 1619","1521 - 1620","1522 - 1621","1523 - 1622","1524 - 1623","1525 - 1624","1526 - 1625","1527 - 1626","1528 - 1627","1529 - 1628","1530 - 1629","1531 - 1630","1532 - 1631","1533 - 1632","1534 - 1633","1535 - 1634","1536 - 1635","1537 - 1636","1538 - 1637","1539 - 1638","1540 - 1639","1541 - 1640","1542 - 1641","1543 - 1642","1544 - 1643","1545 - 1644","1546 - 1645","1547 - 1646","1548 - 1647","1549 - 1648","1550 - 1649","1551 - 1650","1552 - 1651","1553 - 1652","1554 - 1653","1555 - 1654","1556 - 1655","1557 - 1656","1558 - 1657","1559 - 1658","1600 - 1659","1601 - 1700","1602 - 1701","1603 - 1702","1604 - 1703","1605 - 1704","1606 - 1705","1607 - 1706","1608 - 1707","1609 - 1708","1610 - 1709","1611 - 1710","1612 - 1711","1613 - 1712","1614 - 1713","1615 - 1714","1616 - 1715","1617 - 1716","1618 - 1717","1619 - 1718","1620 - 1719","1621 - 1720","1622 - 1721","1623 - 1722","1624 - 1723","1625 - 1724","1626 - 1725","1627 - 1726","1628 - 1727","1629 - 1728","1630 - 1729","1631 - 1730","1632 - 1731","1633 - 1732","1634 - 1733","1635 - 1734","1636 - 1735","1637 - 1736","1638 - 1737","1639 - 1738","1640 - 1739","1641 - 1740","1642 - 1741","1643 - 1742","1644 - 1743","1645 - 1744","1646 - 1745","1647 - 1746","1648 - 1747","1649 - 1748","1650 - 1749","1651 - 1750","1652 - 1751","1653 - 1752","1654 - 1753","1655 - 1754","1656 - 1755","1657 - 1756","1658 - 1757","1659 - 1758","1700 - 1759","1701 - 1800","1702 - 1801","1703 - 1802","1704 - 1803","1705 - 1804","1706 - 1805","1707 - 1806","1708 - 1807","1709 - 1808","1710 - 1809","1711 - 1810","1712 - 1811","1713 - 1812","1714 - 1813","1715 - 1814","1716 - 1815","1717 - 1816","1718 - 1817","1719 - 1818","1720 - 1819","1721 - 1820","1722 - 1821","1723 - 1822","1724 - 1823","1725 - 1824","1726 - 1825","1727 - 1826","1728 - 1827","1729 - 1828","1730 - 1829","1731 - 1830","1732 - 1831","1733 - 1832","1734 - 1833","1735 - 1834","1736 - 1835","1737 - 1836","1738 - 1837","1739 - 1838","1740 - 1839","1741 - 1840","1742 - 1841","1743 - 1842","1744 - 1843","1745 - 1844","1746 - 1845","1747 - 1846","1748 - 1847","1749 - 1848","1750 - 1849","1751 - 1850","1752 - 1851","1753 - 1852","1754 - 1853","1755 - 1854","1756 - 1855","1757 - 1856","1758 - 1857","1759 - 1858","1800 - 1859","1801 - 1900","1802 - 1901","1803 - 1902","1804 - 1903","1805 - 1904","1806 - 1905","1807 - 1906","1808 - 1907","1809 - 1908","1810 - 1909","1811 - 1910","1812 - 1911","1813 - 1912","1814 - 1913","1815 - 1914","1816 - 1915","1817 - 1916","1818 - 1917","1819 - 1918","1820 - 1919","1821 - 1920","1822 - 1921","1823 - 1922","1824 - 1923","1825 - 1924","1826 - 1925","1827 - 1926","1828 - 1927","1829 - 1928","1830 - 1929","1831 - 1930","1832 - 1931","1833 - 1932","1834 - 1933","1835 - 1934","1836 - 1935","1837 - 1936","1838 - 1937","1839 - 1938","1840 - 1939","1841 - 1940","1842 - 1941","1843 - 1942","1844 - 1943","1845 - 1944","1846 - 1945","1847 - 1946","1848 - 1947","1849 - 1948","1850 - 1949","1851 - 1950","1852 - 1951","1853 - 1952","1854 - 1953","1855 - 1954","1856 - 1955","1857 - 1956","1858 - 1957","1859 - 1958","1900 - 1959","1901 - 2000","1902 - 2001","1903 - 2002","1904 - 2003","1905 - 2004","1906 - 2005","1907 - 2006","1908 - 2007","1909 - 2008","1910 - 2009","1911 - 2010","1912 - 2011","1913 - 2012","1914 - 2013","1915 - 2014","1916 - 2015","1917 - 2016","1918 - 2017","1919 - 2018","1920 - 2019","1921 - 2020","1922 - 2021","1923 - 2022","1924 - 2023","1925 - 2024","1926 - 2025","1927 - 2026","1928 - 2027","1929 - 2028","1930 - 2029","1931 - 2030","1932 - 2031","1933 - 2032","1934 - 2033","1935 - 2034","1936 - 2035","1937 - 2036","1938 - 2037","1939 - 2038","1940 - 2039","1941 - 2040","1942 - 2041","1943 - 2042","1944 - 2043","1945 - 2044","1946 - 2045","1947 - 2046","1948 - 2047","1949 - 2048","1950 - 2049","1951 - 2050","1952 - 2051","1953 - 2052","1954 - 2053","1955 - 2054","1956 - 2055","1957 - 2056","1958 - 2057","1959 - 2058","2000 - 2059","2001 - 2100","2002 - 2101","2003 - 2102","2004 - 2103","2005 - 2104","2006 - 2105","2007 - 2106","2008 - 2107","2009 - 2108","2010 - 2109","2011 - 2110","2012 - 2111","2013 - 2112","2014 - 2113","2015 - 2114","2016 - 2115","2017 - 2116","2018 - 2117","2019 - 2118","2020 - 2119","2021 - 2120","2022 - 2121","2023 - 2122","2024 - 2123","2025 - 2124","2026 - 2125","2027 - 2126","2028 - 2127","2029 - 2128","2030 - 2129","2031 - 2130","2032 - 2131","2033 - 2132","2034 - 2133","2035 - 2134","2036 - 2135","2037 - 2136","2038 - 2137","2039 - 2138","2040 - 2139","2041 - 2140","2042 - 2141","2043 - 2142","2044 - 2143","2045 - 2144","2046 - 2145","2047 - 2146","2048 - 2147","2049 - 2148","2050 - 2149","2051 - 2150","2052 - 2151","2053 - 2152","2054 - 2153","2055 - 2154","2056 - 2155","2057 - 2156","2058 - 2157","2059 - 2158","2100 - 2159","2101 - 2200","2102 - 2201","2103 - 2202","2104 - 2203","2105 - 2204","2106 - 2205","2107 - 2206","2108 - 2207","2109 - 2208","2110 - 2209","2111 - 2210","2112 - 2211","2113 - 2212","2114 - 2213","2115 - 2214","2116 - 2215","2117 - 2216","2118 - 2217","2119 - 2218","2120 - 2219","2121 - 2220","2122 - 2221","2123 - 2222","2124 - 2223","2125 - 2224","2126 - 2225","2127 - 2226","2128 - 2227","2129 - 2228","2130 - 2229","2131 - 2230","2132 - 2231","2133 - 2232","2134 - 2233","2135 - 2234","2136 - 2235","2137 - 2236","2138 - 2237","2139 - 2238","2140 - 2239","2141 - 2240","2142 - 2241","2143 - 2242","2144 - 2243","2145 - 2244","2146 - 2245","2147 - 2246","2148 - 2247","2149 - 2248","2150 - 2249","2151 - 2250","2152 - 2251","2153 - 2252","2154 - 2253","2155 - 2254","2156 - 2255","2157 - 2256","2158 - 2257","2159 - 2258","2200 - 2259","2201 - 2300","2202 - 2301","2203 - 2302","2204 - 2303","2205 - 2304","2206 - 2305","2207 - 2306","2208 - 2307","2209 - 2308","2210 - 2309","2211 - 2310","2212 - 2311","2213 - 2312","2214 - 2313","2215 - 2314","2216 - 2315","2217 - 2316","2218 - 2317","2219 - 2318","2220 - 2319","2221 - 2320","2222 - 2321","2223 - 2322","2224 - 2323","2225 - 2324","2226 - 2325","2227 - 2326","2228 - 2327","2229 - 2328","2230 - 2329","2231 - 2330","2232 - 2331","2233 - 2332","2234 - 2333","2235 - 2334","2236 - 2335","2237 - 2336","2238 - 2337","2239 - 2338","2240 - 2339","2241 - 2340","2242 - 2341","2243 - 2342","2244 - 2343","2245 - 2344","2246 - 2345","2247 - 2346","2248 - 2347","2249 - 2348","2250 - 2349","2251 - 2350","2252 - 2351","2253 - 2352","2254 - 2353","2255 - 2354","2256 - 2355","2257 - 2356","2258 - 2357","2259 - 2358","2300 - 2359","2301 - 0000","2302 - 0001","2303 - 0002","2304 - 0003","2305 - 0004","2306 - 0005","2307 - 0006","2308 - 0007","2309 - 0008","2310 - 0009","2311 - 0010","2312 - 0011","2313 - 0012","2314 - 0013","2315 - 0014","2316 - 0015","2317 - 0016","2318 - 0017","2319 - 0018","2320 - 0019","2321 - 0020","2322 - 0021","2323 - 0022","2324 - 0023","2325 - 0024","2326 - 0025","2327 - 0026","2328 - 0027","2329 - 0028","2330 - 0029","2331 - 0030","2332 - 0031","2333 - 0032","2334 - 0033","2335 - 0034","2336 - 0035","2337 - 0036","2338 - 0037","2339 - 0038","2340 - 0039","2341 - 0040","2342 - 0041","2343 - 0042","2344 - 0043","2345 - 0044","2346 - 0045","2347 - 0046","2348 - 0047","2349 - 0048","2350 - 0049","2351 - 0050","2352 - 0051","2353 - 0052","2354 - 0053","2355 - 0054","2356 - 0055","2357 - 0056","2358 - 0057","2359 - 0058"]
 
TranchesHoraires_X=["00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","01","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","02","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","03","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","04","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","05","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","06","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","07","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","08","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","09","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","10","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","11","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","12","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","13","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","14","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","15","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","16","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","18","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","19","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","20","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","21","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","22","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23","23"]
 
SommeTH_Y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,7,7,6,6,6,7,7,8,8,9,9,9,9,9,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,11,12,11,11,11,11,11,11,11,12,12,11,11,11,11,11,10,10,10,10,10,9,9,9,9,9,8,8,8,9,9,8,9,8,8,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,4,3,3,3,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,4,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,8,8,7,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,5,5,5,5,5,4,4,4,4,5,5,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,5,5,5,5,5,4,4,4,4,4,3,4,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,2,2,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,4,5,5,5,5,5,5,5,6,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,5,5,6,6,5,5,5,6,7,6,6,6,6,6,7,7,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,7,7,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,5,5,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
 
$(document).ready(function(){
 
	 var day = new Date();
	 day.setDate(day.getDate() - 1); // On sélectionne le jour précédent
	 var mm = ((day.getMonth() + 1) < 10) ? '0' + (day.getMonth() + 1) : (day.getMonth() + 1);
	 var dd = (day.getDate() < 10) ? '0' + day.getDate() : day.getDate();
	 var dayInit = day.getFullYear().toString() + mm + dd;
 
//	var dayInit = "20180101";
 
	datePickerInit( formatDate( dayInit ) ); // formatDate = DD/MM/YYYY
 
// Initialisation row  (div) => nombre de lignes qui vont contenir des graph
//	initHTML(["lfpo", "lfpg", "lfpb_small", "lfob_small"]); // Initialisation row  (div) => nombre de lignes qui vont contenir des graph
//	initHTML(["LIG_HG_LFPG", "LIG_HG_LFPO", "LIG_HG_LFPB"]);  // Initialisation row  (div) => nombre de lignes qui vont contenir des graph
	initHTML(["LIG_HG_LFPG", "LIG_HG_LFPO", "LIG_HG_LFPB_LFOB"]);  // Initialisation row  (div) => nombre de lignes qui vont contenir des graph
 
	loadData( dayInit );
 
	$("#btn-save-pdf").click(function () {
		saveAsPdf(dayInit);
	});
 
	// Initialisation de la date (DatePicker)
	function datePickerInit(date){
		var calendar = $("[data-select=datepicker]");
		calendar.val(date);
		calendar.datePicker().show({
			element: calendar,
			selectDate: true
		});
	}
 
	// Selection d'une date (action utilisateur sur le DatePicker)
	datepickerCallback = function(date){
		loadData( convertPickDate( date ) );
	}
 
	// Chargement des données
	function loadData(date){
 
		var WdayInit = date.slice(6, 8) + "/" + date.slice(4, 6) + "/" + date.slice(0, 4)
 
		$("#btn-save-pdf").attr("disabled", true);
		$("#div-info").children('.message-p-info').html('<strong>Chargement...</strong>');
		$("#div-info").children('.icon-p-info').html('<i class="fa fa-spinner fa-pulse fa-lg"></i>');
		$(".graph-loading").each(function() {
			$(this).width($(this).prev().width());
			$(this).css("display", "block");
		});
 
		/*----------------------------------------------------------------------------------------------*/		
		/* Graph HEURES GLISSANTES                                                                      */		
		/*----------------------------------------------------------------------------------------------*/		
		// Requête au serveur
		var deferred = $.get("./scripts/PHP/HeuresGlissantes_PLTF.php?date=".concat(date));
		// Retour du serveur (traitement des données JSON)
		deferred.done(function(jsonData) {
			var update = false;
			if (jsonData[1].length > 0) {
				update = true;
				if ($("#LIG_HG_LFPG").children().length == 0) {
					addHTML("LIG_HG_LFPG", ["lfpg_hg"], ["12"]);
				}
				createGraph_HG("LFPG", jsonData[1], WdayInit);
				$("#lfpg_hg").removeClass("no-data");    // pour supprimer la classe
			} else {
//				$("#LIG_HG_LFPG").empty();
				if (jsonData[1].length == 0) {
					if($("#lfpg_hg").size() != 1) { // si la div #lfpg_hg existe déjà, pas la peine de la recréer.
						addHTML("LIG_HG_LFPG", ["lfpg_hg"], ["12"]);
					}
					createGraph_HG("LFPG", jsonData[1], WdayInit);
					$("#lfpg_hg").addClass("no-data");    // pour ajouter la classe
				}
			}
 
			if (jsonData[2].length > 0) {
				update = true;
				if ($("#LIG_HG_LFPO").children().length == 0) {
					addHTML("LIG_HG_LFPO", ["lfpo_hg"], ["12"]);
				}
				createGraph_HG("LFPO", jsonData[2], WdayInit);
				$("#lfpo_hg").removeClass("no-data");    // pour supprimer la classe
			} else {
//				$("#LIG_HG_LFPO").empty();
				if (jsonData[2].length == 0) {
					if($("#lfpo_hg").size() != 1) { // si la div #lfpo_hg existe déjà, pas la peine de la recréer.
						addHTML("LIG_HG_LFPO", ["lfpo_hg"], ["12"]);
					}
					createGraph_HG("LFPO", jsonData[2], WdayInit);
					$("#lfpo_hg").addClass("no-data");    // pour ajouter la classe
				}
			}
			if (jsonData[3].length > 0 || jsonData[0].length > 0) {
				update = true;
				if ($("#LIG_HG_LFPB_LFOB").children().length == 0) {
//					addHTML("lfob", ["lfob_hg"], ["12"]); // on se place dans le div row ID="lfob", on crée une div lfob_hg col-md-12
					addHTML("LIG_HG_LFPB_LFOB", ["lfpb_hg_left","lfob_hg_right"], ["6","6"]); // Graph de gauche=LFPB / Graph de droite=LFOB
				}
				createGraph_HG("LFPB", jsonData[3], WdayInit);
				$("#lfpb_hg_left").removeClass("no-data");    // pour supprimer la classe
				createGraph_HG("LFOB", jsonData[0], WdayInit);
				$("#lfob_hg_right").removeClass("no-data");    // pour supprimer la classe
				if (jsonData[0].length == 0) {
						$("#lfob_hg_right").addClass("no-data");    // pour ajouter la classe
				}
				if (jsonData[3].length == 0) {
						$("#lfpb_hg_left").addClass("no-data");    // pour ajouter la classe
				}
			} else {
//				$("#LIG_HG_LFPB_LFOB").empty();
				if (jsonData[3].length == 0) {
					if($("#lfob_hg_right").size() != 1) { // si la div #lfpo_hg existe déjà, pas la peine de la recréer.
						addHTML("LIG_HG_LFPB_LFOB", ["lfpb_hg_left","lfob_hg_right"], ["6","6"]); // Graph de gauche=LFPB / Graph de droite=LFOB
					}
					createGraph_HG("LFOB", jsonData[3], WdayInit);
					$("#lfpb_hg_left").addClass("no-data");    // pour ajouter la classe
				}
				if (jsonData[0].length == 0) {
					if($("#lfpb_hg_left").size() != 1) { // si la div #lfpo_hg existe déjà, pas la peine de la recréer.
						addHTML("LIG_HG_LFPB_LFOB", ["lfpb_hg_left","lfob_hg_right"], ["6","6"]); // Graph de gauche=LFPB / Graph de droite=LFOB
					}
					createGraph_HG("LFPB", jsonData[0], WdayInit);
					$("#lfob_hg_right").addClass("no-data");    // pour ajouter la classe
				}
			}
			if (update){
				$(".graph-loading").hide();
				$("#btn-save-pdf").attr("disabled", false);
				$("#div-info").children('.message-p-info').html('');
				$("#div-info").children('.icon-p-info').html('');
			} else {
				$(".graph-loading").hide();
				$("#div-info").children('.message-p-info').html('<strong>Certaines données sont indisponibles...</strong>');
				$("#div-info").children('.icon-p-info').html('<i class="fa fa-exclamation-triangle fa-lg"></i>');
			}
		});
	}
 
	/*----------------------------------------------------------------------------------------------*/		
	/* VARIABLES CONSTANTES POUR LES GRAPHES                                                        */		
	/*----------------------------------------------------------------------------------------------*/		
 
	var WLigneCSV = "TRANCHES HORAIRES (TU);INTERVALES;NB DEPART;NB ARRIVEE;TOTAL" + "\n";
 
	var WPaddingTexte_xAxis = 20;
	var WPaddingTexte_yAxis = 20;
	var P_AxeTextSize = 15;
	var P_CoulFond = "#ffffff"; // blanc
	var P_TextColor = "#5d6d7e";
	var P_Colors = ["#FE0000"];
	var P_TAB_Colors = ['#008000', '#ff0000', '#0000FF']; // Couleur des courbes.
 
	/*----------------------------------------------------------------------------------------------*/		
	/* Graph HEURES GLISSANTES - GRAND                                                              */		
	/*----------------------------------------------------------------------------------------------*/		
	function createGraph_HG(P_Plateforme, jsonData, P_dayInit){
 
		var i = 0,
			WTot_Gen = 0,
			WTot_Dep = 0,
			WTot_Arr = 0,
			TranchesHoraires_X = [],
			SommeTH_Y = [],
			TotalARR_Y = [],
			TotalDEP_Y = [],
			Interv = [];
 
		if (P_Plateforme == "LFPO")
			{
				// Remplissage des tableaux SANS somme par heure
				while (i < jsonData.length){
					var hdeb = jsonData[i][1].slice(0,2);
					var WTotal = parseInt(jsonData[i][16]);
					var WTotARR = parseInt(jsonData[i][8]);
					var WTotDEP = parseInt(jsonData[i][15]);
					var WDebInt = jsonData[i][1].slice(0,4); // Pour ne pas prendre les secondes
					var WFinInt = jsonData[i][1].slice(7,12); // Pour ne pas prendre les secondes
					var WInterval = WDebInt + " - " + WFinInt;
					TranchesHoraires_X.push(hdeb);
					Interv.push(WInterval);
					TotalARR_Y.push(WTotARR);
					TotalDEP_Y.push(WTotDEP);
					SommeTH_Y.push(WTotal);
					if (jsonData[i][1].slice(2,4) == "00")
						{
							WTot_Arr = WTot_Arr + WTotARR;
							WTot_Dep = WTot_Dep + WTotDEP;
							WTot_Gen = WTot_Gen + WTotal;
						}
					i += 1;
				}
				if (jsonData.length <= 0)
					{
						var WTexteInfo = "PAS DE DONNEES";
					}
				else
					{
						var WTexteInfo = "Total Mvts = " + WTot_Gen + " - Total Arr = " + WTot_Arr + " - Total Dep = " + WTot_Dep;
		//				$("#Info_lfpo_hg").html('<strong>' + WTexteInfo + '</strong>');
					}
				var HG_Chart_C1 = echarts.init(document.getElementById("lfpo_hg"));  //
 
//console.log('$("#lfpo_hg").width()='+$("#lfpo_hg").width());				
 
				val = ($("#lfpo_hg").width() / 70);
				padding_array = [0, 0, 0, val];					// [haut, droit, bas, gauche]
				P_Titre = "Heures Glissantes LFPO - " + P_dayInit;
				var P_CoulFondGraph = "#E1FFE9";
			}
		if (P_Plateforme == "LFPG")
			{
				// Remplissage des tableaux SANS somme par heure
				while (i < jsonData.length){
					var hdeb = jsonData[i][1].slice(0,2);
					var WTotal = parseInt(jsonData[i][20]);
					var WTotARR = parseInt(jsonData[i][10]);
					var WTotDEP = parseInt(jsonData[i][19]);
					var WDebInt = jsonData[i][1].slice(0,4); // Pour ne pas prendre les secondes
					var WFinInt = jsonData[i][1].slice(7,12); // Pour ne pas prendre les secondes
					var WInterval = WDebInt + " - " + WFinInt;
 
//console.log("jsonData[i][1]="+jsonData[i][1]);					
//console.log("WDebInt="+WDebInt);
//console.log("WFinInt="+WFinInt);
console.log("WInterval="+WInterval);					
 
					TranchesHoraires_X.push(hdeb);
					Interv.push(WInterval);
					SommeTH_Y.push(WTotal);
					TotalARR_Y.push(WTotARR);
					TotalDEP_Y.push(WTotDEP);
					if (jsonData[i][1].slice(2,4) == "00")
						{
							WTot_Arr = WTot_Arr + WTotARR;
							WTot_Dep = WTot_Dep + WTotDEP;
							WTot_Gen = WTot_Gen + WTotal;
						}
					i += 1;
				}
				if (jsonData.length <= 0)
					{
						var WTexteInfo = "PAS DE DONNEES";
					}
				else
					{
						var WTexteInfo = "Total Mvts = " + WTot_Gen + " - Total Arr = " + WTot_Arr + " - Total Dep = " + WTot_Dep;
		//				$("#Info_lfpo_hg").html('<strong>' + WTexteInfo + '</strong>');
					}
				var HG_Chart_C2 = echarts.init(document.getElementById("lfpg_hg"));  //
 
//console.log('$("#lfpg_hg").width()='+$("#lfpg_hg").width());				
 
				val = ($("#lfpg_hg").width() / 70);
				padding_array = [0, 0, 0, val];					// [haut, droit, bas, gauche]
				P_Titre = "Heures Glissantes LFPG - " + P_dayInit;
				var P_CoulFondGraph = "#FFFFD8"; //"#FFF7FC"; //"#FFFFC8";
			}
		if (P_Plateforme == "LFPB")
			{
				// Remplissage des tableaux SANS somme par heure
				while (i < jsonData.length){
					var hdeb = jsonData[i][1].slice(0,2);
					var WTotal = parseInt(jsonData[i][14]);
					var WTotARR = parseInt(jsonData[i][7]);
					var WTotDEP = parseInt(jsonData[i][13]);
					var WDebInt = jsonData[i][1].slice(0,4); // Pour ne pas prendre les secondes
					var WFinInt = jsonData[i][1].slice(7,12); // Pour ne pas prendre les secondes
					var WInterval = WDebInt + " - " + WFinInt;
					TranchesHoraires_X.push(hdeb);
					Interv.push(WInterval);
					SommeTH_Y.push(WTotal);
					TotalARR_Y.push(WTotARR);
					TotalDEP_Y.push(WTotDEP);
					if (jsonData[i][1].slice(2,4) == "00")
						{
							WTot_Arr = WTot_Arr + WTotARR;
							WTot_Dep = WTot_Dep + WTotDEP;
							WTot_Gen = WTot_Gen + WTotal;
						}
					i += 1;
				}
				if (jsonData.length <= 0)
					{
						var WTexteInfo = "PAS DE DONNEES";
					}
				else
					{
						var WTexteInfo = "Total Mvts = " + WTot_Gen + " - Total Arr = " + WTot_Arr + " - Total Dep = " + WTot_Dep;
		//				$("#Info_lfpo_hg").html('<strong>' + WTexteInfo + '</strong>');
					}
				var HG_Chart_C3 = echarts.init(document.getElementById("lfpb_hg_left"));  //
				val = ($("#lfpb_hg_left").width() / 120);
				padding_array = [0, 0, 0, val];					// [haut, droit, bas, gauche]
				P_Titre = "Heures Glissantes LFPB - " + P_dayInit;
				var P_CoulFondGraph = "#DDF6FF";
			}
 
		if (P_Plateforme == "LFOB")
			{
				// Remplissage des tableaux SANS somme par heure
				while (i < jsonData.length){
					var hdeb = jsonData[i][1].slice(0,2);
					var WTotal = parseInt(jsonData[i][4]);
					var WTotARR = parseInt(jsonData[i][2]);
					var WTotDEP = parseInt(jsonData[i][3]);
					var WDebInt = jsonData[i][1].slice(0,4); // Pour ne pas prendre les secondes
					var WFinInt = jsonData[i][1].slice(7,12); // Pour ne pas prendre les secondes
					var WInterval = WDebInt + " - " + WFinInt;
					TranchesHoraires_X.push(hdeb);
					Interv.push(WInterval);
					SommeTH_Y.push(WTotal);
					TotalARR_Y.push(WTotARR);
					TotalDEP_Y.push(WTotDEP);
					if (jsonData[i][1].slice(2,4) == "00")
						{
							WTot_Arr = WTot_Arr + WTotARR;
							WTot_Dep = WTot_Dep + WTotDEP;
							WTot_Gen = WTot_Gen + WTotal;
						}
					i += 1;
				}
				if (jsonData.length <= 0)
					{
						var WTexteInfo = "PAS DE DONNEES";
					}
				else
					{
						var WTexteInfo = "Total Mvts = " + WTot_Gen + " - Total Arr = " + WTot_Arr + " - Total Dep = " + WTot_Dep;
		//				$("#Info_lfpo_hg").html('<strong>' + WTexteInfo + '</strong>');
					}
				var HG_Chart_C4 = echarts.init(document.getElementById("lfob_hg_right"));  //
				val = ($("#lfob_hg_right").width() / 120);
				padding_array = [0, 0, 0, val];					// [haut, droit, bas, gauche]
				P_Titre = "Heures Glissantes LFOB - " + P_dayInit;
				var P_CoulFondGraph = "#FEEDED";
			}
 
//console.log("TranchesHoraires_X="+JSON.stringify( TranchesHoraires_X));
//console.log("SommeTH_Y="+JSON.stringify( SommeTH_Y));
 
		var HG_ChartOpt = {
			backgroundColor: P_CoulFond,
			color: P_TAB_Colors,
			textStyle: {
				fontFamily: 'sans-serif'
			},
			title: {
				padding: [15, 0, 0, 0],					// Title space around content // [haut, droit, bas, gauche]
				left: 'center',							// Distance between grid component and the left side of the container
				text: P_Titre,
				textStyle:	{
					color: '#000',
					fontStyle: 'normal',
					fontWeight: 'bold',
					fontFamily: 'sans-serif',
					fontSize: 20,
				},
			},
			grid: {
				show: true,							// Whether to show the grid in rectangular coordinate
				backgroundColor: P_CoulFondGraph, // fond du graphe
				top: 70,								// Distance between grid component and the top side of the container
				bottom: 100,								// Distance between grid component and the bottom side of the container
				left: 60,								// Distance between grid component and the left side of the container
				right: 30								// Distance between grid component and the right side of the container
			},
			legend: {
				show: true,
				type : 'plain',
				orient: 'horizontal',
				borderColor: '#95a5a6',
				borderWidth: 0, // Permet de ne pas avoir de bordure sans supprimer les paramètres.
				borderRadius: 7,
				shadowColor: 'rgba(0, 0, 0, 0.5)',
				shadowBlur: 10,
				itemWidth: 30,
				itemHeight: 11,
				left: 'center',
				top: 40
			},
			axisPointer: {
				show: true,
				lineStyle: {
					type: 'dashed',
					width: 1 						// Epaisseur de la ligne verticale
				},
				label: {
					backgroundColor: '#777'
				}
			},			
			xAxis: {									// The X axis in Cartesian (rect.) coordinate
				axisLine: {
					lineStyle: {
						color: 'rgb(105,105,105)',
						width: 2,
						onZero: true,
					}
				},
				splitArea: { 							// Permet de mettre un fond de couleurs différentes
					show: false,
					areaStyle:{
						color:['rgba(144,238,144,0.3)','rgba(135,200,250,0.3)']
					},
				},
				splitLine: {
					show: true, // True => quadrillage VERTICAL sur le graphe
					lineStyle: {
						color: "#CCC",
						type: "dotted",
						width: 1
					},
				},
				type: 'category',
				name: 'Heures Glissantes (TU)' + '\n\n' + WTexteInfo,
				nameLocation: 'center',
				nameTextStyle: {
					padding: WPaddingTexte_xAxis,
					fontWeight: 'bold',
					color: P_TextColor,
					fontSize : P_AxeTextSize
				},
				max: 'dataMax',
				position: 'bottom',
				boundaryGap: false,
				axisTick: {
					show: true,					 		// Whether to show the axis tick
					inside: false,
					length: 3
				},
				axisLabel: {
					interval: 59, 						// Définit le nombre d'intervals sur xAxis => 59 car 60 val. par heure
					rotate:0,
					margin: 10,
					showMinLabel: false,
					align : 'center',
//					padding: padding_array, 			// [haut, droit, bas, gauche] // Plus nécessaire, remplacer par boudarygap:false + align:c'enter'
					color: 'rgb(050,050,050)'
				},
				axisPointer: {
					show:true,
					label : {
						formatter: function (params) {
console.log("Interv="+JSON.stringify( Interv));
console.log("Interv.length="+Interv.length);							
console.log("params.value="+params.value);							
console.log("params.value * 60="+params.value * 60);							
console.log("Interv[parseInt(params.value)="+Interv[parseInt(params.value)]);							
console.log("Interv[parseInt(params.value * 60)="+Interv[parseInt(params.value * 60)]);							
						return Interv[parseInt(params.value)];
						}
					},
				},
				data: TranchesHoraires_X
			},
			yAxis: {
				axisLine: {
					lineStyle: {
						color: 'rgb(165,165,165)',
						width: 2
					}
				},
				axisTick: {
					length: 3,
				},
				axisLabel: { // Settings related to axis label
					color: 'rgb(070,070,070)',
					formatter: '{value}' // En mettant au format text, on enlève le formattage : 1,400 au lieu de 1400
				},
				splitLine: {
					lineStyle: {
						width: 1,
						type: "dotted"
					}
				},
				type: 'value',
				scale: true, // Permet d'avoir une échelle plus adaptée, tenant compte des min et max
				name: 'Mouvements',
				nameLocation: 'center',
				nameRotate: 90,
				nameTextStyle: {
					padding: WPaddingTexte_yAxis,
					fontWeight: 'bold',
					color: P_TextColor,
					fontSize : P_AxeTextSize
				},
				axisLabel: { 							// Settings related to axis label
					color: 'rgb(070,070,070)'
				},
				axisPointer: {
					show:true,
					label: {
						formatter: function (params) {
							return parseInt(params.value);// + "=>";
						}
					}
				}
			},
			toolbox: {									// Cartouche en haut à droite
				show: true,
				padding: [10, 15, 0, 0],	// [haut, droit, bas, gauche]
				itemSize: 14,
				itemGap: 5,
				showTitle: true,		
				feature: {
					restore: {
						show: true,
						title: 'Rechargement'
					},
					magicType: {
						type: ['line', 'bar'],
						title: {
							line: 'Ligne',
							bar: 'Histo.'
						}
					},
					saveAsImage: {
						title:'Sauvegarde' + '\n' + 'PNG'
					},
//            myTool1: {
//                show: true,
//                title: 'Infos masquées',
//                icon: 'path://M432.45,595.444c0,2.177-4.661,6.82-11.305,6.82c-6.475,0-11.306-4.567-11.306-6.82s4.852-6.812,11.306-6.812C427.841,588.632,432.452,593.191,432.45,595.444L432.45,595.444z M421.155,589.876c-3.009,0-5.448,2.495-5.448,5.572s2.439,5.572,5.448,5.572c3.01,0,5.449-2.495,5.449-5.572C426.604,592.371,424.165,589.876,421.155,589.876L421.155,589.876z M421.146,591.891c-1.916,0-3.47,1.589-3.47,3.549c0,1.959,1.554,3.548,3.47,3.548s3.469-1.589,3.469-3.548C424.614,593.479,423.062,591.891,421.146,591.891L421.146,591.891zM421.146,591.891',
//                onclick: function () {
//						if (P_Plateforme == "LFPO")
//							{
//								$('#Info_lfpo_hg').css('display','grid'); // Effacement de la DIV Info_lfpo_hg
//							}
//						if (P_Plateforme == "LFPG")
//							{
//								$('#Info_lfpg_hg').css('display','grid'); // Effacement de la DIV Info_lfpo_hg
//							}
//						if (P_Plateforme == "LFPB")
//							{
//								$('#Info_lfpb_hg').css('display','grid'); // Effacement de la DIV Info_lfpo_hg
//							}
//                }
//            },
					dataView: {
						show: true, // Affiche ou non l'icône pour afficher les données utilisées.
						readOnly: false,
						backgroundColor: '#88ABD9',
						title: 'Export' + '\n' + 'CSV',
						lang: ['Données utilisées pour le graphique...', 'Retour', 'Export CSV'], 
						optionToContent: function(opt) {
							var axisData = opt.xAxis[0].data;
							var series = opt.series;
							var WTable01 = '<div id="ID_Table_Data">';
							WTable01 = WTable01 + '<table class="table-fill">';
							WTable01 = WTable01 + '<thead><tr>';
							WTable01 = WTable01 + '<th class="text-center" style="width:120px">Tranches Horaires (TU)</th>'
							WTable01 = WTable01 + '<th class="text-center" style="width:120px">Intervales</th>'
							WTable01 = WTable01 + '<th class="text-center">' + series[1].name + '</th>';
							WTable01 = WTable01 + '<th class="text-center">' + series[2].name + '</th>';
							WTable01 = WTable01 + '<th class="text-center">' + series[0].name + '</th>';
							WTable01 = WTable01 + '</tr></thead>';
							WTable01 = WTable01 + '<tbody class="table-hover">';
							for (var i = 0, l = axisData.length; i < l; i++) {
								WLigneCSV = WLigneCSV + TranchesHoraires_X[i] + ";" + Interv[parseInt(i)] + ";";
								WLigneCSV = WLigneCSV + series[1].data[i] + ";" + series[2].data[i] + ";" + series[0].data[i];
								WLigneCSV = WLigneCSV + "\n";
								WTable01 += '<tr>'
										 + '<td class="text-center">' + TranchesHoraires_X[i] + '</td>'
										 + '<td class="text-center">' + Interv[parseInt(i)] + '</td>'
										 + '<td class="text-center">' + series[1].data[i] + '</td>'
										 + '<td class="text-center">' + series[2].data[i] + '</td>'
										 + '<td class="text-center">' + series[0].data[i] + '</td>'
										 + '</tr>';
							}
							WTable01 += '</div></tbody></table>';
							return WTable01;
						},
						contentToOption: function(){ // Va permetrtre de gérer l'exportation en CSV
							var NomCSV = "HeuresGlissantes_" + P_dayInit;
							var Ext = ".CSV";
							var FicCSV = NomCSV + Ext;
// Ecrire le contenu de la variable WLigneCSV dans un fichier
							download(FicCSV, WLigneCSV);
						}
					}
				}
			},
			tooltip: {
				show: true,
				trigger: 'axis', 						// Triggered by axes.
				axisPointer: {
					show: true,
					type: 'cross',
//					label : {
//						formatter: function (params) {
//						return Interv[parseInt(params.value) * 60]; // * 60 => on se déplace de 60 dans le tableau de 1440 items
//						}
//					},
					lineStyle: {
						width: 1 						// Epaisseur de la ligne verticale
					}
				}
			},
			series : [
				{
					type: 'line',
					name: 'Arr + Dép',					// Series name used for displaying in tooltip and filtering with legend
					symbolSize: 7,
					showSymbol: false,					// Whether to show symbol. It would be shown during tooltip hover
					lineStyle: {
						width: 1,
						type: 'solid' //'dotted' / 'dashed'
					},
					smooth: false,						// Permet de lisser ou non les courbes
					data: SommeTH_Y
				},
				{
					type: 'line',
					name: 'Arr',					// Series name used for displaying in tooltip and filtering with legend
					symbolSize: 7,
					showSymbol: false,					// Whether to show symbol. It would be shown during tooltip hover
					lineStyle: {
						width: 1,
						type: 'solid' //'dotted' / 'dashed'
					},
					smooth: false,						// Permet de lisser ou non les courbes
					data: TotalARR_Y
				},
				{
					type: 'line',
					name: 'Dép',					// Series name used for displaying in tooltip and filtering with legend
					symbolSize: 7,
					showSymbol: false,					// Whether to show symbol. It would be shown during tooltip hover
					lineStyle: {
						width: 1,
						type: 'solid' //'dotted' / 'dashed'
					},
					smooth: false,						// Permet de lisser ou non les courbes
					data: TotalDEP_Y
				}
			]
		};
 
		if (P_Plateforme == "LFPO")
			{
				HG_Chart_C1.setOption(HG_ChartOpt);
				var HG_Chart_C1 = echarts.init(document.getElementById("lfpo_hg"));  //
			}
		if (P_Plateforme == "LFPG")
			{
				HG_Chart_C2.setOption(HG_ChartOpt);
				var HG_Chart_C2 = echarts.init(document.getElementById("lfpg_hg"));  //
			}
		if (P_Plateforme == "LFPB")
			{
				HG_Chart_C3.setOption(HG_ChartOpt);
				var HG_Chart_C3 = echarts.init(document.getElementById("lfpb_hg_left"));  //
			}
		if (P_Plateforme == "LFOB")
			{
				HG_Chart_C4.setOption(HG_ChartOpt);
				var HG_Chart_C4 = echarts.init(document.getElementById("lfob_hg_right"));  //
			}
	}
 
// ################################################# FIN Heures Glissantes #################################################
 
...
...
...
});
//------------------------------------------------------------------------------------

Voila, j'espère que je n'ai rien oublié de vous fournir pour que ce soit le plus facile possible de m'aider.

PS : attention, je précise qu'il ne faut pas que les libellés des X soient modifiés

Merci d'avance.