Selectively hiding series in a C# chart -
lets have chart 2 series on it. each series, have checkbox whether want see them or not. assume plot both, , afterwards, wanted hide either of them. best way this?
i know clear() , addxy() them in, there faster way it?
my attempted ideas:
1. set visibility property true/false depending on checkbox. there no visibility property 2. re-create points collection variable, clear, , set in. series[].points read-only 3. re-create series variable, clear points, , set in. apparently stores series reference when seek this, , cannot find re-create command.
so apparently going wrong way. how dynamically allow chart have different series hidden?
to hide series in mschart, utilize enabled property way :
mschart.series["series"].enabled = false; and show 1 time again :
mschart.series["series"].enabled = true; so dont need remove points , re-add them.
c# charts customization mschart
No comments:
Post a Comment