Problems with X-Axis label and displaying edge values

Stimulsoft Reports.NET discussion
Post Reply
DCollins
Posts: 9
Joined: Tue Nov 27, 2012 2:05 pm

Problems with X-Axis label and displaying edge values

Post by DCollins »

Hello dear stimulsoft support team,

My name is Doreen Collins.
I am new to the Stimulsoft support forum but I have been working with Stimulsoft Reports.Net for a little bit now.
Now I have come across some issues I cannot seem to find a solution for.

problem 1 (top chart in attached report files)
We want to display a chart which contains more than one datapoint with the same x-Axis label (Argument Data column e. g. 12 values for year 1988 all values with Argument Data values of 88)
We would like to display 1 label per specified range (e. g. one label every 12th value).
also we want to display a label for the very first value (datapoint) of the chart and the ticks (and labels) to the end of the x axis.
How would i proceed?

Is there a combination of
- ticks (count, range)
- x-axis labels (step)
- x-axis StartFromZero
- x-axis Range
Properties which allows to make the resulting report look like the attached screenshot?
example of the printout of our old software product
example of the printout of our old software product
Screenshot_XVWIN Beitragshistorie.JPG (48.52 KiB) Viewed 4292 times
problem 2 (lower chart in attached report files)
In the second chart we would like to display 1 label every 10th value.
Ideally the labels displayed would be 0 10 20 ...
example of the printout of our old software product
example of the printout of our old software product
Screenshot_XVWIN Tarifbeitraege.JPG (28.14 KiB) Viewed 4292 times
Further questions:
(How) Do the values for x-axis label step, minor tick count, tick step relate to each other and or the datapoints/existing data values?
How come that if I change the value for x-axis label step to a different value the labels are not displayed right underneath a tick? (I have experienced this when i changed the label step of the top chart)
stimulsoft_2012_11_28.zip
stimulsoft_2012_11_28.zip (compilation of report files and data)
(12.69 KiB) Downloaded 320 times
Thanks & regards,

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

Re: Problems with X-Axis label and displaying edge values

Post by HighAley »

Hello.

What do you mean under 'datapoint'?
There are many properties of the X Axis on the property grid.
You could find there the Area - X-Axis - Labels - Step and Area - X-Axis - Ticks properties which should help you.

Thank you.
DCollins
Posts: 9
Joined: Tue Nov 27, 2012 2:05 pm

Re: Problems with X-Axis label and displaying edge values

Post by DCollins »

Hallo dear support team,

Thank you for your reply.
With datapoint I mean a row in a datatable.

I am well aware that there are many properties for adjusting the x-axis as well as the y-axis.
But I don’t know how the various properties relate to each other and how to manage to display the x-axis as needed.
What I want for an x-axis (as shown in Screenshot_XVWIN Beitragshistorie.JPG in the first post):
88 – 90 – 92 – 94 – 96 – 98 – 00 – 02 – 04 – 06 – 08 – 10 – 12 – 14

To achieve this I adjusted the following properties:
x-axis label step: 12
show Edge Values: true
Start from zero: false
ticks – minor count: 4
ticks – minor visible: true
ticks – step 12

as shown in the screenshot
screenshot of area - x-axis properties
screenshot of area - x-axis properties
report_preview_screenshot_properties_area_xaxis.jpg (94.72 KiB) Viewed 4267 times
what I get in the preview (Historie) is an x-axis:
1 – 1992 – 1997 – 2002 – 2007
see screenshot:
screenshot preview report designer
screenshot preview report designer
report_preview_screenshot.JPG (96.99 KiB) Viewed 4267 times
This is not what I expected, I didn’t expect the x-axis to start with 1 but 1988 since 1988 is the value of the first row in column0 of my corresponding datatable.
Also I am missing the minor ticks to right end of the x-axis.
And which property does hold the label values shown
I don’t know how to make my preview show x-axis labels for every 2nd major tick
I don’t know how to display 1988 instead of 1 for the very first major tick

I hope this text makes my problems a little clearer and you will be able to help me solve my problem(s),
I updated the report files
stimulsoft_2012_12_03.zip
updated report data & files
(9.05 KiB) Downloaded 263 times
thank you & best regards,
Doreen Collins
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problems with X-Axis label and displaying edge values

Post by HighAley »

Hello.

Sorry, we need a little more time to prepare an answer for you.

Thank you.
DCollins
Posts: 9
Joined: Tue Nov 27, 2012 2:05 pm

Re: Problems with X-Axis label and displaying edge values

Post by DCollins »

Hallo dear support team,

it has been a while and I havent heard back from you so i want to get back in touch with you.
I am still not (fully) understanding how the property StartFromZero for the x-axis affects the Labels and the data shown in the graph.
Therefor I assembled a simple example project.
It contains the information I want to show in a table and 2 graphs. Both graphs have the same settings and data(source).
they only differ in the StartFromZero property of area.xAxis
resulting graphs
resulting graphs
Screenshot_graphs2.JPG (89.64 KiB) Viewed 4201 times
In the upper graph with the StartFromZero property set to true, the x-axis starts with 0 but the line does not begin where x-axis is 0.
It starts with an offset but according to the SeriesLabels (arguments) is calculated and labeled correctly.
but we do not use SeriesLabel in the end product so between the line and the x-axis there is an offset of 1 and the data is not shown correctly.

In the lower graph with the StartFromZero property set to false, the x-axis starts with 1 and the line also starts at value 1 (on the y-axis).
The labels of the x-axis are in line with the Serieslabel, but the line also is not displayed correctly (the line value for 19 should not be the last
of the lower values before the line rises again, but 20).

I have checked the bahaviour with 2012.3.1500.0 (Stimulsoft Reports.NET 2012.3 Trial) and 2012.2.1400.0. it is the same with both versions.
So which value or what does start from zero when the property StartFromZero is set to true?
And s it possible to design a graph where the there is no offset between line and x-axis? (in this example, x-axis starting
at 0 and and the line starting at 0 too)

thank you & best regards,
Doreen

Attachements:
stimulsoft_20130403.zip
mrt, xsd, xml & resulting pdf after rendering
(204.11 KiB) Downloaded 372 times
partial data
partial data
Screenshot_partialdata.JPG (45.8 KiB) Viewed 4201 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problems with X-Axis label and displaying edge values

Post by HighAley »

Hello.
So which value or what does start from zero when the property StartFromZero is set to true?
And s it possible to design a graph where the there is no offset between line and x-axis? (in this example, x-axis starting
at 0 and and the line starting at 0 too)
Sorry for the delay with answer.
The point of the chart of the X Axis are set in the order they are.
It seems that you didn't set the Argument Data Column property of the Series on the second chart. So you get the wrong numbers of the X Axis. But it's just the number of the order of the values.
If you will set the Argument Data Column you will get the attached chart.
The Start From Zero property just add some space on the edges of chart. and the number of this argument is zero.

There are 2 solutions of your issue.
At first you should set the Argument Data Column property of the Series.
1. Set the Start From Zero property to True and the Show Edge Values to False.
2. Set the Start From Zero property to False and the Show Edge Values to True.

Thank you.
Attachments
SimpleChart_updated.mrt
(29.88 KiB) Downloaded 267 times
DCollins
Posts: 9
Joined: Tue Nov 27, 2012 2:05 pm

Re: Problems with X-Axis label and displaying edge values

Post by DCollins »

hello Aleksey,

thank you for your answer ;)

your updated report file did have the desired outcome with the latest release (2013.1 from today).
With older releases e. g. 2012.3 it didnt. Were there changes relating to this?

Thank you very much for your help and support :)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problems with X-Axis label and displaying edge values

Post by HighAley »

Hello.
DCollins wrote:thank you for your answer ;)

your updated report file did have the desired outcome with the latest release (2013.1 from today).
With older releases e. g. 2012.3 it didnt. Were there changes relating to this?
We are constantly improving our products.Diffenetly there were several improvements.
DCollins wrote:Thank you very much for your help and support :)
Sorry for delay with previous answer.
We will answer on your other questions faster.

Thank you.
Post Reply