Jump to content
Software FX Community

Different style point labels on each series?


User (Legacy)

Recommended Posts

Posted

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

Posted

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.

Posted

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.

>

>

Posted

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.

Archived

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

×
×
  • Create New...