我正在从 JfreeChart 转移到 CCC。我可以使用 MDX 查询显示 CCC 图表。我有一个问题:我必须在我的 MDX 查询中进行更改,它允许在 JfreeChart 组件中显示饼图,但不能在 CCC 中显示?查询如下:
with member [Measures].[Total] as '([DIM_X].[A], [Measures].[COUNT])'
member [Measures].[Perc] as '([Measures].[COUNT] * 100) / [Measures].[Total]'
set [Percent over threshold] as 'Filter([DIM_X].[A].Children, [Measures].[Perc] >= 4)'
member [DIM_X].[Others] as 'Aggregate({Filter([DIM_X].[A].Children, [Measures].[Perc] < 4)})'
select NON EMPTY {[Measures].[COUNT]} ON COLUMNS,
NON EMPTY {[Percent over threshold],[DIM_X].[Others]} ON ROWS
from [CUBE]
为什么此查询的结果集显示在 JFreeChart 组件中的饼图中而不是 CCC 组件中?另一个细节:在 CCC 组件中,我能够显示已发布查询折线图或条形图的结果集。