Skip to content

Question about Gridify #19

Description

@De-Novo-Research

Hello,

If I do a gridify to create a pivot grid, I get the desired result. Similar to

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions