Jump to content
Software FX Community

newbie:XAxis data ignored


User (Legacy)

Recommended Posts

If I drag a chart onto a webform and enter thr following code, the XAxis

data is ignore and is always set to 1,2,3,... (sorry about the formatting).

This is almost verbatim from the API docs.

Can someone please tell me what I'm doing wrong?

Thanks

Chart1.OpenData(SoftwareFX.ChartFX.COD.Values, 2, 5);

Chart1.OpenData(SoftwareFX.ChartFX.COD.XValues, 2, 5);

for (int i = 0;i<=1;i++)

for(int j = 0;j<=4;j++)

{

Chart1.Value[i,j] = (i+1) * j;

Chart1.XValue[i,j] = -10*(i+1)*j;

}

Chart1.CloseData(SoftwareFX.ChartFX.COD.XValues);

Chart1.CloseData(SoftwareFX.ChartFX.COD.Values);

post-2107-13922365197603_thumb.jpg

Link to comment
Share on other sites

I've tried lines, bars, and areas.  My ultimate goal is to plot time series

information, but my date/times were showing the same behavior (all starting

at 1/1/1900).

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

news:9$yOSmXmDHA.1544@WEBSERVER1...

> What type of chart (Bar, Lines ?). Some chart types like Bars,

Hi-Low-Close,

> etc, don't support X-Values.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...