Je voudrais créer un graphique en 3 lignes par graphael. Et 3 case à cocher pour contrôler afficher/masquer ces lignes.Afficher/masquer les lignes du graphique linéaire en graphael
Ceci est mon code:
window.onload = function() {
paper = Raphael(20,20, "800", "550");
var options = {
symbol : "circle",
nostroke : false,
smooth : false,
shade : true,
fill : "transparent",
axis : "0 0 1 1",
axisxstep : 11,
axisystep : 5
};
//line chart object
var chart = paper.linechart(25, 25, 500, 500, [0,1,2,3,4,5,6,7,8,9,10,11], [[1,2,3,4,5,6,7,8,9,10,11,12],[10,25,53,54,14,25,86,77,28,19,11,12],[60,31,22,13,64,75,18,29,26,37,81,2]], options);
}
Et je veux créer 3 case à cocher pour faire: montrer/cacher quelle ligne je veux! En graphel je ne peux pas trouver quelle fonction contrôler sho/cacher une ligne!
Avez-vous des solutions? Merci.
Merci u very much! c'est ce que je trouve. Bon code :)) –
@MaiHo vous êtes les bienvenus! –