Jump to content
Software FX Community

CHART_HIDDEN


User (Legacy)

Recommended Posts

You should assign CHART_HIDDEN to the Y value of the points you want to hide

but NOT the X value. If the problem persists please post sample code that

duplicates the problem.

--

Regards,

JC

SoftwareFX

"Matteo Lonardi" <lonardimatteo@hotmail.com> wrote in message

news:EE55O2yr8GA.1696@webserver1.softwarefx.com...

> Hi,

> anybody could tell me why the CHART_HIDDEN constant values 0 when

generating

> a SCATTER graph? The result is that all the markers appear on X-Axe and

the

> effect

> is not good ... :-)

> Thanks a lot for helping.

>

> Matteo

>

>

>

>

>

Link to comment
Share on other sites

Here the code:

chart.OpenDataEx COD_VALUES, 2, aa.RecordCount

chart.OpenDataEx COD_XVALUES, 2, aa.RecordCount

chart.Series(0).Gallery = LINES

chart.Series(1).Gallery = SCATTER

chart.Series(0).MarkerShape = MK_NONE

chart.Series(1).MarkerShape = MK_DIAMOND

chart.Series(0).MarkerSize = 3

chart.Series(1).MarkerSize = 4

i = 0

aa.MoveFirst

Do While (Not aa.EOF)

chart.Series(0).Yvalue(i) = aa("ValoreEuro")

chart.Series(1).Xvalue(i) = i

If Not IsNull(aa("TipoCausale")) Then

chart.Series(1).Yvalue(i) = aa("ValoreEuro")

Else

chart.Series(1).Yvalue(i) = CHART_HIDDEN

End If

aa.MoveNext

i = i + 1

Loop

chart.CloseData COD_XVALUES

chart.CloseData COD_VALUES

Thanks!

Matteo

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

news:HlJa3f1KBHA.1532@webserver1.softwarefx.com...

> You should assign CHART_HIDDEN to the Y value of the points you want to

hide

> but NOT the X value. If the problem persists please post sample code that

> duplicates the problem.

>

> --

> Regards,

>

> JC

> SoftwareFX

>

> "Matteo Lonardi" <lonardimatteo@hotmail.com> wrote in message

> news:EE55O2yr8GA.1696@webserver1.softwarefx.com...

> > Hi,

> > anybody could tell me why the CHART_HIDDEN constant values 0 when

> generating

> > a SCATTER graph? The result is that all the markers appear on X-Axe and

> the

> > effect

> > is not good ... :-)

> > Thanks a lot for helping.

> >

> > Matteo

> >

> >

> >

> >

> >

>

>

Link to comment
Share on other sites

You don't seem to be assigning the X value for the first series in your

loop. We could be allocating the memory zero-initialized (but you should not

rely on this) so this could explain why all your markers appear in the Y

axis.

--

Regards,

JC

SoftwareFX

"Matteo Lonardi" <lonardimatteo@hotmail.com> wrote in message

news:69TivPtLBHA.1204@webserver1.softwarefx.com...

> Here the code:

>

> chart.OpenDataEx COD_VALUES, 2, aa.RecordCount

> chart.OpenDataEx COD_XVALUES, 2, aa.RecordCount

> chart.Series(0).Gallery = LINES

> chart.Series(1).Gallery = SCATTER

>

> chart.Series(0).MarkerShape = MK_NONE

> chart.Series(1).MarkerShape = MK_DIAMOND

>

> chart.Series(0).MarkerSize = 3

> chart.Series(1).MarkerSize = 4

>

> i = 0

> aa.MoveFirst

> Do While (Not aa.EOF)

> chart.Series(0).Yvalue(i) = aa("ValoreEuro")

> chart.Series(1).Xvalue(i) = i

>

> If Not IsNull(aa("TipoCausale")) Then

> chart.Series(1).Yvalue(i) = aa("ValoreEuro")

> Else

> chart.Series(1).Yvalue(i) = CHART_HIDDEN

> End If

> aa.MoveNext

> i = i + 1

> Loop

> chart.CloseData COD_XVALUES

> chart.CloseData COD_VALUES

>

> Thanks!

> Matteo

>

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

> news:HlJa3f1KBHA.1532@webserver1.softwarefx.com...

> > You should assign CHART_HIDDEN to the Y value of the points you want to

> hide

> > but NOT the X value. If the problem persists please post sample code

that

> > duplicates the problem.

> >

> > --

> > Regards,

> >

> > JC

> > SoftwareFX

> >

> > "Matteo Lonardi" <lonardimatteo@hotmail.com> wrote in message

> > news:EE55O2yr8GA.1696@webserver1.softwarefx.com...

> > > Hi,

> > > anybody could tell me why the CHART_HIDDEN constant values 0 when

> > generating

> > > a SCATTER graph? The result is that all the markers appear on X-Axe

and

> > the

> > > effect

> > > is not good ... :-)

> > > Thanks a lot for helping.

> > >

> > > Matteo

> > >

> > >

> > >

> > >

> > >

> >

> >

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...