Jump to content
Software FX Community

Re: Series Legend


User (Legacy)

Recommended Posts

Chad,

Have you played with GetTip, and ControlTipText to make your own custom message?

'turn chart on

Me.ChartFX1.TypeMask = Me.ChartFX1.TypeMask Or CT_TRACKMOUSE

Then In the GetTip event:

Private Sub ChartFX1_GetTip(ByVal nHit As Integer, ByVal nSerie As Integer, ByVal nPoint As Long, nRes As Integer)

If nSerie <> -1 And nPoint <> -1 Then

'you'd actually lookup the problem_id for the series and point value you're hovering over

Me.ChartFX1.ControlTipText = nSerie & " - " & nPoint

End If

End Sub

Steve

Chad Tipton <chadt@viracon.com> wrote in message news:OhzvOVVgAHA.1712@sfxserver.softwarefx.com...

> 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...