-
Notifications
You must be signed in to change notification settings - Fork 58
Description
Hello,
If I do a gridify to create a pivot grid, I get the desired result. Similar to
if I pass the resulting dataItem to a BIChart.Data, the data graphs properly. I get one series for Angela, Claire, Johnny, Julia, Mike and the 'Year' column is the X axis.
But if I create a TChart and do chart.AddSeries(TChartData.From(gridifiedDataItem,chart1,TLineSeries) I only get one series. Stepping through the code, it seems that TChartData.From thinks there are only two dataItems and only one of them is numeric. I am presuming that the second dataItems is for a nested DataItem to hold the pivoted data. That also explains the multi-headers in the grid.
What is the easiest way to flatten this pivoted dataItem into a 'regular' asTable dataitem with no nested dataItems so I can easily just use a standard TChart. I have a lot of tools that already work with a TChart and I dont want to modify them to be able to handle a TBIChart.