User (Legacy) Posted March 18, 2004 Report Share Posted March 18, 2004 Hi I want to link each legend to a different URL. For example, When clicking on "Gene" (Not on the bar) , it will open one URL. For Kelly, it will open another URL. Right Now I am having the following code that open the same url for each legend. Dim axisSectLink As SoftwareFX.ChartFX.Internet.Server.Link axisSectLink = Chart1.AxisX.Sections(0).Link axisSectLink.URl = "http://www.google.com" Please let me know how can I do that? I appreciate your help (Please make it as soon as possible). Thanks, Alomgir Link to comment Share on other sites More sharing options...
Software FX Posted March 18, 2004 Report Share Posted March 18, 2004 You mean each label in the axis to have a url ? What you can do is create axis sections. Axis Sections allow you to define attributes for a range of values in an axis. You can define as many axis sections as needed for each axis, one of the attributes in an Axis Section is the Link. You can actually create a separate axis section for each label and this way you can have a different link for each one of them. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted March 18, 2004 Author Report Share Posted March 18, 2004 Thank you so much for your amazing quick response! > You can actually create a separate axis section for each label Using the range feature (From and To) of AxisSection Class, i was trying to create individuals section for each label("Gene", "Kelley", please see the attachment chart in the original post). The code that I have is as follwos: 'Label 1 Dim axisSectLink1 As SoftwareFX.ChartFX.Internet.Server.Link Chart1.AxisX.Sections(0).From = 0 axisSectLink1 = Chart1.AxisX.Sections(0).Link axisSectLink1.URl = http://www.google.com Chart1.AxisX.Sections(0).To = 1 'Label 2 Dim axisSectLink2 As SoftwareFX.ChartFX.Internet.Server.Link Chart1.AxisX.Sections(0).From = 1 axisSectLink2 = Chart1.AxisX.Sections(0).Link axisSectLink2.URl = http://www.e-mela.com Chart1.AxisX.Sections(0).To = 2 However, it overwrites the URL, both label gets linking to the same url ( http://www.e-mela.com , in that case)..looks like it is not creating the different axis section. So How do I create one, Unfortunately I did not find any good example in the documentation regarding this issue. "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:xdx85GQDEHA.4068@webserver3.softwarefx.com... > You mean each label in the axis to have a url ? > > What you can do is create axis sections. Axis Sections allow you to define > attributes for a range of values in an axis. You can define as many axis > sections as needed for each axis, one of the attributes in an Axis Section > is the Link. > > You can actually create a separate axis section for each label and this way > you can have a different link for each one of them. > > -- > FP > Software FX > > Link to comment Share on other sites More sharing options...
Software FX Posted March 18, 2004 Report Share Posted March 18, 2004 You are only creating ONE axis section. You must do something like: 'Label 1 Dim axisSectLink1 As SoftwareFX.ChartFX.Internet.Server.Link Chart1.AxisX.Sections(0).From = 0.0 axisSectLink1 = Chart1.AxisX.Sections(0).Link axisSectLink1.URl = "http://www.google.com" Chart1.AxisX.Sections(0).To = 1.5 'Label 2 Dim axisSectLink2 As SoftwareFX.ChartFX.Internet.Server.Link Chart1.AxisX.Sections(1).From = 1.5 axisSectLink2 = Chart1.AxisX.Sections(1).Link axisSectLink2.URl = "http://www.e-mela.com" Chart1.AxisX.Sections(1).To = 2.5 -- FP Software FX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.