Jump to content
Software FX Community

DateTime Based Scaling


User (Legacy)

Recommended Posts

Hi,

I'm currently evaluating ChartFX for my company and this is my 4th day using

it to protoype our existing charts. I have following 2 questions.

1) Existing chart control that we uptil now have been using for rendering

images to our web pages, I was able to set the start date for X-Axis and the

chart control will calculate all the points according to the unit scale

definition.

For example:

Consider a single series bar chart with 12 bars. Now if I set the start

date to be 01/01/2000 and time unit scale to be 'month', I would have each

bar labeled as

Jan2000, Feb2000.......Dec2000. The formatting of the labels depended on the

mask provided e.g. m%.

Please not that this kind of charts are the most common one for our

organisation. The reason for switching to ChartFX is that I personally find

ChartFX to be far superior to anything the existing has to offer. In fact it

is bit of a breath of fresh air in terms of software design, power,

flexibility and ease of use. Now I don't want to sound like a salesman for

you guys but facts must be stated.

Anyway, please let me know if you can help me with this. The available help

on this subject doesn't really work.

2) What format is used to set Min and Max property for X-Axis if the data

label consists of dates when using client side javascript..

For example how would you fill in the ??? place holder with values (if chart

in question is being populated).

Chart1.Axis(AXIS_X).Format = AF_DATE

//Convert the numerical value to a date for the min and max value

Chart1.Axis(AXIS_X).Min = ???

Chart1.Axis(AXIS_X).Max = ???

// Increase the step by one day Chart1.Axis(AXIS_X).STEP = ???

Link to comment
Share on other sites

Hello,

1) You can accomplish this task by using the "FirstLabel" property of the

axis object to point to the first of the month label. Then set the "Step"

property of axis object to be 30 and then you will have an x-axis that will

only display first of the month labels.

2) We recognize a date in the same manner as Windows so therefore you would

pass us a double that represents that date. Therefore if your Min = 32000

(probably sometime in 1980) and you wanted to set the x-axis to span one day

then you would set the Max = 32001. If you wanted to set the step to

increment by one hour then you would set the Step = (1/24). This article on

our support web site does a brief explanation of dates on this same subject.

http://support.softwarefx.com/kb/137/1/019.htm

JT

Tech. Support

561-392-2023

"Malcolm Rasool" <MRasool@envinta.com> wrote in message

news:vu6WkPtiCHA.1312@webserver1.softwarefx.com...

> Hi,

>

> I'm currently evaluating ChartFX for my company and this is my 4th day

using

> it to protoype our existing charts. I have following 2 questions.

>

> 1) Existing chart control that we uptil now have been using for rendering

> images to our web pages, I was able to set the start date for X-Axis and

the

> chart control will calculate all the points according to the unit scale

> definition.

> For example:

> Consider a single series bar chart with 12 bars. Now if I set the start

> date to be 01/01/2000 and time unit scale to be 'month', I would have each

> bar labeled as

> Jan2000, Feb2000.......Dec2000. The formatting of the labels depended on

the

> mask provided e.g. m%.

>

> Please not that this kind of charts are the most common one for our

> organisation. The reason for switching to ChartFX is that I personally

find

> ChartFX to be far superior to anything the existing has to offer. In fact

it

> is bit of a breath of fresh air in terms of software design, power,

> flexibility and ease of use. Now I don't want to sound like a salesman for

> you guys but facts must be stated.

>

> Anyway, please let me know if you can help me with this. The available

help

> on this subject doesn't really work.

>

> 2) What format is used to set Min and Max property for X-Axis if the data

> label consists of dates when using client side javascript..

>

> For example how would you fill in the ??? place holder with values (if

chart

> in question is being populated).

>

> Chart1.Axis(AXIS_X).Format = AF_DATE

>

> //Convert the numerical value to a date for the min and max value

> Chart1.Axis(AXIS_X).Min = ???

> Chart1.Axis(AXIS_X).Max = ???

> // Increase the step by one day Chart1.Axis(AXIS_X).STEP = ???

>

>

Link to comment
Share on other sites

Thank you for your help. It does work.

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

news:WeZeReMjCHA.524@webserver1.softwarefx.com...

> Hello,

>

> 1) You can accomplish this task by using the "FirstLabel" property of the

> axis object to point to the first of the month label. Then set the "Step"

> property of axis object to be 30 and then you will have an x-axis that

will

> only display first of the month labels.

>

> 2) We recognize a date in the same manner as Windows so therefore you

would

> pass us a double that represents that date. Therefore if your Min = 32000

> (probably sometime in 1980) and you wanted to set the x-axis to span one

day

> then you would set the Max = 32001. If you wanted to set the step to

> increment by one hour then you would set the Step = (1/24). This article

on

> our support web site does a brief explanation of dates on this same

subject.

> http://support.softwarefx.com/kb/137/1/019.htm

>

> JT

> Tech. Support

> 561-392-2023

>

>

> "Malcolm Rasool" <MRasool@envinta.com> wrote in message

> news:vu6WkPtiCHA.1312@webserver1.softwarefx.com...

> > Hi,

> >

> > I'm currently evaluating ChartFX for my company and this is my 4th day

> using

> > it to protoype our existing charts. I have following 2 questions.

> >

> > 1) Existing chart control that we uptil now have been using for

rendering

> > images to our web pages, I was able to set the start date for X-Axis and

> the

> > chart control will calculate all the points according to the unit scale

> > definition.

> > For example:

> > Consider a single series bar chart with 12 bars. Now if I set the start

> > date to be 01/01/2000 and time unit scale to be 'month', I would have

each

> > bar labeled as

> > Jan2000, Feb2000.......Dec2000. The formatting of the labels depended on

> the

> > mask provided e.g. m%.

> >

> > Please not that this kind of charts are the most common one for our

> > organisation. The reason for switching to ChartFX is that I personally

> find

> > ChartFX to be far superior to anything the existing has to offer. In

fact

> it

> > is bit of a breath of fresh air in terms of software design, power,

> > flexibility and ease of use. Now I don't want to sound like a salesman

for

> > you guys but facts must be stated.

> >

> > Anyway, please let me know if you can help me with this. The available

> help

> > on this subject doesn't really work.

> >

> > 2) What format is used to set Min and Max property for X-Axis if the

data

> > label consists of dates when using client side javascript..

> >

> > For example how would you fill in the ??? place holder with values (if

> chart

> > in question is being populated).

> >

> > Chart1.Axis(AXIS_X).Format = AF_DATE

> >

> > file://Convert the numerical value to a date for the min and max value

> > Chart1.Axis(AXIS_X).Min = ???

> > Chart1.Axis(AXIS_X).Max = ???

> > // Increase the step by one day Chart1.Axis(AXIS_X).STEP = ???

> >

> >

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...