I am in a mid of creating a SSRS report, the report consists of a tablix and a chart, both depicts same data i.e. same database query.
The actual number of columns of the Tablix is dynamically decided by the number of rows returns by the query. We are displaying records in a COLUMN-WISE manner.
Example:
If 5 records are returned by the query then 5 columns will be displayed in Tablix...
If 8 records are returned by the query then 8 columns will be displayed in Tablix...
The number of records returned by the query is dynamic, hence the width of Tablix is dynamic.
Now about the chart, the width of chart always remains fixed, but we want that it should be same as the width of tablix, that means we require the bars of the Bar-chart should be aligned with the columns of the Tablix as each bar of chart depicts data in each column of Tablix.
We can manually change the width of chart, but it doesn't always gets aligned with the width of Tablix.
What we have tried which didn't worked
Placing the chart inside 1st row of Tablix. This didn't aligned it properly.
We have read that we can use DynamicWidth and DynamicHeight property of chart, but we don't know how to use it.
Anyone knows how do we align chart with dynamic width Tablix?