Jump to content
Software FX Community

Synchronize Axes


User (Legacy)

Recommended Posts

I have a chart that has an AxisX that is dates.  I am trying to create a

secondary AxisX along the top of the chart that has the values of the points

that are outside of the chart area (where the plotted value is greater than

the max AxisY value). I have created an additional axis, and have

everything working, except the new axis "ticks" do not line up correctly

with the gridlines from the AxisX.

I am using a "Min" value of 0, a "Max" value of the number of rows in the

dataset, and a "Step" value the same as the XAxis step value. If I use the

"Min" and "Max" values from the AxisX, the new axis values do not show up,

because the AxisX "Min" is -1.7xxx and the "Max" is 1.7xxx. The AxisX is

set to "AutoScale=True" and does an "AdjustScale". I have tried removing

these values, and I still cannot get things to line up.

What do I need to do in order to have the new axis line up with the existing

AxisX gridlines?

Thanks,

Eric

Link to comment
Share on other sites

When I query the AxisX "Min" and "Max" values after setting the

DataSourceSettings.DataSource to my dataset

".DataSourceSettings.DataSource = m_DataSet_Excel.Tables(0)"

I get the following "Min" and "Max" values

?chart.AxisX.Min

1.7976931348623157E+308

?chart.AxisX.Max

-1.7976931348623157E+308

Even if I do get the "Min" and "Max" values set correctly, will the new axis

object correctly "synch" with the AxisX?

Thanks,

Eric

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

news:0vHiWr0wDHA.3072@WEBSERVER1...

> If you ask for the Min and Max values AFTER you have set the data, you

will

> obtain the current values.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

The X-Axis values are set by binding the datasource to the chart.

The chart type is a "Line" chart.

Eric

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

news:b3sykN%23wDHA.3512@WEBSERVER1...

> Are you setting X-Values ? What type of chart are you using (Lines, Bar ?)

?

> Some chart types (e.g. Bars) don't support X-Values, the X-Axis becomes

> "categorical" and has no Min and Max, it is just a collection of labels,

you

> can see it as an axis that goes from 1 to <number of points>.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

The following code added to a brand new project returns the expected Min and

Max.

chart1.Gallery = Gallery.Lines;

chart1.DataType[0]= SoftwareFX.ChartFX.DataType.XValue;

chart1.DataType[1]= SoftwareFX.ChartFX.DataType.Value;

chart1.DataSource = new TextProvider("d:\\temp\\CfxDataDates2.txt");

textBox1.Text = chart1.AxisX.Min.ToString();

textBox2.Text = chart1.AxisX.Max.ToString();

Can you please provide with a sample program that reproduces this problem.

I tested using the latest SP of Chart FX 6.2

--

FP

Software FX, Inc.

Link to comment
Share on other sites

I am still running Chart FX 5.x.  I will try upgrading to 6.2 with latest SP

and see if that resolves the issue. If not, I'll post here for you email

address and send you the project.

Thanks,

Eric

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

news:AMAZh2AxDHA.3808@WEBSERVER1...

> The following code added to a brand new project returns the expected Min

and

> Max.

>

> chart1.Gallery = Gallery.Lines;

> chart1.DataType[0]= SoftwareFX.ChartFX.DataType.XValue;

>

> chart1.DataType[1]= SoftwareFX.ChartFX.DataType.Value;

>

> chart1.DataSource = new TextProvider("d:\\temp\\CfxDataDates2.txt");

>

> textBox1.Text = chart1.AxisX.Min.ToString();

>

> textBox2.Text = chart1.AxisX.Max.ToString();

>

>

> Can you please provide with a sample program that reproduces this problem.

>

> I tested using the latest SP of Chart FX 6.2

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

I have tested with version 6.2 with all updates.  Please give me an email

address where I can send a copy of the project.

Thanks,

Eric

"Eric Brunsen" <eric_brunsen@msn.com> wrote in message

news:BGgduXCxDHA.3564@WEBSERVER1...

> I am still running Chart FX 5.x. I will try upgrading to 6.2 with latest

SP

> and see if that resolves the issue. If not, I'll post here for you email

> address and send you the project.

>

> Thanks,

>

> Eric

>

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

> news:AMAZh2AxDHA.3808@WEBSERVER1...

> > The following code added to a brand new project returns the expected Min

> and

> > Max.

> >

> > chart1.Gallery = Gallery.Lines;

> > chart1.DataType[0]= SoftwareFX.ChartFX.DataType.XValue;

> >

> > chart1.DataType[1]= SoftwareFX.ChartFX.DataType.Value;

> >

> > chart1.DataSource = new TextProvider("d:\\temp\\CfxDataDates2.txt");

> >

> > textBox1.Text = chart1.AxisX.Min.ToString();

> >

> > textBox2.Text = chart1.AxisX.Max.ToString();

> >

> >

> > Can you please provide with a sample program that reproduces this

problem.

> >

> > I tested using the latest SP of Chart FX 6.2

> >

> > --

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