Jump to content
Software FX Community
Sign in to follow this  
User (Legacy)

Different style point labels on each series?

Recommended Posts

Hi,

I'm using ChartFX Internet 5.5 and I have 3 series in my graphs. The First

series does not need a label at all which is easy enough to do. The Second

and Third series are the problem. The Second series each point label needs

to be 'C/O' and the third series needs each point label to be a variable

value which I specify. Is there a way to do this?

Thanks

Drew

Share this post


Link to post
Share on other sites

Custom point labels are only supported through the GetPointLabel event,

which in this case, can be only captured Client-Side if you are generating

an ActiveX control. If you are generating an image this is not possible.

We added a new property in Chart FX 6 (for .NET) that allows you to

associate a string to an specific point and use it in the point label.

--

FP

Software FX, Inc.

Share this post


Link to post
Share on other sites

Ok,

Using this code off of the website

<SCRIPT LANGUAGE="VBScript">

<!--

Sub ChartFX1_GetPointLabel(nSerie, nPoint, nRes)

If nSerie = ChartFX1.NSeries - 1 Then

For i = 0 To ChartFX1.NSeries - 1

var1 = var1 + ChartFX1.ValueEx(i, nPoint)

Next

var1 = Left(var1, 5)

Else: var1 = ""

End If

ChartFX1.HText = var1

chartfx1.returnvalue = 1

End Sub

-->

</SCRIPT>

I was able to assign my specific point values. There is only one issue. I

have multiple charts on my page each plotting different subsets of the same

data type. Each chart needs to have its points changed by the function

above, however, because in this function it refers to the specific

'ChartFX1' that means it will only modify a single chart (the one with the

id ChartFX1). Is there a way to modify the functin call so I can pass in the

chart id and therefore only have to have one function? Or do I have to write

a different sub for each chart I have on my page.

Thanks,

Drew

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:87K6t9erDHA.1900@WEBSERVER1...

> Custom point labels are only supported through the GetPointLabel event,

> which in this case, can be only captured Client-Side if you are generating

> an ActiveX control. If you are generating an image this is not possible.

>

> We added a new property in Chart FX 6 (for .NET) that allows you to

> associate a string to an specific point and use it in the point label.

>

> --

> FP

> Software FX, Inc.

>

>

Share this post


Link to post
Share on other sites

You have to have a different function for each chart.

You can have a common function containing all this code and call it from

each of the event handlers passing the appropriate chart as a parameter.

--

FP

Software FX, Inc.

Share this post


Link to post
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.

Loading...
Sign in to follow this  

×
×
  • Create New...