IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Bibliothèques & Frameworks Discussion :

Modifier les informations de la bulle à chaque déplacement de la souris [ECharts]


Sujet :

Bibliothèques & Frameworks

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éprouvé Avatar de Zebulon777
    Homme Profil pro
    Informaticien
    Inscrit en
    Février 2005
    Messages
    1 327
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 59
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Informaticien

    Informations forums :
    Inscription : Février 2005
    Messages : 1 327
    Par défaut Modifier les informations de la bulle à chaque déplacement de la souris
    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 : 210
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.

  2. #2
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    17 227
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 17 227
    Par défaut
    Bonjour,
    je pense qu'il te faut reprendre les discussions dans lesquelles nous avons déjà abordé le sujet.


  3. #3
    Membre éprouvé Avatar de Zebulon777
    Homme Profil pro
    Informaticien
    Inscrit en
    Février 2005
    Messages
    1 327
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 59
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Informaticien

    Informations forums :
    Inscription : Février 2005
    Messages : 1 327
    Par défaut
    Oui, c'est ce que j'ai commencé par faire, mais impossible d'avoir ce qu'on me demande.

    Et comme, je suis sur autre chose pour le moment, je n'ai pas le temps de recommencer les tests, donc je laisse comme ça pour le moment.

    Mais de ce que je me souviens des essais que j'ai fait la semaine dernière, à chaque fois que je modifais quelque chose, ça cassait autre chose ; il faudrait donc que je reprenne le tout petit à petit, mais je n'ai pas du tout le temps ; on me presse (le citron ) sur autre chose qui est plus urgent que ce qui était urgent la semaine passée Les méthodes de travail de la boite sont très... heu... mouvantes, changeantes, mais on s'adapte...

    Mais je suis certain que tu as déjà trouvé où j'avais merdouillé ? Avoue ?

  4. #4
    Membre éprouvé Avatar de Zebulon777
    Homme Profil pro
    Informaticien
    Inscrit en
    Février 2005
    Messages
    1 327
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 59
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Informaticien

    Informations forums :
    Inscription : Février 2005
    Messages : 1 327
    Par défaut
    Bonjour tout le monde et bonne année 2019.

    Je relance la discussion car je ne m'en sors pas du tout ; j'ai, bien sur suivi les conseils et suis allé voir les autres sujets, mais je n'y arrive pas (ce n'est pas une vraie excuse, mais je ne suis pas informaticien au départ je compte sur votre compréhension )

    J'ai repris toute la partie concernée sur un nouveau graphique mais je bloque sur plusieurs soucis :
    - il faut que la date apparaisse dans la bulle d'aide et que ça change au moindre changement de position de la souris, alors que je n'ai que le numéro de semaine pour le moment, cette date étant différente selon les années, il faut qu'elle apparaisse au même niveau que les séries : point couleur jour date : valeur
    - les intervalles de l'axe des X ne correspondent pas : il y a un léger décallage, je suis toujours dans la semaine N-1 et la bulle affiche la semaine N ; peut-être que cela est dû au fait que la semaine 1 de 2019 ne contient que 6 jours, le premier jour étant la fin de 2018, mais quoi qu'il en soit, je n'arrive pas à trouver de solution.

    Nom : Echarts08-1.png
Affichages : 149
Taille : 23,4 Ko

    Voici les infos :
    Code : 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
     
    NumSemaine_X=["1","1","1","1","1","1","2","2","2","2","2","2","2","3","3","3","3","3","3","3","4","4","4","4","4","4","4","5","5","5","5","5","5","5","6","6","6","6","6","6","6","7","7","7","7","7","7","7","8","8","8","8","8","8","8","9","9","9","9","9","9","9","10","10","10","10","10","10","10","11","11","11","11","11","11","11","12","12","12","12","12","12","12","13","13","13","13","13","13","13","14","14","14","14","14","14","14","15","15","15","15","15","15","15","16","16","16","16","16","16","16","17","17","17","17","17","17","17","18","18","18","18","18","18","18","19","19","19","19","19","19","19","20","20","20","20","20","20","20","21","21","21","21","21","21","21","22","22","22","22","22","22","22","23","23","23","23","23","23","23","24","24","24","24","24","24","24","25","25","25","25","25","25","25","26","26","26","26","26","26","26","27","27","27","27","27","27","27","28","28","28","28","28","28","28","29","29","29","29","29","29","29","30","30","30","30","30","30","30","31","31","31","31","31","31","31","32","32","32","32","32","32","32","33","33","33","33","33","33","33","34","34","34","34","34","34","34","35","35","35","35","35","35","35","36","36","36","36","36","36","36","37","37","37","37","37","37","37","38","38","38","38","38","38","38","39","39","39","39","39","39","39","40","40","40","40","40","40","40","41","41","41","41","41","41","41","42","42","42","42","42","42","42","43","43","43","43","43","43","43","44","44","44","44","44","44","44","45","45","45","45","45","45","45","46","46","46","46","46","46","46","47","47","47","47","47","47","47","48","48","48","48","48","48","48","49","49","49","49","49","49","49","50","50","50","50","50","50","50","51","51","51","51","51","51","51","52","52","52","52","52","52","52","1"]
     
    JourTXT=["Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche","Lundi"]
     
    DateMouv_N["2019-01-01","2019-01-02","2019-01-03","2019-01-04","2019-01-05","2019-01-06","2019-01-07","2019-01-08","2019-01-09","2019-01-10","2019-01-11","2019-01-12","2019-01-13","2019-01-14","2019-01-15","2019-01-16","2019-01-17","2019-01-18","2019-01-19","2019-01-20","2019-01-21","2019-01-22","2019-01-23","2019-01-24","2019-01-25","2019-01-26","2019-01-27","2019-01-28","2019-01-29","2019-01-30","2019-01-31","2019-02-01","2019-02-02","2019-02-03","2019-02-04","2019-02-05","2019-02-06","2019-02-07","2019-02-08","2019-02-09","2019-02-10","2019-02-11","2019-02-12","2019-02-13","2019-02-14","2019-02-15","2019-02-16","2019-02-17","2019-02-18","2019-02-19","2019-02-20","2019-02-21","2019-02-22","2019-02-23","2019-02-24","2019-02-25","2019-02-26","2019-02-27","2019-02-28","2019-03-01","2019-03-02","2019-03-03","2019-03-04","2019-03-05","2019-03-06","2019-03-07","2019-03-08","2019-03-09","2019-03-10","2019-03-11","2019-03-12","2019-03-13","2019-03-14","2019-03-15","2019-03-16","2019-03-17","2019-03-18","2019-03-19","2019-03-20","2019-03-21","2019-03-22","2019-03-23","2019-03-24","2019-03-25","2019-03-26","2019-03-27","2019-03-28","2019-03-29","2019-03-30","2019-03-31","2019-04-01","2019-04-02","2019-04-03","2019-04-04","2019-04-05","2019-04-06","2019-04-07","2019-04-08","2019-04-09","2019-04-10","2019-04-11","2019-04-12","2019-04-13","2019-04-14","2019-04-15","2019-04-16","2019-04-17","2019-04-18","2019-04-19","2019-04-20","2019-04-21","2019-04-22","2019-04-23","2019-04-24","2019-04-25","2019-04-26","2019-04-27","2019-04-28","2019-04-29","2019-04-30","2019-05-01","2019-05-02","2019-05-03","2019-05-04","2019-05-05","2019-05-06","2019-05-07","2019-05-08","2019-05-09","2019-05-10","2019-05-11","2019-05-12","2019-05-13","2019-05-14","2019-05-15","2019-05-16","2019-05-17","2019-05-18","2019-05-19","2019-05-20","2019-05-21","2019-05-22","2019-05-23","2019-05-24","2019-05-25","2019-05-26","2019-05-27","2019-05-28","2019-05-29","2019-05-30","2019-05-31","2019-06-01","2019-06-02","2019-06-03","2019-06-04","2019-06-05","2019-06-06","2019-06-07","2019-06-08","2019-06-09","2019-06-10","2019-06-11","2019-06-12","2019-06-13","2019-06-14","2019-06-15","2019-06-16","2019-06-17","2019-06-18","2019-06-19","2019-06-20","2019-06-21","2019-06-22","2019-06-23","2019-06-24","2019-06-25","2019-06-26","2019-06-27","2019-06-28","2019-06-29","2019-06-30","2019-07-01","2019-07-02","2019-07-03","2019-07-04","2019-07-05","2019-07-06","2019-07-07","2019-07-08","2019-07-09","2019-07-10","2019-07-11","2019-07-12","2019-07-13","2019-07-14","2019-07-15","2019-07-16","2019-07-17","2019-07-18","2019-07-19","2019-07-20","2019-07-21","2019-07-22","2019-07-23","2019-07-24","2019-07-25","2019-07-26","2019-07-27","2019-07-28","2019-07-29","2019-07-30","2019-07-31","2019-08-01","2019-08-02","2019-08-03","2019-08-04","2019-08-05","2019-08-06","2019-08-07","2019-08-08","2019-08-09","2019-08-10","2019-08-11","2019-08-12","2019-08-13","2019-08-14","2019-08-15","2019-08-16","2019-08-17","2019-08-18","2019-08-19","2019-08-20","2019-08-21","2019-08-22","2019-08-23","2019-08-24","2019-08-25","2019-08-26","2019-08-27","2019-08-28","2019-08-29","2019-08-30","2019-08-31","2019-09-01","2019-09-02","2019-09-03","2019-09-04","2019-09-05","2019-09-06","2019-09-07","2019-09-08","2019-09-09","2019-09-10","2019-09-11","2019-09-12","2019-09-13","2019-09-14","2019-09-15","2019-09-16","2019-09-17","2019-09-18","2019-09-19","2019-09-20","2019-09-21","2019-09-22","2019-09-23","2019-09-24","2019-09-25","2019-09-26","2019-09-27","2019-09-28","2019-09-29","2019-09-30","2019-10-01","2019-10-02","2019-10-03","2019-10-04","2019-10-05","2019-10-06","2019-10-07","2019-10-08","2019-10-09","2019-10-10","2019-10-11","2019-10-12","2019-10-13","2019-10-14","2019-10-15","2019-10-16","2019-10-17","2019-10-18","2019-10-19","2019-10-20","2019-10-21","2019-10-22","2019-10-23","2019-10-24","2019-10-25","2019-10-26","2019-10-27","2019-10-28","2019-10-29","2019-10-30","2019-10-31","2019-11-01","2019-11-02","2019-11-03","2019-11-04","2019-11-05","2019-11-06","2019-11-07","2019-11-08","2019-11-09","2019-11-10","2019-11-11","2019-11-12","2019-11-13","2019-11-14","2019-11-15","2019-11-16","2019-11-17","2019-11-18","2019-11-19","2019-11-20","2019-11-21","2019-11-22","2019-11-23","2019-11-24","2019-11-25","2019-11-26","2019-11-27","2019-11-28","2019-11-29","2019-11-30","2019-12-01","2019-12-02","2019-12-03","2019-12-04","2019-12-05","2019-12-06","2019-12-07","2019-12-08","2019-12-09","2019-12-10","2019-12-11","2019-12-12","2019-12-13","2019-12-14","2019-12-15","2019-12-16","2019-12-17","2019-12-18","2019-12-19","2019-12-20","2019-12-21","2019-12-22","2019-12-23","2019-12-24","2019-12-25","2019-12-26","2019-12-27","2019-12-28","2019-12-29","2019-12-30"]
     
    DateMouv_N1["2018-01-02","2018-01-03","2018-01-04","2018-01-05","2018-01-06","2018-01-07","2018-01-08","2018-01-09","2018-01-10","2018-01-11","2018-01-12","2018-01-13","2018-01-14","2018-01-15","2018-01-16","2018-01-17","2018-01-18","2018-01-19","2018-01-20","2018-01-21","2018-01-22","2018-01-23","2018-01-24","2018-01-25","2018-01-26","2018-01-27","2018-01-28","2018-01-29","2018-01-30","2018-01-31","2018-02-01","2018-02-02","2018-02-03","2018-02-04","2018-02-05","2018-02-06","2018-02-07","2018-02-08","2018-02-09","2018-02-10","2018-02-11","2018-02-12","2018-02-13","2018-02-14","2018-02-15","2018-02-16","2018-02-17","2018-02-18","2018-02-19","2018-02-20","2018-02-21","2018-02-22","2018-02-23","2018-02-24","2018-02-25","2018-02-26","2018-02-27","2018-02-28","2018-03-01","2018-03-02","2018-03-03","2018-03-04","2018-03-05","2018-03-06","2018-03-07","2018-03-08","2018-03-09","2018-03-10","2018-03-11","2018-03-12","2018-03-13","2018-03-14","2018-03-15","2018-03-16","2018-03-17","2018-03-18","2018-03-19","2018-03-20","2018-03-21","2018-03-22","2018-03-23","2018-03-24","2018-03-25","2018-03-26","2018-03-27","2018-03-28","2018-03-29","2018-03-30","2018-03-31","2018-04-01","2018-04-02","2018-04-03","2018-04-04","2018-04-05","2018-04-06","2018-04-07","2018-04-08","2018-04-09","2018-04-10","2018-04-11","2018-04-12","2018-04-13","2018-04-14","2018-04-15","2018-04-16","2018-04-17","2018-04-18","2018-04-19","2018-04-20","2018-04-21","2018-04-22","2018-04-23","2018-04-24","2018-04-25","2018-04-26","2018-04-27","2018-04-28","2018-04-29","2018-04-30","2018-05-01","2018-05-02","2018-05-03","2018-05-04","2018-05-05","2018-05-06","2018-05-07","2018-05-08","2018-05-09","2018-05-10","2018-05-11","2018-05-12","2018-05-13","2018-05-14","2018-05-15","2018-05-16","2018-05-17","2018-05-18","2018-05-19","2018-05-20","2018-05-21","2018-05-22","2018-05-23","2018-05-24","2018-05-25","2018-05-26","2018-05-27","2018-05-28","2018-05-29","2018-05-30","2018-05-31","2018-06-01","2018-06-02","2018-06-03","2018-06-04","2018-06-05","2018-06-06","2018-06-07","2018-06-08","2018-06-09","2018-06-10","2018-06-11","2018-06-12","2018-06-13","2018-06-14","2018-06-15","2018-06-16","2018-06-17","2018-06-18","2018-06-19","2018-06-20","2018-06-21","2018-06-22","2018-06-23","2018-06-24","2018-06-25","2018-06-26","2018-06-27","2018-06-28","2018-06-29","2018-06-30","2018-07-01","2018-07-02","2018-07-03","2018-07-04","2018-07-05","2018-07-06","2018-07-07","2018-07-08","2018-07-09","2018-07-10","2018-07-11","2018-07-12","2018-07-13","2018-07-14","2018-07-15","2018-07-16","2018-07-17","2018-07-18","2018-07-19","2018-07-20","2018-07-21","2018-07-22","2018-07-23","2018-07-24","2018-07-25","2018-07-26","2018-07-27","2018-07-28","2018-07-29","2018-07-30","2018-07-31","2018-08-01","2018-08-02","2018-08-03","2018-08-04","2018-08-05","2018-08-06","2018-08-07","2018-08-08","2018-08-09","2018-08-10","2018-08-11","2018-08-12","2018-08-13","2018-08-14","2018-08-15","2018-08-16","2018-08-17","2018-08-18","2018-08-19","2018-08-20","2018-08-21","2018-08-22","2018-08-23","2018-08-24","2018-08-25","2018-08-26","2018-08-27","2018-08-28","2018-08-29","2018-08-30","2018-08-31","2018-09-01","2018-09-02","2018-09-03","2018-09-04","2018-09-05","2018-09-06","2018-09-07","2018-09-08","2018-09-09","2018-09-10","2018-09-11","2018-09-12","2018-09-13","2018-09-14","2018-09-15","2018-09-16","2018-09-17","2018-09-18","2018-09-19","2018-09-20","2018-09-21","2018-09-22","2018-09-23","2018-09-24","2018-09-25","2018-09-26","2018-09-27","2018-09-28","2018-09-29","2018-09-30","2018-10-01","2018-10-02","2018-10-03","2018-10-04","2018-10-05","2018-10-06","2018-10-07","2018-10-08","2018-10-09","2018-10-10","2018-10-11","2018-10-12","2018-10-13","2018-10-14","2018-10-15","2018-10-16","2018-10-17","2018-10-18","2018-10-19","2018-10-20","2018-10-21","2018-10-22","2018-10-23","2018-10-24","2018-10-25","2018-10-26","2018-10-27","2018-10-28","2018-10-29","2018-10-30","2018-10-31","2018-11-01","2018-11-02","2018-11-03","2018-11-04","2018-11-05","2018-11-06","2018-11-07","2018-11-08","2018-11-09","2018-11-10","2018-11-11","2018-11-12","2018-11-13","2018-11-14","2018-11-15","2018-11-16","2018-11-17","2018-11-18","2018-11-19","2018-11-20","2018-11-21","2018-11-22","2018-11-23","2018-11-24","2018-11-25","2018-11-26","2018-11-27","2018-11-28","2018-11-29","2018-11-30","2018-12-01","2018-12-02","2018-12-03","2018-12-04","2018-12-05","2018-12-06","2018-12-07","2018-12-08","2018-12-09","2018-12-10","2018-12-11","2018-12-12","2018-12-13","2018-12-14","2018-12-15","2018-12-16","2018-12-17","2018-12-18","2018-12-19","2018-12-20","2018-12-21","2018-12-22","2018-12-23","2018-12-24","2018-12-25","2018-12-26","2018-12-27","2018-12-28","2018-12-29","2018-12-30","2018-12-31"]
     
    DateMouv_N2["2017-01-03","2017-01-04","2017-01-05","2017-01-06","2017-01-07","2017-01-08","2017-01-09","2017-01-10","2017-01-11","2017-01-12","2017-01-13","2017-01-14","2017-01-15","2017-01-16","2017-01-17","2017-01-18","2017-01-19","2017-01-20","2017-01-21","2017-01-22","2017-01-23","2017-01-24","2017-01-25","2017-01-26","2017-01-27","2017-01-28","2017-01-29","2017-01-30","2017-01-31","2017-02-01","2017-02-02","2017-02-03","2017-02-04","2017-02-05","2017-02-06","2017-02-07","2017-02-08","2017-02-09","2017-02-10","2017-02-11","2017-02-12","2017-02-13","2017-02-14","2017-02-15","2017-02-16","2017-02-17","2017-02-18","2017-02-19","2017-02-20","2017-02-21","2017-02-22","2017-02-23","2017-02-24","2017-02-25","2017-02-26","2017-02-27","2017-02-28","2017-03-01","2017-03-02","2017-03-03","2017-03-04","2017-03-05","2017-03-06","2017-03-07","2017-03-08","2017-03-09","2017-03-10","2017-03-11","2017-03-12","2017-03-13","2017-03-14","2017-03-15","2017-03-16","2017-03-17","2017-03-18","2017-03-19","2017-03-20","2017-03-21","2017-03-22","2017-03-23","2017-03-24","2017-03-25","2017-03-26","2017-03-27","2017-03-28","2017-03-29","2017-03-30","2017-03-31","2017-04-01","2017-04-02","2017-04-03","2017-04-04","2017-04-05","2017-04-06","2017-04-07","2017-04-08","2017-04-09","2017-04-10","2017-04-11","2017-04-12","2017-04-13","2017-04-14","2017-04-15","2017-04-16","2017-04-17","2017-04-18","2017-04-19","2017-04-20","2017-04-21","2017-04-22","2017-04-23","2017-04-24","2017-04-25","2017-04-26","2017-04-27","2017-04-28","2017-04-29","2017-04-30","2017-05-01","2017-05-02","2017-05-03","2017-05-04","2017-05-05","2017-05-06","2017-05-07","2017-05-08","2017-05-09","2017-05-10","2017-05-11","2017-05-12","2017-05-13","2017-05-14","2017-05-15","2017-05-16","2017-05-17","2017-05-18","2017-05-19","2017-05-20","2017-05-21","2017-05-22","2017-05-23","2017-05-24","2017-05-25","2017-05-26","2017-05-27","2017-05-28","2017-05-29","2017-05-30","2017-05-31","2017-06-01","2017-06-02","2017-06-03","2017-06-04","2017-06-05","2017-06-06","2017-06-07","2017-06-08","2017-06-09","2017-06-10","2017-06-11","2017-06-12","2017-06-13","2017-06-14","2017-06-15","2017-06-16","2017-06-17","2017-06-18","2017-06-19","2017-06-20","2017-06-21","2017-06-22","2017-06-23","2017-06-24","2017-06-25","2017-06-26","2017-06-27","2017-06-28","2017-06-29","2017-06-30","2017-07-01","2017-07-02","2017-07-03","2017-07-04","2017-07-05","2017-07-06","2017-07-07","2017-07-08","2017-07-09","2017-07-10","2017-07-11","2017-07-12","2017-07-13","2017-07-14","2017-07-15","2017-07-16","2017-07-17","2017-07-18","2017-07-19","2017-07-20","2017-07-21","2017-07-22","2017-07-23","2017-07-24","2017-07-25","2017-07-26","2017-07-27","2017-07-28","2017-07-29","2017-07-30","2017-07-31","2017-08-01","2017-08-02","2017-08-03","2017-08-04","2017-08-05","2017-08-06","2017-08-07","2017-08-08","2017-08-09","2017-08-10","2017-08-11","2017-08-12","2017-08-13","2017-08-14","2017-08-15","2017-08-16","2017-08-17","2017-08-18","2017-08-19","2017-08-20","2017-08-21","2017-08-22","2017-08-23","2017-08-24","2017-08-25","2017-08-26","2017-08-27","2017-08-28","2017-08-29","2017-08-30","2017-08-31","2017-09-01","2017-09-02","2017-09-03","2017-09-04","2017-09-05","2017-09-06","2017-09-07","2017-09-08","2017-09-09","2017-09-10","2017-09-11","2017-09-12","2017-09-13","2017-09-14","2017-09-15","2017-09-16","2017-09-17","2017-09-18","2017-09-19","2017-09-20","2017-09-21","2017-09-22","2017-09-23","2017-09-24","2017-09-25","2017-09-26","2017-09-27","2017-09-28","2017-09-29","2017-09-30","2017-10-01","2017-10-02","2017-10-03","2017-10-04","2017-10-05","2017-10-06","2017-10-07","2017-10-08","2017-10-09","2017-10-10","2017-10-11","2017-10-12","2017-10-13","2017-10-14","2017-10-15","2017-10-16","2017-10-17","2017-10-18","2017-10-19","2017-10-20","2017-10-21","2017-10-22","2017-10-23","2017-10-24","2017-10-25","2017-10-26","2017-10-27","2017-10-28","2017-10-29","2017-10-30","2017-10-31","2017-11-01","2017-11-02","2017-11-03","2017-11-04","2017-11-05","2017-11-06","2017-11-07","2017-11-08","2017-11-09","2017-11-10","2017-11-11","2017-11-12","2017-11-13","2017-11-14","2017-11-15","2017-11-16","2017-11-17","2017-11-18","2017-11-19","2017-11-20","2017-11-21","2017-11-22","2017-11-23","2017-11-24","2017-11-25","2017-11-26","2017-11-27","2017-11-28","2017-11-29","2017-11-30","2017-12-01","2017-12-02","2017-12-03","2017-12-04","2017-12-05","2017-12-06","2017-12-07","2017-12-08","2017-12-09","2017-12-10","2017-12-11","2017-12-12","2017-12-13","2017-12-14","2017-12-15","2017-12-16","2017-12-17","2017-12-18","2017-12-19","2017-12-20","2017-12-21","2017-12-22","2017-12-23","2017-12-24","2017-12-25","2017-12-26","2017-12-27","2017-12-28","2017-12-29","2017-12-30","2017-12-31","2018-01-01"]
     
    NbMouvN_Y=[1139,1319,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]
     
    NbMouvN1_Y=[1283,1267,1272,1274,1179,1230,1284,1221,1202,1224,1260,1070,1178,1243,1175,1174,1206,1256,1037,1168,1223,1178,1171,1212,1270,1051,1176,1220,1187,1171,1215,1294,1075,1178,1213,1166,1057,1203,1226,1126,1202,1282,1229,1239,1292,1288,1144,1198,1272,1239,1220,1081,1226,1144,1239,1271,1238,1195,1204,1219,1126,1211,1290,1268,1258,1276,1316,1158,1218,1302,1282,1253,1308,1322,1153,1210,1291,1284,1257,1077,1138,1125,1286,1360,1347,1363,1438,1204,1170,1276,1327,1125,1299,1395,1397,1073,1278,1397,1174,1116,1318,1406,1307,1330,1388,1123,1062,1349,1425,1306,1327,1179,1089,1250,1385,1440,1327,1326,1341,1315,1391,1286,1217,1240,1357,1270,1151,1324,1364,1395,1337,1383,1436,1397,1407,1438,1447,1307,1293,1374,1293,1393,1428,1448,1307,1315,1402,1363,1422,1432,1449,1317,1358,1426,1396,1415,1453,1410,1317,1360,1445,1422,1452,1509,1462,1308,1382,1476,1449,1457,1483,1471,1323,1388,1487,1429,1512,1516,1500,1338,1396,1503,1477,1509,1531,1506,1367,1400,1514,1477,1511,1526,1500,1372,1410,1474,1466,1518,1527,1497,1362,1399,1502,1493,1498,1539,1468,1418,1425,1509,1465,1497,1509,1505,1357,1415,1490,1462,1498,1508,1501,1369,1426,1479,1443,1433,1517,1501,1373,1422,1500,1497,1504,1557,1520,1413,1454,1529,1516,1537,1589,1554,1411,1449,1509,1486,1485,1532,1514,1358,1400,1481,1457,1474,1503,1475,1324,1372,1459,1460,1464,1495,1478,1338,1394,1451,1457,1456,1491,1462,1333,1403,1446,1428,1429,1461,1425,1299,1374,1421,1399,1410,1447,1408,1295,1367,1427,1387,1425,1443,1409,1325,1383,1415,1397,1429,1454,1431,1337,1314,1350,1308,1320,1297,1332,1226,1318,1354,1293,1319,1347,1363,1176,1280,1315,1272,1297,1331,1346,1154,1234,1302,1252,1279,1308,1293,1133,1235,1319,1274,1278,1337,1335,1155,1250,1321,1293,1300,1341,1329,1136,1256,1325,1302,1320,1350,1353,1188,1229,1331,1317,1341,1379,1382,1279,1293,1144,947,1217,1339,1327,1236,1277,1181]
     
    NbMouvN2_Y=[1254,1221,1271,1274,1062,1225,1228,1165,1162,1183,1222,1040,1172,1218,1126,1140,1203,1246,1020,1175,1203,1142,1170,1210,1219,1014,1167,1205,1151,1150,1214,1240,1075,1181,1226,1196,1194,1248,1271,1097,1208,1231,1206,1223,1260,1272,1110,1242,1256,1191,1213,1232,1292,1116,1259,1260,1216,1224,1257,1281,1110,1220,1233,1135,1202,1247,1255,1100,1218,1255,1197,1241,1288,1301,1172,1185,1211,1201,1253,1294,1296,1122,1293,1361,1329,1334,1385,1374,1282,1348,1393,1337,1328,1420,1366,1257,1378,1413,1354,1366,1420,1401,1307,1335,1382,1389,1417,1437,1416,1299,1376,1407,1364,1385,1412,1398,1288,1331,1343,1363,1378,1407,1401,1298,1330,1372,1374,1381,1416,1411,1325,1371,1408,1374,1394,1417,1418,1320,1354,1405,1384,1378,1367,1327,1285,1355,1423,1388,1385,1425,1421,1296,1327,1364,1376,1397,1428,1413,1321,1364,1417,1400,1403,1450,1412,1325,1378,1444,1422,1433,1463,1459,1331,1389,1464,1415,1422,1467,1441,1308,1390,1475,1443,1452,1475,1462,1355,1385,1467,1463,1472,1446,1399,1303,1365,1425,1427,1466,1489,1462,1346,1407,1476,1458,1469,1504,1456,1374,1400,1479,1443,1449,1489,1443,1363,1394,1459,1434,1431,1483,1454,1367,1394,1433,1392,1426,1480,1439,1370,1401,1484,1459,1484,1510,1480,1392,1421,1509,1487,1491,1550,1486,1380,1404,1510,1470,1454,1497,1460,1335,1384,1443,1394,1388,1463,1449,1325,1381,1444,1407,1396,1441,1453,1316,1363,1435,1408,1413,1450,1448,1310,1371,1416,1400,1405,1423,1411,1283,1346,1403,1159,1401,1415,1403,1297,1346,1373,1378,1381,1411,1395,1296,1346,1391,1364,1375,1404,1389,1297,1256,1298,1255,1209,1289,1308,1178,1257,1313,1256,1266,1294,1293,1116,1223,1278,1248,1241,1277,1299,1113,1192,1264,1202,1220,1265,1261,1092,1186,1257,1247,1231,1285,1298,1099,1181,1251,1219,1231,1286,1275,1104,1141,1204,1249,1257,1304,1298,1117,1215,1281,1287,1288,1339,1329,1205,1107,961,1171,1229,1293,1280,1173,1125,1164]
     
    DateMouv_N["2019-01-01","2019-01-02","2019-01-03","2019-01-04","2019-01-05","2019-01-06","2019-01-07","2019-01-08","2019-01-09","2019-01-10","2019-01-11","2019-01-12","2019-01-13","2019-01-14","2019-01-15","2019-01-16","2019-01-17","2019-01-18","2019-01-19","2019-01-20","2019-01-21","2019-01-22","2019-01-23","2019-01-24","2019-01-25","2019-01-26","2019-01-27","2019-01-28","2019-01-29","2019-01-30","2019-01-31","2019-02-01","2019-02-02","2019-02-03","2019-02-04","2019-02-05","2019-02-06","2019-02-07","2019-02-08","2019-02-09","2019-02-10","2019-02-11","2019-02-12","2019-02-13","2019-02-14","2019-02-15","2019-02-16","2019-02-17","2019-02-18","2019-02-19","2019-02-20","2019-02-21","2019-02-22","2019-02-23","2019-02-24","2019-02-25","2019-02-26","2019-02-27","2019-02-28","2019-03-01","2019-03-02","2019-03-03","2019-03-04","2019-03-05","2019-03-06","2019-03-07","2019-03-08","2019-03-09","2019-03-10","2019-03-11","2019-03-12","2019-03-13","2019-03-14","2019-03-15","2019-03-16","2019-03-17","2019-03-18","2019-03-19","2019-03-20","2019-03-21","2019-03-22","2019-03-23","2019-03-24","2019-03-25","2019-03-26","2019-03-27","2019-03-28","2019-03-29","2019-03-30","2019-03-31","2019-04-01","2019-04-02","2019-04-03","2019-04-04","2019-04-05","2019-04-06","2019-04-07","2019-04-08","2019-04-09","2019-04-10","2019-04-11","2019-04-12","2019-04-13","2019-04-14","2019-04-15","2019-04-16","2019-04-17","2019-04-18","2019-04-19","2019-04-20","2019-04-21","2019-04-22","2019-04-23","2019-04-24","2019-04-25","2019-04-26","2019-04-27","2019-04-28","2019-04-29","2019-04-30","2019-05-01","2019-05-02","2019-05-03","2019-05-04","2019-05-05","2019-05-06","2019-05-07","2019-05-08","2019-05-09","2019-05-10","2019-05-11","2019-05-12","2019-05-13","2019-05-14","2019-05-15","2019-05-16","2019-05-17","2019-05-18","2019-05-19","2019-05-20","2019-05-21","2019-05-22","2019-05-23","2019-05-24","2019-05-25","2019-05-26","2019-05-27","2019-05-28","2019-05-29","2019-05-30","2019-05-31","2019-06-01","2019-06-02","2019-06-03","2019-06-04","2019-06-05","2019-06-06","2019-06-07","2019-06-08","2019-06-09","2019-06-10","2019-06-11","2019-06-12","2019-06-13","2019-06-14","2019-06-15","2019-06-16","2019-06-17","2019-06-18","2019-06-19","2019-06-20","2019-06-21","2019-06-22","2019-06-23","2019-06-24","2019-06-25","2019-06-26","2019-06-27","2019-06-28","2019-06-29","2019-06-30","2019-07-01","2019-07-02","2019-07-03","2019-07-04","2019-07-05","2019-07-06","2019-07-07","2019-07-08","2019-07-09","2019-07-10","2019-07-11","2019-07-12","2019-07-13","2019-07-14","2019-07-15","2019-07-16","2019-07-17","2019-07-18","2019-07-19","2019-07-20","2019-07-21","2019-07-22","2019-07-23","2019-07-24","2019-07-25","2019-07-26","2019-07-27","2019-07-28","2019-07-29","2019-07-30","2019-07-31","2019-08-01","2019-08-02","2019-08-03","2019-08-04","2019-08-05","2019-08-06","2019-08-07","2019-08-08","2019-08-09","2019-08-10","2019-08-11","2019-08-12","2019-08-13","2019-08-14","2019-08-15","2019-08-16","2019-08-17","2019-08-18","2019-08-19","2019-08-20","2019-08-21","2019-08-22","2019-08-23","2019-08-24","2019-08-25","2019-08-26","2019-08-27","2019-08-28","2019-08-29","2019-08-30","2019-08-31","2019-09-01","2019-09-02","2019-09-03","2019-09-04","2019-09-05","2019-09-06","2019-09-07","2019-09-08","2019-09-09","2019-09-10","2019-09-11","2019-09-12","2019-09-13","2019-09-14","2019-09-15","2019-09-16","2019-09-17","2019-09-18","2019-09-19","2019-09-20","2019-09-21","2019-09-22","2019-09-23","2019-09-24","2019-09-25","2019-09-26","2019-09-27","2019-09-28","2019-09-29","2019-09-30","2019-10-01","2019-10-02","2019-10-03","2019-10-04","2019-10-05","2019-10-06","2019-10-07","2019-10-08","2019-10-09","2019-10-10","2019-10-11","2019-10-12","2019-10-13","2019-10-14","2019-10-15","2019-10-16","2019-10-17","2019-10-18","2019-10-19","2019-10-20","2019-10-21","2019-10-22","2019-10-23","2019-10-24","2019-10-25","2019-10-26","2019-10-27","2019-10-28","2019-10-29","2019-10-30","2019-10-31","2019-11-01","2019-11-02","2019-11-03","2019-11-04","2019-11-05","2019-11-06","2019-11-07","2019-11-08","2019-11-09","2019-11-10","2019-11-11","2019-11-12","2019-11-13","2019-11-14","2019-11-15","2019-11-16","2019-11-17","2019-11-18","2019-11-19","2019-11-20","2019-11-21","2019-11-22","2019-11-23","2019-11-24","2019-11-25","2019-11-26","2019-11-27","2019-11-28","2019-11-29","2019-11-30","2019-12-01","2019-12-02","2019-12-03","2019-12-04","2019-12-05","2019-12-06","2019-12-07","2019-12-08","2019-12-09","2019-12-10","2019-12-11","2019-12-12","2019-12-13","2019-12-14","2019-12-15","2019-12-16","2019-12-17","2019-12-18","2019-12-19","2019-12-20","2019-12-21","2019-12-22","2019-12-23","2019-12-24","2019-12-25","2019-12-26","2019-12-27","2019-12-28","2019-12-29","2019-12-30"]
    Le code :
    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
     
    /*----------------------------------------------------------------------------------------------*/
    /* VARIABLES GLOBALES CONSTANTES POUR LES GRAPHES                                               */
    /*----------------------------------------------------------------------------------------------*/
     
    var WLigneCSV = "ANNEE REF.;DATES;N° SEM.;JOUR;PLTF;" + Annee + ";" + (Annee - 1) + ";" + (Annee - 2) + "\n";
     
    var WPaddingTexte_xAxis = 20;
    var WPaddingTexte_yAxis = 20;
    var P_AxeTextSize = 15;
    var P_TextColor = "#5d6d7e"; // gris légèrement foncé
    var P_CoulFond = "#ffffff"; // blanc
    var P_Colors = ["#FE0000"]; // rouge
    var P_TAB_Colors = ['#ff0000', '#0000FF', '#008000']; // Couleur des courbes => ROUGE, BLEU, VERT
     
    /*----------------------------------------------------------------------------------------------*/
    /* Graph TRAFIC JOURNALIER - GRAND                                                              */
    /*----------------------------------------------------------------------------------------------*/
    function createGraph_TJ(P_Plateforme, P_Annee, jsonData_N) {
    	var WAnneeN = parseInt(P_Annee),
    		WAnneeN1 = P_Annee - 1,
    		WAnneeN2 = P_Annee - 2,
    		NumSemaine_X = [],
    		JourTXT = [],
    		DateMouv_N = [],
    		NbMouvN_Y = [],
    		NbMouvN1_Y = [],
    		NbMouvN2_Y = [];
     
    	// Remplissage des tableaux
    	if (jsonData_N.length > 0) {
    		i = 0;
    		while (i < jsonData_N.length) {
    			var WNumSemaine_X = jsonData_N[i][2];
    			NumSemaine_X.push(WNumSemaine_X);
    			var WJourTXT = jsonData_N[i][3];
    			JourTXT.push(WJourTXT);
    			var WDateMouv_N = jsonData_N[i][1];
    			DateMouv_N.push(WDateMouv_N);
    			var WNbMouv_N = parseInt(jsonData_N[i][5]) + parseInt(jsonData_N[i][6]); // ARR_N + DEP_N
    			NbMouvN_Y.push(WNbMouv_N);
    			var WNbMouv_N1 = parseInt(jsonData_N[i][8]) + parseInt(jsonData_N[i][9]); // ARR_N + DEP_N
    			NbMouvN1_Y.push(WNbMouv_N1);
    			var WNbMouv_N2 = parseInt(jsonData_N[i][11]) + parseInt(jsonData_N[i][12]); // ARR_N + DEP_N
    			NbMouvN2_Y.push(WNbMouv_N2);
    			i += 1; // Il faut avancer de 2 car il y a 1 ligne pour sens="A" et 1 ligne pour sens="D"
    		}
    	}
     
    //	console.log("P_Plateforme="+P_Plateforme);		
    console.log("JourTXT="+JSON.stringify( JourTXT ));		
    console.log("DateMouv_N"+JSON.stringify( DateMouv_N ));
    //	console.log("NumSemaine_X="+NumSemaine_X);		
    console.log("NbMouvN_Y="+JSON.stringify( NbMouvN_Y));		
    console.log("NbMouvN1_Y="+JSON.stringify( NbMouvN1_Y));		
    console.log("NbMouvN2_Y="+JSON.stringify( NbMouvN2_Y));		
     
    	if (P_Plateforme == "LFPG") {
    		var TJ_Chart_C1 = echarts.init(document.getElementById("lfpg_tj")); //
    		val = ($("#lfpg_tj").width() / 37);
    		padding_array = [0, 0, 0, val]; // [haut, droit, bas, gauche]
    		P_Titre = "LFPG - " + WAnneeN + " - " + WAnneeN1 + " - " + WAnneeN2;
    		var P_CoulFondGraph = "#FFFFD8"; //"#FFF7FC"; //"#FFFFC8";
    	}
    	if (P_Plateforme == "LFPO") {
    		var TJ_Chart_C2 = echarts.init(document.getElementById("lfpo_tj")); //
    		val = ($("#lfpo_tj").width() / 37);
    		padding_array = [0, 0, 0, val]; // [haut, droit, bas, gauche]
    		P_Titre = "LFPO - " + WAnneeN + " - " + WAnneeN1 + " - " + WAnneeN2;
    		var P_CoulFondGraph = "#E1FFE9";
    	}
    	if (P_Plateforme == "LFPB") {
    		var TJ_Chart_C3 = echarts.init(document.getElementById("lfpb_tj")); //
    		val = ($("#lfpb_tj").width() / 37);
    		padding_array = [0, 0, 0, val]; // [haut, droit, bas, gauche]
    		P_Titre = "LFPB - " + WAnneeN + " - " + WAnneeN1 + " - " + WAnneeN2;
    		var P_CoulFondGraph = "#DDF6FF";
    	}
    	if (P_Plateforme == "LFOB") {
    		var TJ_Chart_C4 = echarts.init(document.getElementById("lfob_tj")); //
    		val = ($("#lfob_tj").width() / 37);
    		padding_array = [0, 0, 0, val]; // [haut, droit, bas, gauche]
    		P_Titre = "LFOB - " + WAnneeN + " - " + WAnneeN1 + " - " + WAnneeN2;
    		var P_CoulFondGraph = "#FEEDED";
    	}
     
    	var TJ_ChartOpt = {
    		backgroundColor: P_CoulFond,
    		color: P_TAB_Colors,
    		textStyle: {
    			fontFamily: 'sans-serif'
    		},
    		animation: true,
    		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: 85,								// Distance between grid component and the bottom side of the container
    			left: 70,								// 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
    		},
    		xAxis: { // The X axis in Cartesian (rect.) coordinate
    			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)']
    				}
    			},
    			axisLine: {
    				lineStyle: {
    					color: 'rgb(105,105,105)',
    					width: 2,
    					onZero: true,
    				}
    			},
    			type: 'category',
    			name: 'Semaines',
    			nameLocation: 'center',
    			nameTextStyle: {
    				padding: 10, // Espace entre le libellé et la ligne de l'axe X
    				fontWeight: 'bold',
    				color: P_TextColor,
    				fontSize: P_AxeTextSize
    			},
    			max: 'dataMax',
    			position: 'bottom',
    			boundaryGap: false, 
    			axisLabel: {
    				interval: 6, 						// Définit le nombre d'intervals sur xAxis => 6 jours
    				rotate:0,
    				margin: 10,
    				showMinLabel: true, // Affiche la valeur mini de l'axe des X => 1
    				align : 'center',
    				color: 'rgb(050,050,050)'
    			},
    			splitLine: {
    				show: true, // True => quadrillage VERTICAL sur le graphe
    				lineStyle: {
    					color: "#CCC",
    					type: "dotted",
    					width: 1
    				},
    			},
    			// Affichage du trait repère
    			axisTick: {
    			  /**
    			   * Pour affichage du trait repère sur l'axe X le 1er du mois
    			   * @param {object} index  - index du tableau de données traité
    			   * @param {object} valeur - valeur correspondante du tableau de données au format xx-mois
    			   */
    			  interval: 6,
    			},
    			data: NumSemaine_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
    //				min: 'dataMin', //WMin, // NON UTILISABLE AVEC scale
    //				max: 'dataMax', //WMax, // NON UTILISABLE AVEC scale
    			name: 'Mouvements',
    			nameLocation: 'center',
    			nameRotate: 90,
    			nameTextStyle: {
    				padding: 35, // Décalage par rapport à l'axe des Y
    				fontWeight: 'bold',
    				color: P_TextColor,
    				fontSize: P_AxeTextSize
    			}
    		},
    		tooltip: {
    			show: true,
    			trigger: 'axis', 						// Triggered by axes.
    /* Formattage de la bulle d'aide pour avoir les chiffres sous la forme européenne -------------------------------------------*/
    			formatter: function(data) {
    				var html = [parseInt(data[0].name)];
    				var p;
    				var nb = data.length;
    				while (p = data[--nb]) {
    					html.push(p.marker + p.seriesName + " : " + p.value)
    				}
     
    console.log("html="+html);						
    console.log("data[0].name="+data[0].name);
    console.log("[parseInt(data[0].name)]="+[parseInt(data[0].name)]);
     
    				return html.join("<br>");
    			},
    /*---------------------------------------------------------------------------------------------------------------------------*/
    			axisPointer: {
    				show: true,
    				type: 'line',
    		label: {
    			formatter: function (params) {
     
    console.log("DateMouv_N[parseInt(params.value)="+DateMouv_N[parseInt(params.value)]);				
     
    				return DateMouv_N[parseInt(params.value)]; // 
    			},
    		},					
    				lineStyle: {
    					width: 1 						// Epaisseur de la ligne verticale
    				}
    			}
    		},
    		series: [{
    			type: 'line',
    			name: WAnneeN, // 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: 2,
    				type: 'solid' //'dotted' / 'dashed'
    			},
    			smooth: false, // Permet de lisser ou non les courbes
    			data: NbMouvN_Y
    		},
    		{
    			type: 'line',
    			name: WAnneeN1, // 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: NbMouvN1_Y,
    		},
    		{
    			type: 'line',
    			name: WAnneeN2, // 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: NbMouvN2_Y
    		}],
     
    		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\nPNG'
    				},
    			}
    		}
    	};
    	if (P_Plateforme == "LFPG") {
    		TJ_Chart_C1.setOption(TJ_ChartOpt);
    		var TJ_Chart_C1 = echarts.init(document.getElementById("lfpg_tj")); //
    	}
    	if (P_Plateforme == "LFPO") {
    		TJ_Chart_C2.setOption(TJ_ChartOpt);
    		var TJ_Chart_C2 = echarts.init(document.getElementById("lfpo_tj")); //
    	}
    	if (P_Plateforme == "LFPB") {
    		TJ_Chart_C3.setOption(TJ_ChartOpt);
    		var TJ_Chart_C3 = echarts.init(document.getElementById("lfpb_tj")); //
    	}
    	if (P_Plateforme == "LFOB") {
    		TJ_Chart_C4.setOption(TJ_ChartOpt);
    		var TJ_Chart_C4 = echarts.init(document.getElementById("lfob_tj")); //
    	}
    }

    Voila, j'espère que je n'ai rien oublié et que vous m'aiderez à me sortir de la panade

    En tout cas, merci d'avance.

    EDIT :
    J'ai un peu avancé sur le tooltip, mais :
    - le titre de la bulle d'aide indique toujours le numéro de semaine, je n'arrive à le modifier.
    - je n'arrive pas à afficher la date correspondante en fonction de l'année (soit DateMouv_N[], soit DateMouv_N1[], soit DateMouv_N2[]) en lieu et place du nom de la série (uniquement dans la bulle)

    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
     
     
    tooltip: {
    	show: true,
    	trigger: "axis",
    	/* Formattage de la bulle d'aide pour avoir les chiffres sous la forme européenne -------------------------------------------*/
    	formatter: function(data) {
    		var html = [parseInt(data[0].name)];
    		var jo = JourTXT[parseInt(data[0].name)];
    		var p;
    		var nb = data.length;
    		while (p = data[--nb]) {
    			html.push(p.marker + jo + " - " + p.seriesName + " : " + p.value)
    		}
     
    	console.log("html="+html);						
    	console.log("data[0].name="+data[0].name);
    	console.log("[parseInt(data[0].name)]="+[parseInt(data[0].name)]);
    	console.log("JourTXT="+JourTXT[[parseInt(data[0].name)]]);	  
    	console.log("DateMouv_N="+DateMouv_N[[parseInt(data[0].name)]]);
    	console.log("DateMouv_N1="+DateMouv_N1[[parseInt(data[0].name)]]);
    	console.log("DateMouv_N2="+DateMouv_N2[[parseInt(data[0].name)]]);
     
    		return html.join("<br>");
    	},
    	axisPointer: {
    		show: true,
    		type: 'line',
    		label : {
    			formatter: function (params) {
    			return ""; // pour ne rien afficher dans le label de la bulle d'information
    			}
    		},
    		lineStyle: {
    			width: 1 						// Epaisseur de la ligne verticale
    		}
    	}
    },

    Bon, j'espère qu'un courageux se penchera sur mon souci

  5. #5
    Membre éprouvé Avatar de Zebulon777
    Homme Profil pro
    Informaticien
    Inscrit en
    Février 2005
    Messages
    1 327
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 59
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Informaticien

    Informations forums :
    Inscription : Février 2005
    Messages : 1 327
    Par défaut
    Au secours, j'ai vraiment besoin d'aide.

    Je pensais avoir trouvé avec le code suivant, mais ça ne fonctionne pas : les dates dans la bulle d'aide ne changent qu'au changement de semaine !
    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
     
    tooltip: {
    	show: true,
    	trigger: "axis",
    	/* Formattage de la bulle d'aide pour avoir les chiffres sous la forme européenne -------------------------------------------*/
    	formatter: function(data) {
    		var html = [parseInt(data[0].name)];
    		var jo = JourTXT[parseInt(data[0].name)];
    		var WLib = "";
    		var p;
    		var nb = data.length;
    		while (p = data[--nb]) {
    			if (p.seriesName == WAnneeN)
    				{
    					WLib = DateMouv_N[[parseInt(data[0].name)]];
    				}
    			if (p.seriesName == WAnneeN1)
    				{
    					WLib = DateMouv_N1[[parseInt(data[0].name)]];
    				}
    			if (p.seriesName == WAnneeN2)
    				{
    					WLib = DateMouv_N2[[parseInt(data[0].name)]];
    				}
    			html.push(p.marker + WLib + " : " + p.value)
    //			html.push(p.marker + jo + " - " + p.seriesName + " : " + p.value)
    		}
     
    	console.log("html="+html);						
    	console.log("data[0].name="+data[0].name);
    	console.log("[parseInt(data[0].name)]="+[parseInt(data[0].name)]);
    	console.log("JourTXT="+JourTXT[[parseInt(data[0].name)]]);	
    		console.log("DateMouv_N.length="+DateMouv_N.length);
    	console.log("DateMouv_N="+DateMouv_N[[parseInt(data[0].name)]]);
    	console.log("DateMouv_N1="+DateMouv_N1[[parseInt(data[0].name)]]);
    	console.log("DateMouv_N2="+DateMouv_N2[[parseInt(data[0].name)]]);
     
    		return html.join("<br>");
    	},
    	axisPointer: {
    		show: true,
    		type: 'line',
    //		label : {
    //			formatter: function (params) {
    //			return ""; // pour ne rien afficher dans le label de la bulle d'information
    //			}
    //		},
    		lineStyle: {
    			width: 1 						// Epaisseur de la ligne verticale
    		}
    	}
    },

    Une bonne âme ?

  6. #6
    Membre éprouvé Avatar de Zebulon777
    Homme Profil pro
    Informaticien
    Inscrit en
    Février 2005
    Messages
    1 327
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 59
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Informaticien

    Informations forums :
    Inscription : Février 2005
    Messages : 1 327
    Par défaut
    Je pense que j'étais parti sur de mauvaises bases, j'ai donc entièrement repris le truc en mettant les jours en axes des X, mais en n'affichant le numéro de semaine que si c'est un Lundi.
    Ca va mieux, ça fonctionne... presque

    J'ai toujours un souci avec la bulle d'aide qui doit contenir le jour et le numéro de semaine à la place de la date et les dates complètes à la place des années.

    Nom : Echarts09-1.png
Affichages : 141
Taille : 22,0 Ko
    Le nouveau code :
    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
     
    /*----------------------------------------------------------------------------------------------*/
    /* VARIABLES GLOBALES CONSTANTES POUR LES GRAPHES                                               */
    /*----------------------------------------------------------------------------------------------*/
     
    var WLigneCSV = "ANNEE REF.;DATES;N° SEM.;JOUR;PLTF;" + Annee + ";" + (Annee - 1) + ";" + (Annee - 2) + "\n";
     
    var WPaddingTexte_xAxis = 20;
    var WPaddingTexte_yAxis = 20;
    var P_AxeTextSize = 15;
    var P_TextColor = "#5d6d7e"; // gris légèrement foncé
    var P_CoulFond = "#ffffff"; // blanc
    var P_Colors = ["#FE0000"]; // rouge
    var P_TAB_Colors = ['#ff0000', '#0000FF', '#008000']; // Couleur des courbes => ROUGE, BLEU, VERT
     
    /*----------------------------------------------------------------------------------------------*/
    /* Graph TRAFIC JOURNALIER - GRAND                                                              */
    /*----------------------------------------------------------------------------------------------*/
    function createGraph_TJ(P_Plateforme, P_Annee, jsonData_N) {
    	var WAnneeN = parseInt(P_Annee),
    		WAnneeN1 = P_Annee - 1,
    		WAnneeN2 = P_Annee - 2,
    		NumSemaine_X = [],
    		DateRef_X = [],
    		JourTXT = [],
    		DateMouv_N = [],
    		DateMouv_N1 = [],
    		DateMouv_N2 = [],
    		NbMouvN_Y = [],
    		NbMouvN1_Y = [],
    		NbMouvN2_Y = [];
     
    	// Remplissage des tableaux
    	if (jsonData_N.length > 0) {
    		i = 0;
    		while (i < jsonData_N.length) {
    			var WDateRef = jsonData_N[i][1];
    			DateRef_X.push(WDateRef);
    			var WDateMouv_N = jsonData_N[i][1];
    			DateMouv_N.push(WDateMouv_N);
    			var WDateMouv_N1 = jsonData_N[i][7];
    			DateMouv_N1.push(WDateMouv_N1);
    			var WDateMouv_N2 = jsonData_N[i][10];
    			DateMouv_N2.push(WDateMouv_N2);
    			var WNumSemaine_X = jsonData_N[i][2];
    			NumSemaine_X.push(WNumSemaine_X);
    			var WJourTXT = jsonData_N[i][3];
    			JourTXT.push(WJourTXT);
    			var WNbMouv_N = parseInt(jsonData_N[i][5]) + parseInt(jsonData_N[i][6]); // ARR_N + DEP_N
    			NbMouvN_Y.push(WNbMouv_N);
    			var WNbMouv_N1 = parseInt(jsonData_N[i][8]) + parseInt(jsonData_N[i][9]); // ARR_N + DEP_N
    			NbMouvN1_Y.push(WNbMouv_N1);
    			var WNbMouv_N2 = parseInt(jsonData_N[i][11]) + parseInt(jsonData_N[i][12]); // ARR_N + DEP_N
    			NbMouvN2_Y.push(WNbMouv_N2);
    			i += 1; // Il faut avancer de 2 car il y a 1 ligne pour sens="A" et 1 ligne pour sens="D"
    		}
    	}
     
    if (P_Plateforme == "LFPG")			
    {
    console.log("P_Plateforme="+P_Plateforme);		
    console.log("DateRef_X="+DateRef_X);
    console.log("NumSemaine_X="+JSON.stringify( NumSemaine_X));		
    console.log("JourTXT="+JSON.stringify( JourTXT ));		
    console.log("DateMouv_N"+JSON.stringify( DateMouv_N ));
    console.log("DateMouv_N1"+JSON.stringify( DateMouv_N1 ));
    console.log("DateMouv_N2"+JSON.stringify( DateMouv_N2 ));
    console.log("NbMouvN_Y="+JSON.stringify( NbMouvN_Y));		
    console.log("NbMouvN1_Y="+JSON.stringify( NbMouvN1_Y));		
    console.log("NbMouvN2_Y="+JSON.stringify( NbMouvN2_Y));		
    }
     
    	if (P_Plateforme == "LFPG") {
    		var TJ_Chart_C1 = echarts.init(document.getElementById("lfpg_tj")); //
    		val = ($("#lfpg_tj").width() / 37);
    		padding_array = [0, 0, 0, val]; // [haut, droit, bas, gauche]
    		P_Titre = "LFPG - " + WAnneeN + " - " + WAnneeN1 + " - " + WAnneeN2;
    		var P_CoulFondGraph = "#FFFFD8"; //"#FFF7FC"; //"#FFFFC8";
    	}
    	if (P_Plateforme == "LFPO") {
    		var TJ_Chart_C2 = echarts.init(document.getElementById("lfpo_tj")); //
    		val = ($("#lfpo_tj").width() / 37);
    		padding_array = [0, 0, 0, val]; // [haut, droit, bas, gauche]
    		P_Titre = "LFPO - " + WAnneeN + " - " + WAnneeN1 + " - " + WAnneeN2;
    		var P_CoulFondGraph = "#E1FFE9";
    	}
    	if (P_Plateforme == "LFPB") {
    		var TJ_Chart_C3 = echarts.init(document.getElementById("lfpb_tj")); //
    		val = ($("#lfpb_tj").width() / 37);
    		padding_array = [0, 0, 0, val]; // [haut, droit, bas, gauche]
    		P_Titre = "LFPB - " + WAnneeN + " - " + WAnneeN1 + " - " + WAnneeN2;
    		var P_CoulFondGraph = "#DDF6FF";
    	}
    	if (P_Plateforme == "LFOB") {
    		var TJ_Chart_C4 = echarts.init(document.getElementById("lfob_tj")); //
    		val = ($("#lfob_tj").width() / 37);
    		padding_array = [0, 0, 0, val]; // [haut, droit, bas, gauche]
    		P_Titre = "LFOB - " + WAnneeN + " - " + WAnneeN1 + " - " + WAnneeN2;
    		var P_CoulFondGraph = "#FEEDED";
    	}
     
    	var TJ_ChartOpt = {
    		backgroundColor: P_CoulFond,
    		color: P_TAB_Colors,
    		textStyle: {
    			fontFamily: 'sans-serif'
    		},
    		animation: true,
    		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: 85,								// Distance between grid component and the bottom side of the container
    			left: 70,								// 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
    		},
    		xAxis: { // The X axis in Cartesian (rect.) coordinate
    			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)']
    				}
    			},
    			axisLine: {
    				lineStyle: {
    					color: 'rgb(105,105,105)',
    					width: 2,
    					onZero: true,
    				}
    			},
    			type: 'category',
    			name: 'Semaines',
    			nameLocation: 'center',
    			nameTextStyle: {
    				padding: 10, // Espace entre le libellé et la ligne de l'axe X
    				fontWeight: 'bold',
    				color: P_TextColor,
    				fontSize: P_AxeTextSize
    			},
    			max: 'dataMax',
    			position: 'bottom',
    			boundaryGap: false, 
    			axisTick: {
    				/**
    				 * Pour affichage du trait repère sur l'axe X le 1er du mois
    				 * @param {object} index  - index du tableau de données traité
    				 * @param {object} valeur - valeur correspondante du tableau de données au format xx-mois
    				 */
    				interval: function (index, valeur) {
    					// récup du Lundi
    					valeur = JourTXT[index]; // contient PAR EX 01/11/2019
    					if (valeur == "Lundi")
    						{
    							return true;
    						}
    					else
    						{
    							return false;
    						}
    				}
    			},
    			axisLabel: {
    				/**
    				 * Pour affichage du label au milieu du mois, on met 15 pour simplifier
    				 * @param {object} index  - index du tableau de données traité
    				 * @param {object} valeur - valeur correspondante du tableau de données au format xx-mois
    				 * Nota : le return true entraine l'appel de la fonction de formatage
    				 */
    				align: "center",
    				interval: function (index, valeur) {
    					// récup du Lundi
    					valeur = JourTXT[index]; // contient PAR EX 01/11/2019
    					if (valeur == "Lundi")
    						{
    							return true;
    						}
    					else
    						{
    							return false;
    						}
    				},
    				formatter: function (index, valeur) {
    					NoSem = NumSemaine_X[valeur];
    					if (NoSem.length < 2)
    						{
    							NoSem = "0" + NoSem;
    						}
    						return NoSem;
    				},
    			},
    			splitLine: {
    				show: true, // True => quadrillage VERTICAL sur le graphe
    				lineStyle: {
    					color: "#CCC",
    					type: "dotted",
    					width: 1
    				},
    			},
    //					data: NumSemaine_X
    			data: DateRef_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
    //				min: 'dataMin', //WMin, // NON UTILISABLE AVEC scale
    //				max: 'dataMax', //WMax, // NON UTILISABLE AVEC scale
    			name: 'Mouvements',
    			nameLocation: 'center',
    			nameRotate: 90,
    			nameTextStyle: {
    				padding: 35, // Décalage par rapport à l'axe des Y
    				fontWeight: 'bold',
    				color: P_TextColor,
    				fontSize: P_AxeTextSize
    			}
    		},
     
    tooltip: {
    show: true,
    trigger: "axis",
    /* Formattage de la bulle d'aide pour avoir les chiffres sous la forme européenne -------------------------------------------*/
    formatter: function(data, index, valeur) {
    var html = [data[0].name];
    var WLib = "";
    var p;
    var nb = data.length;
    while (p = data[--nb]) {
    	html.push(p.marker + p.seriesName + " : " + p.value)
    }
     
    if (P_Plateforme == "LFPG")			
    {
    console.log("html="+html);						
    console.log("data[0].name="+[data[0].name]);
    console.log("index="+index);	
    console.log("valeur="+valeur);
    }
    return html.join("<br>");
    },
    axisPointer: {
    show: true,
    type: 'line',
    label : {
    	formatter: function (params) {
    	return ""; // pour ne rien afficher dans le label de la bulle d'information
    	}
    },
    lineStyle: {
    	width: 1 						// Epaisseur de la ligne verticale
    }
    }
    },
    		series: [{
    			type: 'line',
    			name: WAnneeN, // 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: 2,
    				type: 'solid' //'dotted' / 'dashed'
    			},
    			smooth: false, // Permet de lisser ou non les courbes
    			data: NbMouvN_Y
    		},
    		{
    			type: 'line',
    			name: WAnneeN1, // 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: NbMouvN1_Y,
    		},
    		{
    			type: 'line',
    			name: WAnneeN2, // 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: NbMouvN2_Y
    		}],
     
    		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\nPNG'
    				},
    //					dataView: {
    //						show: true, // Affiche ou non l'icône pour afficher les données utilisées.
    //						readOnly: false,
    //						backgroundColor: '#88ABD9',
    //						title: 'Export\nCSV',
    //						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:200px">Dates</th>'
    //							WTable01 = WTable01 + '<th class="text-center" style="width:20%">' + series[2].name + '</th>';
    //							WTable01 = WTable01 + '<th class="text-center" style="width:20%">' + series[1].name + '</th>';
    //							WTable01 = WTable01 + '<th class="text-center" style="width:20%">' + 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 + DateMouv[i] + ";" + series[2].data[i] + ";";
    //								WLigneCSV = WLigneCSV + series[1].data[i] + ";" + series[0].data[i];
    //								WLigneCSV = WLigneCSV + "\n";
    //								WTable01 += '<tr>' +
    //									'<td class="text-center" >' + DateMouv[i] + '</td>' +
    //									'<td class="text-center" >' + series[2].data[i] + '</td>' +
    //									'<td class="text-center" >' + series[1].data[i] + '</td>' +
    //									'<td class="text-center" >' + series[0].data[i] + '</td>' +
    //									'</tr>';
    //							}
    //							WTable01 += '</div></tbody></table>';
    //							return WTable01;
    //						},
    //						contentToOption: function (opt) { // Va permetrtre de gérer l'exportation en CSV
    //							var NomCSV = "TraficJournalier_" + P_Annee;
    //							var Ext = ".CSV";
    //							var FicCSV = NomCSV + Ext;
    //							// Ecrire le contenu de la variable WLigneCSV dans un fichier
    //							download(FicCSV, WLigneCSV);
    //						}
    //					}
    			}
    		}
    	};
    	if (P_Plateforme == "LFPG") {
    		TJ_Chart_C1.setOption(TJ_ChartOpt);
    		var TJ_Chart_C1 = echarts.init(document.getElementById("lfpg_tj")); //
    	}
    	if (P_Plateforme == "LFPO") {
    		TJ_Chart_C2.setOption(TJ_ChartOpt);
    		var TJ_Chart_C2 = echarts.init(document.getElementById("lfpo_tj")); //
    	}
    	if (P_Plateforme == "LFPB") {
    		TJ_Chart_C3.setOption(TJ_ChartOpt);
    		var TJ_Chart_C3 = echarts.init(document.getElementById("lfpb_tj")); //
    	}
    	if (P_Plateforme == "LFOB") {
    		TJ_Chart_C4.setOption(TJ_ChartOpt);
    		var TJ_Chart_C4 = echarts.init(document.getElementById("lfob_tj")); //
    	}
    }

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [AC-2007] Bouton Annuler qui modifie les informations
    Par Petit Rasta dans le forum IHM
    Réponses: 4
    Dernier message: 29/04/2010, 15h37
  2. Réponses: 2
    Dernier message: 01/02/2010, 11h39
  3. Réponses: 0
    Dernier message: 06/05/2009, 12h46
  4. Réponses: 9
    Dernier message: 27/04/2009, 17h01
  5. [MySQL] script qui permet de modifier les informations d'une table
    Par mayalet dans le forum PHP & Base de données
    Réponses: 7
    Dernier message: 07/01/2009, 14h31

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo