Jump to content
Software FX Community

Series Legend


User (Legacy)
 Share

Recommended Posts

Below is a sample chart I have in an ASP page.  Is there a separate value I

can attach to a series legend such that when you click a series you can get

the ID of the problems.

For example, the problem_id of the "Deletor" is 12. Is there some object or

array I can associate this value to the series?

Chad Tipton

Viracon, Inc.

chadt@viracon.com

Set chart = Server.CreateObject("ChartFX.WebServer")

chart.Chart3D = False

chart.BorderStyle = 0

chart.AxesStyle = CAS_FLATFRAME

chart.RGBBk = RGB(255,255,255)

chart.OpenDataEx COD_VALUES,6,5

chart.KeyLeg(0) = 89

chart.Legend(0) = "IG C-Line"

chart.Series(0).Legend = "Deletor"

chart.Series(0).YValue(0) = 62

chart.Series(1).Legend = "Washers"

chart.Series(1).YValue(0) = 32

chart.Series(2).Legend = "Staging"

chart.Series(2).YValue(0) = 21

chart.Series(3).Legend = "Butyl Machine"

chart.Series(3).YValue(0) = 18

chart.Series(4).Legend = "Frames"

chart.Series(4).YValue(0) = 51

chart.Series(0).Stacked = True

chart.Series(1).Stacked = True

chart.Series(2).Stacked = True

chart.Series(3).Stacked = True

chart.Series(4).Stacked = True

chart.keyLeg(1) = 89

chart.Legend(1) = "IG C-Line"

chart.Series(0).YValue(1) = 76

chart.Series(1).YValue(1) = 56

chart.Series(2).YValue(1) = 33.5

chart.Series(3).YValue(1) = 45

chart.Series(4).YValue(1) = 29

chart.keyLeg(2) = 82

chart.Legend(2) = "IG-87"

chart.Series(0).YValue(2) = 55

chart.Series(1).YValue(2) = 68

chart.Series(2).YValue(2) = 24

chart.Series(3).YValue(2) = 30

chart.Series(4).YValue(2) = 0

chart.keyLeg(3) = 81

chart.Legend(3) = "IG-93"

chart.Series(0).YValue(3) = 68

chart.Series(1).YValue(3) = 32

chart.Series(2).YValue(3) = 21

chart.Series(3).YValue(3) = 55

chart.Series(4).YValue(3) = 64

chart.keyLeg(4) = 84

chart.Legend(4) = "IG-94"

chart.Series(0).YValue(4) = 32

chart.Series(1).YValue(4) = 18

chart.Series(2).YValue(4) = 48

chart.Series(3).YValue(4) = 57

chart.Series(4).YValue(4) = 33

chart.keyLeg(5) = 8

chart.Legend(5) = "IG-99"

chart.Series(0).YValue(5) = 32

chart.Series(1).YValue(5) = 18

chart.Series(2).YValue(5) = 48

chart.Series(3).YValue(5) = 57

chart.Series(4).YValue(5) = 33

chart.CloseData COD_VALUES

chart.recalcscale

chart.LegendBox = true

chart.SerLegBox = true

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...