2015-12-10 3 views

ответ

0

Вот как я это делаю.

from Spotfire.Dxp.Application.Visuals import VisualContent 

#"visual" is the name of the parameter found in the "Script Parameter" dialog below the editor which points to the visualization I want to change. 
vc = visual.As[VisualContent]() 
exp="["+Document.Properties["DocPropertyNameHere"]+"]" 
vc.YAxis.Expression =exp 
0

изменить что на оси x?

#change the Range from 0 to 100: 
from Spotfire.Dxp.Application.Visuals import VisualContent, AxisRange 
viz= viz1.As[VisualContent]() 
viz.XAxis.Range = AxisRange(0,100); 

Для более атрибутов см API

+0

oops, забыли оставить свой комментарий, когда я уточнил вопрос. – Keng

Смежные вопросы