Jump to content
Software FX Community

XML Series Object


User (Legacy)
 Share

Recommended Posts

I am trying to set properties for the Series object using an XML file but it

crashes Explorer when I try to load it. If I remove the Series Object

reference from the xml file everything works OK. I have included the

files I am using...

Any help on how to set specific properties of a series when loading

the data with XML would be great.

Tarik Khan

Manitoba Hydro

Link to comment
Share on other sites

  • 2 weeks later...

The reason for the crash is that you can not assign attributes for only one

series in the XML, you must do it for all of the or none of them.

In your case, you must add the following to your Prop.XML:

<OBJECT NAME="Series(0)">

<PROP NAME="YAxis" VALUE="0"/>

</OBJECT>

<OBJECT NAME="Series(1)">

<PROP NAME="YAxis" VALUE="0"/>

</OBJECT>

<OBJECT NAME="Series(2)">

<PROP NAME="YAxis" VALUE="1"/>

</OBJECT>

This will fix the crash. However, this will not make the secondary Y axis

visible or scaled. You need to add the following 2 lines of code before your

GetHTMLTag:

ChartFX1.Axis(1).Visible = True

ChartFX1.RecalcScale

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Thanks that worked!

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

news:qly0qHSmBHA.1704@webserver1.softwarefx.com...

> The reason for the crash is that you can not assign attributes for only

one

> series in the XML, you must do it for all of the or none of them.

>

> In your case, you must add the following to your Prop.XML:

>

> <OBJECT NAME="Series(0)">

> <PROP NAME="YAxis" VALUE="0"/>

> </OBJECT>

>

> <OBJECT NAME="Series(1)">

> <PROP NAME="YAxis" VALUE="0"/>

> </OBJECT>

>

> <OBJECT NAME="Series(2)">

> <PROP NAME="YAxis" VALUE="1"/>

> </OBJECT>

>

> This will fix the crash. However, this will not make the secondary Y axis

> visible or scaled. You need to add the following 2 lines of code before

your

> GetHTMLTag:

>

> ChartFX1.Axis(1).Visible = True

> ChartFX1.RecalcScale

>

> --

> FP

> Software FX, Inc.

>

>

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