Shobhit Sachdeva Posted May 9, 2019 Share Posted May 9, 2019 I am looking for a sample script to addLine from column values using iron phython in SPotfire in scatter plot. Any sample would be helpful . Thanks, Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted May 13, 2019 Share Posted May 13, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now