Jump to content
Software FX Community

How do I start my x values at the y axis border?


User (Legacy)

Recommended Posts

Hi,

I am new to ChartFx and currently doing an evaluation on the product.

I have two curved areas and two lines on my graph. However, there is a

border at the left and right side of the plot area. I want to use the

entire plot area and have my first tick start where the y axis crosses the x

axis. (I want to start drawing at the left boarder of the plot area.

A seperate issue is that I also want to have a little space above my highest

value at the top of the plot area.

The behavor I want is the the opposite of what I have - I want no horizontal

border but I want a verticle one.

Thanks,

Tony

Link to comment
Share on other sites

1) The vertical "border" is by design in categorical charts. This is to 

allow combination with "centered chart types" such as bars. To avoid this

border simply convert your chart to an X/Y chart by supplying X-Values to

it. Both CurveArea and Lines support X-Values so you shouldn´t have any

problems doing this.

2) What you want here is to increase the y-Axis Max so that there is some

more space left at the top of the chart. This can be easily done by changing

the Max of the y-Axis after the data is passed to the chart. For example:

chart.AxisY.Max = 1.1 * chart.AxisY.Max;

--

Francisco Padron

www.chartfx.com

"AJA" <aarnovit@harris.com> wrote in message

news:u2tQxKKTHHA.620@webserver3.softwarefx.com...

> Hi,

>

> I am new to ChartFx and currently doing an evaluation on the product.

>

> I have two curved areas and two lines on my graph. However, there is a

> border at the left and right side of the plot area. I want to use the

> entire plot area and have my first tick start where the y axis crosses the

> x axis. (I want to start drawing at the left boarder of the plot area.

>

> A seperate issue is that I also want to have a little space above my

> highest value at the top of the plot area.

>

> The behavor I want is the the opposite of what I have - I want no

> horizontal border but I want a verticle one.

>

> Thanks,

> Tony

>

Link to comment
Share on other sites

I have 5 series on the graph: one is used for the x label, 2 are areas, and 

2 are lines. I saw how to set an x value for a chart with a single item:

chart1.Data.X[0,0] = 2.9;

chart1.Data.Y[0,0] = 10.5;

But how do I do that for the individual series?

Thanks

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

news:fRO0sVgTHHA.3900@webserver3.softwarefx.com...

> 1) The vertical "border" is by design in categorical charts. This is to

> allow combination with "centered chart types" such as bars. To avoid this

> border simply convert your chart to an X/Y chart by supplying X-Values to

> it. Both CurveArea and Lines support X-Values so you shouldn´t have any

> problems doing this.

>

> 2) What you want here is to increase the y-Axis Max so that there is some

> more space left at the top of the chart. This can be easily done by

> changing the Max of the y-Axis after the data is passed to the chart. For

> example:

>

> chart.AxisY.Max = 1.1 * chart.AxisY.Max;

>

> --

> Francisco Padron

> www.chartfx.com

>

>

> "AJA" <aarnovit@harris.com> wrote in message

> news:u2tQxKKTHHA.620@webserver3.softwarefx.com...

>> Hi,

>>

>> I am new to ChartFx and currently doing an evaluation on the product.

>>

>> I have two curved areas and two lines on my graph. However, there is a

>> border at the left and right side of the plot area. I want to use the

>> entire plot area and have my first tick start where the y axis crosses

>> the x axis. (I want to start drawing at the left boarder of the plot

>> area.

>>

>> A seperate issue is that I also want to have a little space above my

>> highest value at the top of the plot area.

>>

>> The behavor I want is the the opposite of what I have - I want no

>> horizontal border but I want a verticle one.

>>

>> Thanks,

>> Tony

>>

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...