Jump to content

Change Marking of a KPI Chart


Sander Koster

Recommended Posts

Hi,

I have one KPI Visualisation with two KPIs (see screenshot 1). With a script i am trying to change the marking of one of the KPIs but it's nog working (see script below). I think the problem is that my script is searching forthe Title of the visualtions in stead of the specific KPI (see screenshot 1). Do you know how i can solve this

from Spotfire.Dxp.Application.Visuals import *

from Spotfire.Dxp.Data import DataPropertyClass

for page in Application.Document.Pages:

for vis in page.Visuals:

if vis.Title == "COUNTRY_M8_SUBAREA_NAME":

vi = vis.As[KpiChart]()

m=vi.Data.MarkingReference

vi.Data.MarkingReference=None

Thanks! Sander

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...