Jump to content
Software FX Community

multiple colors, 2 series (scatter)


Software FX
 Share

Recommended Posts

Hi,

I am attaching a complete source code which shows how to set different points for the same series. The sample has just one series called 'Machine1', this machine has different activity states as Off, On, Down, Starved. This particular sample requires for the states of the machine be repeated, it means, the machine can be 'off' for couple hours and later be 'on' for 3 more hours and be 'off' again after that, therefore, the colors can be repeated from red to blue, and from blue red. To plot this behavior is necessary to set the first 4 colors to send the colors of the legend (on, off, down, starved), later, set the colors for every point, since the colors for colorize the legends were already taken the colors you set for every point will let you repeat them for on, off, on activity states with out change the legends.

<<brianmachinesperstate.frm>> <<brianmachinesperstate.frx>> <<brianmachinesperstate.vbp>> <<brianmachinesperstate.vbw>>

Whether you want another sample, please visit or kb at http://support.softwarefx.com/chartfx/ . Remember in this sample that 'NumberOfPoints' is a variable which could be defined as an integer.

Please, take the time to answer these questions.

We are in the process of improving our technical support. We request that you please answer these questions in your next reply in order to avoid future delays.

1) Are you a current customer or a trial user of Software FX?

-If you are a current customer then, have you owned the product for more than 30 Days?

2) Which product are you requesting technical support for?

Regards,

Boca Raton, FL. USA

Tech Support: (561) 392-2023, Ext. 207

-----Original Message-----

From: eli elhadad [mailto:ceelmh@towersemi.com]

Sent: Monday, October 30, 2000 9:50 AM

Posted To: General

Conversation: multiple colors, 2 series (scatter)

Subject: multiple colors, 2 series (scatter)

hi,

I have two seriess (scatter) and i want to set different color(5 colors) for

different

point in the same series.

this is my code:

'il_results holds the number of point in the graph

object.OpenDataEx(COD_VALUES,2, il_results) ]

object.OpenDataEx (COD_COLORS,????????, 0)

for ...

..

'get ld_data1

'get ld_data2

..

object.Series(0).Yvalue(j,ld_data1)

object.Series(1).Yvalue(j,ld_data2)

IF x='F' THEN

object.Color(???????,RGB(255, 0, 0))

ELSEIF x= 'O' THEN

object.Color(???????,RGB(0,0,255))

ELSEIF xl="V" THEN

object.Color(??????? ,RGB(0,255,0))

ELSEIF xl="I" THEN

object.Color(???????,RGB(255,255,50))

ELSE

object.Color(???????,RGB(0,0,0))

END IF

Next

object.CloseData(3)

object.CloseData(1)

I don't know what to put in this line - OpenDataEx (COD_COLORS,????????, 0)

the number of colors shold be 5??? or a combination of

the number of points and seriass , i try all sort of combination with no

success at all.

I want to set different colors only to serias number 1 (i don't care about

the other serias colors bat i paint it)

object.Color(???????,..) - What shold i put in this line , i try whats

written in the help files of chartfx , again with no success.

please help me.

eli.

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...