This is a migrated thread and some comments may be shown as answers.

Columns of Report Graph are not centered

1 Answer 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 26 Jul 2018, 07:52 PM

Hello,

I'm trying to build a chart and prepared a classes:

        public class ReportIndicators
        {
            public Item item1 { get; set; }
            public Item item2 { get; set; }
        }

        public class Item
        {
            public int value1 { get; set; }
            public int value2 { get; set; }
            public string itemType { get; set; }
        }

In the report I return the data:

        return new ReportIndicators
        {
            item1 = new Item
            {
                value1 = 10,
                value2 = 15,
                itemType = "type1"
            },
            item2 = new Item
            {
                value1 = 20,
                value2 = 15,
                itemType = "type2"
            }
        };

The chart looks good (chart.jpg), but the groups of columns are not centered above each label, why is this? If I'll add more items, the columns will be narrower. How I can fix that? I tried to change Scale.SpacingSlotCount property, but it did not help me.

When I built the chart, I used the item 'Add Graph Series' in the context menu on the graph and set the values as on the screen 1.jpg, 2.jpg. Is it correct?

 

1 Answer, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 27 Jul 2018, 09:23 AM
I resolved the issue, sorry for disturbing.
Tags
General Discussions
Asked by
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Share this question
or