問題
在查看聚合數據可視化時,我希望通過直接在圖形工具提示上顯示相關的直方圖來深入了解基礎數據分佈。
解
1)創建一個“表達式”類型列(以便將其值視為圖像);
2)使用下面列出的JSL為其添加“formula”屬性。
3)為此列設置“Label”標誌(以便在圖形工具提示中顯示);
4)創建條形圖和樹圖等摘要圖,最好由公式按組定義中使用的相同列聚合。
5)探索!

this_row = Row();
this_col = Column( "sex" );
this_cell = this_col[this_row];
dt = Current Data Table();
dt << clear select();
rpt = As Constant(
Platform(
dt,
Graph Builder(
Size( 256, 128 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables( Y( :height ) ),
Elements( Histogram( Y, Legend( 2 ) ) ),
By( :sex )
)
)
);
xpt = "//OutlineBox[text() = 'Graph Builder sex=^this_cell^']";
L = rpt << xpath( Eval Insert( xpt ) );
L[1][1] << Get Picture();