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

Dynamic number of BarSeries in Graph

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 19 Sep 2014, 08:04 AM
Hi,

I'm trying to implement a dynamic graph with BarSeries, where I do not know how many bars I really have at design time. I add 10 bars programmatically and indicate with the help of an caption, if a bar should be shown or not. But if I set a bar as not visible, there is a gap between the bars.

Is it possible to totally remove the bar from the graph at runtime, when the caption is NULL?

1 Answer, 1 is accepted

Sort by
0
Hinata
Top achievements
Rank 1
answered on 23 Sep 2014, 02:52 PM
Hi Richard,

Note it is possible to filter the data which is coming through the Graph data source at run-time, before displaying the report in the viewer.

From your explanation I imagine that the bar is still taking up space even though it is not visible. Thus, there is a gap between the bars and you cannot avoid that. Maybe an example of what you are doing may clear up the scenario and help us to come to a better solution.
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Hinata
Top achievements
Rank 1
Share this question
or