Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Dynamic Hidden Field not working #12

Open
XaroRSA opened this issue Sep 9, 2014 · 0 comments
Open

Dynamic Hidden Field not working #12

XaroRSA opened this issue Sep 9, 2014 · 0 comments

Comments

@XaroRSA
Copy link

XaroRSA commented Sep 9, 2014

Using a variable in the hidden property doesn't work properly.
It only uses the first label that is found in the varible, or even a string, unless specificly changed with toString(), but this breaks the hiddengraphs functionality.
even using hidden: "label1", "label2" directly doesnt work, only label1 then hidden.

example:
var SelectedLegendTemp= ["label1", "label2"]

multigraphVarible = $.plot($("#graph"), plotdata, {
grid: { show: true, hoverable: true, clickable: true },
xaxis: { mode: "time", timezone: "browser", min: view.start, max: view.end },
selection: { mode: "x" },
legend: {
position: "nw",
hideable: true,
hidden: SelectedLegendTemp
}
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant