Jump to content
Software FX Community

Newbie question..easy one


User (Legacy)

Recommended Posts

Hey all of you!!I was using Crystal Report and now im jumping to ChartFX and

i find it abit hard for the first day. Until now im using datasets for

retrieving my data. Lets say for example my dataset has this structure

Name:string

ID:string

Date:DateTime

LastPrice:decimal

When i retrieve my data the result looks like that

e,g

Name: ID: Date: LastPrice:

Nasdaq Index Nasdaq123 1/1/2005 10500.23

Nasdaq Index Nasdaq123 1/2/2005 10502.45

Nasdaq Index Nasdaq123 1/3/2005 10502.787

Nasdaq Index Nasdaq123 1/4/2005 10501.000

Nasdaq Index Nasdaq123 1/5/2005 10504.450

So the graph i want to make should be" Show all the Last Prices of Nasdaq on

change of date"(In Line Graph).I know its a simple question but its my first

date so forgive me ;)

Link to comment
Share on other sites

What's "Name" and "ID" how do this affect the chart ?

If all you want to do is plot the LastPrice against the Date (one series)

simply pass these two columns. You can use the DataType property to have

Chart FX ignore the first two columns as follows:

chart.DataType[0] = DataType.NotUsed;

chart.DataType[1] = DataType.NotUsed;

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

Thnxs Name and ID were extra information on the Dataset which actually i

dont use so i skipped them.Now its ok

I have managed to display them only with one problem.

The values on YAxis are not being displayed. They are dispalyed like black

thick lines!!!!

As you can see from the attachment the values are assigned on the line but

not on the YAxis.Whats wrong??

Chart1.DataSourceSettings.DataType(1) = SoftwareFX.ChartFX.DataType.Value

Chart1.DataSourceSettings.DataType(0) = SoftwareFX.ChartFX.DataType.Label

I have e.g

1/1/2005 100.00

1/2/2005 350.00

1/3/2005 400.00

1/4/2005 320.00

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

news:95aNku7XFHA.4092@webserver3.softwarefx.com...

> What's "Name" and "ID" how do this affect the chart ?

>

> If all you want to do is plot the LastPrice against the Date (one series)

> simply pass these two columns. You can use the DataType property to have

> Chart FX ignore the first two columns as follows:

>

> chart.DataType[0] = DataType.NotUsed;

> chart.DataType[1] = DataType.NotUsed;

>

> --

> Francisco Padron

> www.chartfx.com

>

>

Link to comment
Share on other sites

You must be doing something else for this to happen, just this code applied 

to a default chart will not produce this image.

My guess is that you are setting chart.AxisY.Step to a number way too small,

leave it untouched (0) and the step will adjust automatically.

--

Francisco Padron

www.chartfx.com

post-2107-13922366099178_thumb.jpg

post-2107-13922377289731_thumb.jpg

Link to comment
Share on other sites

Thanks alot.I solved it

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

news:R3wI7GLYFHA.3956@webserver3.softwarefx.com...

> You must be doing something else for this to happen, just this code

applied

> to a default chart will not produce this image.

>

> My guess is that you are setting chart.AxisY.Step to a number way too

small,

> leave it untouched (0) and the step will adjust automatically.

>

> --

> Francisco Padron

> www.chartfx.com

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...