You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Spotfire中实现只读可视化并禁用用户交互及标记修改功能?

How to Disable User Interactions in Spotfire Visualizations for Read-Only Reports

Absolutely, you can lock down your Spotfire visualizations to serve as read-only reports where users can't click data points or modify existing marks. Here are the most practical ways to get this done:

1. Adjust Visualization Interaction Settings (Per-Visual Control)

This is the simplest way to lock individual visuals:

  • Right-click on the visualization you want to restrict, then select Properties.
  • Switch to the Interactions tab.
  • Uncheck all user-facing interaction options:
    • Allow marking (prevents users from selecting/modifying marks)
    • Allow selection (blocks clicking to highlight data points)
    • Show details on hover (stops hover tooltips if you don't want them)
  • Head to the Appearance tab too, and turn off any selection indicator options—this removes visual cues that make users think they can interact.

2. Batch Disable Interactions with IronPython (For Multiple Visuals)

If you have dozens of visuals to lock, a quick script will save you time:

from Spotfire.Dxp.Application.Visuals import VisualContent

# Loop through all pages and visuals in the document
for page in Application.Document.Pages:
    for visual in page.Visuals:
        try:
            visual_content = visual.As[VisualContent]()
            # Disable core interaction features
            visual_content.Interactivity.AllowMarking = False
            visual_content.Interactivity.AllowSelection = False
            visual_content.Interactivity.ShowDetailsOnHover = False
        except:
            # Skip visuals that don't support these settings (like text boxes)
            continue
  • Open the Spotfire Script Editor (Tools > Scripts), paste this code, and run it. Save your document afterward to keep these changes.

3. Set Read-Only Permissions (For Published Reports)

If you're publishing to Spotfire Server, use permissions to enforce read-only access at the user level:

  • When publishing your report, navigate to the Permissions section.
  • Assign the View Only role to the target users or groups.
  • This is the most comprehensive method—users won't be able to modify anything in the report, including marks, visuals, or document settings.

Quick Notes

  • If you want to keep some limited interactions (like letting users hover for details but not modify marks), just uncheck the specific options you don't need instead of turning everything off.
  • Make sure you finalize all your marks before locking down the visuals—once interactions are disabled, you won't be able to edit them unless you re-enable the settings temporarily.

内容的提问来源于stack exchange,提问作者MaxSense

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.28 16:27:29