Jump to content
We've recently updated our Privacy Statement, available here. ×

Line from column values iron phython


Shobhit Sachdeva

Recommended Posts

Below is a sample script

from Spotfire.Dxp.Application.Visuals import *

from Spotfire.Dxp.Application.Visuals.FittingModels import *

#get the data table

table=Document.Data.Tables["dataTableName"]

# define vis as script parameter referring to your visualization

lchart=vis.As[scatterPlot]()

# Add a ColumnValuesLine fitting model

lineModel=lchart.FittingModels.AddNew(ColumnValuesLine)

#Define the model

lineModel.DataTableReference=table

lineModel.XColumnReference=table.Columns["columnA"]

lineModel.YColumnReference=table.Columns["columnB"]

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...