Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to show the tabular data below the chart

$
0
0

This example demonstrates how a PivotGridControl can be used along with a chart control on the same form, to represent the same data both in graphical and tabular forms.

The main idea is to place the PivotGridControl right over the chart, so that the grid's columns correspond to values along the chart's X-axis.

For details on how this can be achieved, see the code of this example.

Question Comments

Added By: Dustin Ventin at: 12/6/2013 1:37:14 PM    

I am trying to use this code in an xtraReport, as recommended here:
https://www.devexpress.com/Support/Center/Question/Details/Q524327

First of all, it's not working at all. The columns in the pivotgrid never change size... in fact, the SizeChanged event is never thrown when the report is shown.

Regardless, I think I'm going about this backwards. The tabular data I'm trying to show is extensive, easily numbering in the dozens of columns, and each column containing a 10 digit number ($99,999,999.99). This has resulted in a pivottable that takes up hundreds of pages of reporting by itself, and simply cannot be compressed to line up reasonably with the chart.

I think what I need to do is this:

A) Expand the chart so that it is the length of the pivotgrid, with its points of data lined up with the appropriate date column on the pivotgrid.

B) Override the report pages so that the entire report is printed on ONE large page. Obviously this report could never be printed on physical paper, but once exported to Excel or PDF it could be very useful.

Any ideas how to make this work, or should I go back to the drawing board?

Added By: Alex (DevExpress Support) at: 11/19/2014 4:15:22 AM    

Hi Dustin,

I am afraid the SizeChanged event is not effective in a report document. Please refer to the following ticket where a similar scenario is described:

Show tabular data below the chart.

If you need any clarification, feel free to contact us. We will be happy to help you.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>