Jump to content
Software FX Community

X-Axis lables keeps getting diplayed on top for no abvious reason.


User (Legacy)
 Share

Recommended Posts

Hi,

My asp page generates two images and sends it back to the client. The

problem is though, that the secon image puts the x-axis at the top and it

gets mixed up with the second image title. I tried to look through help.

Coudn't find anything that might allow me to force the x-axis docking. Can

someone help me on this please.

Malcolm Rasool

Link to comment
Share on other sites

Are you trying to reuse the chart object ? If so, I would recommend you

create a new chart since chart creation time is marginal compared to other

factors such as image generation.

--

Regards,

JC

Software FX Support

"Malcolm Rasool" <MRasool@envinta.com> wrote in message

news:bvIfkr4jCHA.2576@webserver1.softwarefx.com...

> Hi,

> My asp page generates two images and sends it back to the client. The

> problem is though, that the secon image puts the x-axis at the top and it

> gets mixed up with the second image title. I tried to look through help.

> Coudn't find anything that might allow me to force the x-axis docking. Can

> someone help me on this please.

>

> Malcolm Rasool

>

>

Link to comment
Share on other sites

Hi,

Yes indeed. I'm trying to re-use the same chart object twice. But as far as

I can see I'm using another instance

of the object and so it should behave independent of the first one unless

I'm missing something here.

I'm listing the code snippet that I'm using below. Obviously I don't want to

waste too much of your time but you

can see that I'm creating two separate instances e.g. ChartFX1 and ChartFX2

and passing them to different routines

to configure chart settings and populate it with data. if it's possible to

see how else can I do this or if you can kindly

explain regarding your recommendation to create another chart object because

I thing I'm already doing it.

<%

Set ChartFX1 = Server.CreateObject("ChartFX.WebServer")

call InitChart(ChartFX1)

ChartFX1.ClearData (CD_ALLDATA)

call ReadGraphSettings(GraphSettingsXML2)

ChartFX1.Gallery = BAR

call SetChartTitle(ChartFX1)

call LoadChartDataDOM(GraphXML2)

call PopulateChart(ChartFX1)

call SetXAxisLabels(ChartFX1)

call ForceZeroToFalse(ChartFX1,true)

call SetMinMax(ChartFX1)

%>

<div align=center>

<%= ChartFX1.GetHtmlTag(500,300,"auto") %>

</div>

<%

Set ChartFX2 = Server.CreateObject("ChartFX.WebServer")

call InitChart(ChartFX2)

ChartFX2.Gallery = BAR

call SetChartTitle(ChartFX2)

call LoadChartDataDOM(GraphXML)

call PopulateChart(ChartFX2)

call SetXAxisLabels(ChartFX2)

call ForceZeroToFalse(ChartFX2,true)

call SetMinMax(ChartFX2)

%>

<div align=center>

<%= ChartFX2.GetHtmlTag(500,300,"image") %>

</div>

</P>

<p>

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

news:sFUmLh$jCHA.1316@webserver1.softwarefx.com...

> Are you trying to reuse the chart object ? If so, I would recommend you

> create a new chart since chart creation time is marginal compared to other

> factors such as image generation.

>

> --

> Regards,

>

> JC

> Software FX Support

> "Malcolm Rasool" <MRasool@envinta.com> wrote in message

> news:bvIfkr4jCHA.2576@webserver1.softwarefx.com...

> > Hi,

> > My asp page generates two images and sends it back to the client. The

> > problem is though, that the secon image puts the x-axis at the top and

it

> > gets mixed up with the second image title. I tried to look through help.

> > Coudn't find anything that might allow me to force the x-axis docking.

Can

> > someone help me on this please.

> >

> > Malcolm Rasool

> >

> >

>

>

Link to comment
Share on other sites

You are correct (you are creating two different chart objects).

Have you checked if you are assigning a max that is smaller than the min for

the second chart ?

--

Regards,

JC

Software FX Support

"Malcolm Rasool" <MRasool@envinta.com> wrote in message

news:dZtHKACkCHA.1316@webserver1.softwarefx.com...

> Hi,

>

> Yes indeed. I'm trying to re-use the same chart object twice. But as far

as

> I can see I'm using another instance

> of the object and so it should behave independent of the first one unless

> I'm missing something here.

>

> I'm listing the code snippet that I'm using below. Obviously I don't want

to

> waste too much of your time but you

> can see that I'm creating two separate instances e.g. ChartFX1 and

ChartFX2

> and passing them to different routines

> to configure chart settings and populate it with data. if it's possible to

> see how else can I do this or if you can kindly

> explain regarding your recommendation to create another chart object

because

> I thing I'm already doing it.

>

> <%

> Set ChartFX1 = Server.CreateObject("ChartFX.WebServer")

> call InitChart(ChartFX1)

> ChartFX1.ClearData (CD_ALLDATA)

> call ReadGraphSettings(GraphSettingsXML2)

> ChartFX1.Gallery = BAR

> call SetChartTitle(ChartFX1)

> call LoadChartDataDOM(GraphXML2)

> call PopulateChart(ChartFX1)

> call SetXAxisLabels(ChartFX1)

> call ForceZeroToFalse(ChartFX1,true)

> call SetMinMax(ChartFX1)

> %>

> <div align=center>

> <%= ChartFX1.GetHtmlTag(500,300,"auto") %>

> </div>

> <%

> Set ChartFX2 = Server.CreateObject("ChartFX.WebServer")

> call InitChart(ChartFX2)

> ChartFX2.Gallery = BAR

> call SetChartTitle(ChartFX2)

> call LoadChartDataDOM(GraphXML)

> call PopulateChart(ChartFX2)

> call SetXAxisLabels(ChartFX2)

> call ForceZeroToFalse(ChartFX2,true)

> call SetMinMax(ChartFX2)

> %>

> <div align=center>

> <%= ChartFX2.GetHtmlTag(500,300,"image") %>

> </div>

> </P>

> <p>

>

>

>

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

> news:sFUmLh$jCHA.1316@webserver1.softwarefx.com...

> > Are you trying to reuse the chart object ? If so, I would recommend you

> > create a new chart since chart creation time is marginal compared to

other

> > factors such as image generation.

> >

> > --

> > Regards,

> >

> > JC

> > Software FX Support

> > "Malcolm Rasool" <MRasool@envinta.com> wrote in message

> > news:bvIfkr4jCHA.2576@webserver1.softwarefx.com...

> > > Hi,

> > > My asp page generates two images and sends it back to the client. The

> > > problem is though, that the secon image puts the x-axis at the top and

> it

> > > gets mixed up with the second image title. I tried to look through

help.

> > > Coudn't find anything that might allow me to force the x-axis docking.

> Can

> > > someone help me on this please.

> > >

> > > Malcolm Rasool

> > >

> > >

> >

> >

>

>

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