Jump to content
Software FX Community

How to configure XAxis to use date interval other than one day?


User (Legacy)

Recommended Posts

I have a chart that consists of stacked bar series and multiple line series, 

with the x-axis being a time-line of dates. All was fine when the data

interval was 1 day. In this case I just used point values, where each point

was 1 day on the x axis. However, I have now been asked to use custom

intervals or, for example, 7 days, 30 days, etc.. I will now need the bars

to be centered on one data but spanning several. I also want to have the

line series as step series. Can I continue to use point values (without

XValues) but specify a point interval of more than one day?

Using ChartFX for .NET 6.2 and ASP.NET 1.1

Link to comment
Share on other sites

  • 2 weeks later...

I'm not sure I understand what you need.

Do you want a bar chart combined with a step chart ?

Bar chart do NOT support X-Values, they can use X-Values for X-Axis labeling

but unlike line charts, the X-Values don't affect the position of the bars.

When you say you want the bar to "span" several points, do you mean that

there will be multiple points for the line series for each point in the bar

series ? If so, this is not possible, all series have the same number of

values, however you can achieve this by using hidden points. That is in your

bar series, you will "surround" the values with hidden points so that there

is only one value per interval.

For example, if your interval is 7, you can set 3 hidden points before and 3

hidden points after each value in the bar series to allocate the space for

all 7 points.

--

Francisco Padron

www.chartfx.com

"Joe Jax" <jj@nowhere.com> wrote in message

news:nCIdwpEKGHA.2756@webserver3.softwarefx.com...

>I have a chart that consists of stacked bar series and multiple line

>series, with the x-axis being a time-line of dates. All was fine when the

>data interval was 1 day. In this case I just used point values, where each

>point was 1 day on the x axis. However, I have now been asked to use custom

>intervals or, for example, 7 days, 30 days, etc.. I will now need the bars

>to be centered on one data but spanning several. I also want to have the

>line series as step series. Can I continue to use point values (without

>XValues) but specify a point interval of more than one day?

>

> Using ChartFX for .NET 6.2 and ASP.NET 1.1

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...