Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Created by Guest
Created on Feb 24, 2023

Set `LineConnection` property of `MarkerLayer` via IronPython API

Goal: Use IronPython to set LineConnection property of MarkerLayer in Map Chart.

Issue: Based on documentation, it seems one can only get, but not set LineConnection.

  • Attach files
  • Guest
    Reply
    |
    Feb 27, 2023

    Johan, thanks for your tip.

    It does allow value setting, even though docs only mentions get.


    Docs

    public CategoricalAxisBase ConnectionAxis { get; }


  • Guest
    Reply
    |
    Feb 27, 2023

    This should already be possible. The LineConnection property gets an object that can be used to configure it. Here's a snippet in C# that does that:

    layerVisualization.LineConnection.ConnectionAxis.Expression = "<[ConnectByColumn]>";

    layerVisualization.LineConnection.OrderAxis.Expression = "Avg([OrderByColumn])>";

    layerVisualization.LineConnection.Color = Color.Blue;

  • Guest
    Reply
    |
    Feb 24, 2023
    Goal

    Use IronPython to set LineConnection property of MarkerLayer in Map Chart.


    Issue

    Based on documentation, it seems one can only get, but not set LineConnection.