SSRS 圖表中的可選系列? (Optional series in a SSRS chart?)


問題描述

SSRS 圖表中的可選系列? (Optional series in a SSRS chart?)

is it possible to make a series in a chart optional (i.e. only rendered when the user clicks a checkbox, in case the corresponding query takes a while and may not be required)?

Or are there any alternative solutions where users can incrementally select the data series/charts they would like to see?

‑‑‑‑‑

參考解法

方法 1:

I was having a similar problem in SSRS 2008, I was trying to hide a series based on the value of the series value. I tried to set the visibility on the series, but that did nothing. Then I tried hiding the series on legend hoping it would also hide it on the chart, it did not. Finally, I set the value of the series to an expression, =iif(fieldvalue=0,"",fieldvalue), so it would return no value for the series if it had a value of 0, it also hides the series in the legend. This is a little late, but hopefully it helps someone.

方法 2:

This can be achieved with Parameters.

You can set parameters to decide what is to be displayed on the report during runtime.  You can programatically set the parameters with the help of a few controls places alongside the reportviewer control.

(by ChrisLeasurejgallant)

參考文件

  1. Optional series in a SSRS chart? (CC BY‑SA 3.0/4.0)

#charts #series #reporting-services #optional






相關問題

如何在 Playstore 或亞馬遜安卓應用中創建評論圖表? (How to create Review charts like in playstore or amazon android app?)

如何使用 XChart 使 Y 軸上的限制相同? (How to make limits on the Y axis be the same using XChart?)

擴展 SSRS 中的圖表功能 (Extending chart functionality in SSRS)

如何在 Zing Chart 中將時區設置為浮點數? (How to set time zone as float in Zing Chart?)

在重繪每個 ajax 並破壞舊的折線圖後,折線圖 (Chart.js) 上丟失了點工具提示 (lost point-tool-tips on line-chart (Chart.js) after redraw per ajax and destroying older line-chart graph)

互動你去哪兒了? (Interactivity where are you gone?)

SSRS 圖表中的可選系列? (Optional series in a SSRS chart?)

為 Google Charts Api 編寫自定義格式化程序 (Write a custom formatter for Google Charts Api)

有任何適用於 ASP.NET 的免費 PDF 或圖表生成器嗎? (Any free PDF or chart generators for ASP.NET?)

如何在這樣的 iOS 應用程序中創建圖表? (How to create charts in iOS app like this?)

與 jquery 一起使用時,Google 圖表上的 Vaxis 不顯示 (Vaxis on Google chart not showing when used with jquery)

這張股票圖可以用 Highstock 製作嗎? (Can this stock graph be made using Highstock?)







留言討論