Chart and dates

Stimulsoft Reports.WEB discussion
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

Chart and dates

Post by JockeD »

Hello,

I have the same problem as described in Chart on date range
Basically I have a list of dates and values like:

Date Value
1/1/2011 10
1/3/2010 15
1/4/2010 33
1/7/2010 29

I would like to dsiplay this in a chart that displays the chart by month in the X-Axis and display all months between 1/1/2011 and 1/7/2011 including the months that don't have data.
The data is coming from a stored procedure from a system that I don't have control over so I don't have any way to prepare the data on the db.

What options do I have?
I noticed in the last pre release build that there is a new property XAxis.DateTimeStep, can that help?

Thank you,

Regards Joakim
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Chart and dates

Post by HighAley »

Hello, Joakim.
JockeD wrote:I have the same problem as described in Chart on date range
Basically I have a list of dates and values like:

Date Value
1/1/2011 10
1/3/2010 15
1/4/2010 33
1/7/2010 29

I would like to dsiplay this in a chart that displays the chart by month in the X-Axis and display all months between 1/1/2011 and 1/7/2011 including the months that don't have data.
The data is coming from a stored procedure from a system that I don't have control over so I don't have any way to prepare the data on the db.

What options do I have?
I noticed in the last pre release build that there is a new property XAxis.DateTimeStep, can that help?
What Value do you want to display? Sum, Avg or Count of Values?

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

Chart and dates

Post by JockeD »

Hello
Aleksey wrote:Hello, Joakim.
What Value do you want to display? Sum, Avg or Count of Values?
In this simple example I just want to display the actual value, my problem is that I can't get the x-axis to show the months not in the list.
I would like the graph to show all months in between not only the months that is represented in the list.

Thank you,

Joakim
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Chart and dates

Post by HighAley »

Hello.

We are still working on the Date Time Step property. We'll let you know when it will work as you need.

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

Chart and dates

Post by JockeD »

Aleksey wrote:Hello.

We are still working on the Date Time Step property. We'll let you know when it will work as you need.

Thank you.
Great
Regards Joakim
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Chart and dates

Post by HighAley »

Hello.

Unfortunately, there is no way to show all months even if there is no data. The exists values are shown only.
The DateTimeStep property shows average values in each column and there will be no null value columns.
As workaround you should create a Data Source and set the Show Zeros property of the Series to flase.

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

Chart and dates

Post by JockeD »

Aleksey wrote:Hello.

Unfortunately, there is no way to show all months even if there is no data. The exists values are shown only.
The DateTimeStep property shows average values in each column and there will be no null value columns.
As workaround you should create a Data Source and set the Show Zeros property of the Series to flase.

Thank you.
Thank you for your reply,
I'm not sure I fully understand, could you please provide an example?

Regards Joakim
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Chart and dates

Post by HighAley »

Hello.

Do you have rights to create template table on server?

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

Chart and dates

Post by JockeD »

Aleksey wrote:Hello.

Do you have rights to create template table on server?

Thank you.
No, I'm afraid not...
Regards Joakim
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Chart and dates

Post by HighAley »

Hello, Joakim.
JockeD wrote:
Aleksey wrote:Hello.

Do you have rights to create template table on server?

Thank you.
No, I'm afraid not...
It seems that the one way to create new DataTable, pass the data from stored procedure to it in the necessary view and only then register this DataTable in your report.

Thank you.
Post Reply