Software FX Posted August 15, 2006 Report Share Posted August 15, 2006 You will need to do it using JavaScript. You can access the same properties and methods of the Chart object using Java Script. Accessing arrays in JavaScript requires the use of the Item property. For example: Chart1.Series.Item(0).Visible = false; -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 15, 2006 Author Report Share Posted August 15, 2006 hi the ChartFx Legend visible = false and I created Check Boxes that holds the series; if click the check box that corresponds to the chart series the series will hide , did that already but I want to achieve that from the client side , my rendering mode is .net or is there is a way to do that from the built-in Legend that chartFx have any advise Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 16, 2006 Author Report Share Posted August 16, 2006 hi Francisco is there an example any where so I can use to understand it more and should I use the chartID or the Chart Unique ID thanks "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:lPDwGzHwGHA.1280@webserver3.softwarefx.com... > You will need to do it using JavaScript. You can access the same > properties and methods of the Chart object using Java Script. Accessing > arrays in JavaScript requires the use of the Item property. For example: > > Chart1.Series.Item(0).Visible = false; > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 16, 2006 Author Report Share Posted August 16, 2006 I´m working on the same thing and would appreciate any examples of either how to get checkboxes within the series legend or how to create your own checkbox group and get the color indicator of each series mapped into it correctly. The path I´m currently taking is to create my own options dialog where the user can select the series he wants charted and then to bind the data to the chart accordingly. > hi Francisco > > is there an example any where so I can use to understand it more and > should I use the chartID or the Chart Unique ID > > thanks > > "SoftwareFX Support" <noreply@softwarefx.com> wrote in message > news:lPDwGzHwGHA.1280@webserver3.softwarefx.com... > >> You will need to do it using JavaScript. You can access the same >> properties and methods of the Chart object using Java Script. >> Accessing arrays in JavaScript requires the use of the Item property. >> For example: >> >> Chart1.Series.Item(0).Visible = false; >> >> -- >> Francisco Padron >> www.chartfx.com Link to comment Share on other sites More sharing options...
Software FX Posted August 16, 2006 Report Share Posted August 16, 2006 The ID is UniqueID, that´s the ID that will be given to the <OBJECT> tag. You can use document.getElemnetById to get the reference to it. IE, treats .NET Objects as ActiveX controls, so all the interaction you do with them is through interop. The sample code I sent you is in Java Script and it assumes the UniqueID of the chart is "Chart1". Once you get the reference to the object you have a reference to an ActiveX control and all rules about JavaScript and ActiveX controls apply. I don´t know exactly that kind of sample you are looking for, I don´t have a sample that have a bunch of check boxes to hide/show series but I don´t see any complications implementing that once you know how to access the .NET Client´s API. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 16, 2006 Author Report Share Posted August 16, 2006 Hi terry Do you want the Function I have created or not coz I did not understand if u need it or not "Terry Smith" <terry.smith@insightecosystems.com> wrote in message news:66a06d7a389f8c88f39b1191f9a@news.softwarefx.com... > I´m working on the same thing and would appreciate any examples of either > how to get checkboxes within the series legend or how to create your own > checkbox group and get the color indicator of each series mapped into it > correctly. > The path I´m currently taking is to create my own options dialog where the > user can select the series he wants charted and then to bind the data to > the chart accordingly. > >> hi Francisco >> >> is there an example any where so I can use to understand it more and >> should I use the chartID or the Chart Unique ID >> >> thanks >> >> "SoftwareFX Support" <noreply@softwarefx.com> wrote in message >> news:lPDwGzHwGHA.1280@webserver3.softwarefx.com... >> >>> You will need to do it using JavaScript. You can access the same >>> properties and methods of the Chart object using Java Script. >>> Accessing arrays in JavaScript requires the use of the Item property. >>> For example: >>> >>> Chart1.Series.Item(0).Visible = false; >>> >>> -- >>> Francisco Padron >>> www.chartfx.com > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 16, 2006 Author Report Share Posted August 16, 2006 My apologies, no, I wasn´t asking for your code. I should have replied to Francisco´s prior post. > Hi terry > > Do you want the Function I have created or not coz I did not > understand if u need it or not > > "Terry Smith" <terry.smith@insightecosystems.com> wrote in message > news:66a06d7a389f8c88f39b1191f9a@news.softwarefx.com... > >> I´m working on the same thing and would appreciate any examples of >> either >> how to get checkboxes within the series legend or how to create your >> own >> checkbox group and get the color indicator of each series mapped into >> it >> correctly. >> The path I´m currently taking is to create my own options dialog >> where the >> user can select the series he wants charted and then to bind the data >> to >> the chart accordingly. >>> hi Francisco >>> >>> is there an example any where so I can use to understand it more and >>> should I use the chartID or the Chart Unique ID >>> >>> thanks >>> >>> "SoftwareFX Support" <noreply@softwarefx.com> wrote in message >>> news:lPDwGzHwGHA.1280@webserver3.softwarefx.com... >>> >>>> You will need to do it using JavaScript. You can access the same >>>> properties and methods of the Chart object using Java Script. >>>> Accessing arrays in JavaScript requires the use of the Item >>>> property. For example: >>>> >>>> Chart1.Series.Item(0).Visible = false; >>>> >>>> -- >>>> Francisco Padron >>>> www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 21, 2006 Author Report Share Posted August 21, 2006 hi i couldnt make it work an any whay can u please provide an example in old cfx 2000 it was easy to do thanks "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:rJGjmYVwGHA.1280@webserver3.softwarefx.com... > The ID is UniqueID, that´s the ID that will be given to the <OBJECT> tag. > You can use document.getElemnetById to get the reference to it. > > IE, treats .NET Objects as ActiveX controls, so all the interaction you do > with them is through interop. > > The sample code I sent you is in Java Script and it assumes the UniqueID > of the chart is "Chart1". Once you get the reference to the object you > have a reference to an ActiveX control and all rules about JavaScript and > ActiveX controls apply. > > I don´t know exactly that kind of sample you are looking for, I don´t have > a sample that have a bunch of check boxes to hide/show series but I don´t > see any complications implementing that once you know how to access the > .NET Client´s API. > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Software FX Posted August 26, 2006 Report Share Posted August 26, 2006 A sample of doing what ? I already posted sample code for making a series invisible, what exactly are you looking for ? You want Java Scrip cod that does what ? -- Francisco Padron www.chartfx.com "Etariq" <etariq@msn.com> wrote in message news:DDnKLsNxGHA.1280@webserver3.softwarefx.com... > hi > i couldnt make it work an any whay can u please provide an example > in old cfx 2000 it was easy to do > > thanks > > "SoftwareFX Support" <noreply@softwarefx.com> wrote in message > news:rJGjmYVwGHA.1280@webserver3.softwarefx.com... >> The ID is UniqueID, that´s the ID that will be given to the <OBJECT> tag. >> You can use document.getElemnetById to get the reference to it. >> >> IE, treats .NET Objects as ActiveX controls, so all the interaction you >> do with them is through interop. >> >> The sample code I sent you is in Java Script and it assumes the UniqueID >> of the chart is "Chart1". Once you get the reference to the object you >> have a reference to an ActiveX control and all rules about JavaScript and >> ActiveX controls apply. >> >> I don´t know exactly that kind of sample you are looking for, I don´t >> have a sample that have a bunch of check boxes to hide/show series but I >> don´t see any complications implementing that once you know how to access >> the .NET Client´s API. >> >> -- >> Francisco Padron >> www.chartfx.com >> > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.