analytic Coffee!
  • Topical Tessitura Community Groups
  • More
analytic Coffee!
Wiki Joining Isolated Data-points, Removing Data Markers, Interpolating Last Point
  • Discussions
  • Files
  • Wiki
  • Members
  • Mentions
  • Tags
  • Events
  • More
  • Cancel
  • New
analytic Coffee! requires membership for participation - click to join
  • analytic Coffee! Wiki
  • +Tessitura Analytics Shared Dashboards
  • +Data Analysis Training Opportunities
  • -Analytics Tips & Trouble shooting
    • Analytics Scripts not Saving
    • Auto-Zoom Scatter Map
    • Changing Labels on a Graph
    • Conditionally format the color of text
    • First Time Buyers and Subsequent Buying
    • Fixing Tessitura Analytic Emails after an upgrade
    • Joining Isolated Data-points, Removing Data Markers, Interpolating Last Point
    • Milestones: Labelled Data Points on Analytics Charts
    • RSUM continuous chart, remove gaps
    • Scatter Map Widget tips - Heat Map of postal codes
    • Sorting First Performance Name by Date Instead of Alphabetically
    • Troubleshoot Data Warehouse Load
    • Troubleshooting Application Availability
  • Jupyter Notebooks
  • Learning about AI
  • +Learning about Python
  • +Power BI & Tessitura

You are currently reviewing an older revision of this page.

  • History View current version

Removing Data Markers for isolated, single data-points

From Chris Wallingford
https://community.tessituranetwork.com/tessitura_software_forums/f/tessitura_shared_reports-9/29770/data-markers-appearing-when-turned-off

Points on the original line that are isolated, single data-points not immediately preceded or followed by another non-null data-point of the x-axis, [can be linked but] a marker dot will still be rendered on the line chart:

widget.on("beforeviewloaded",function(scope, args){
args.options.plotOptions.series.connectNulls = true;
});

Expanding this script, we can iterate through all series lines, and all data points on each line to explicitly remove the marker dots. This will remove the markers as shown below, however, any series with only one data-point in the whole widget will disappear from the chart altogether. This may be a non-issue in your data however.

widget.on("beforeviewloaded",function(scope, args){
args.options.plotOptions.series.connectNulls = true;
});
     
widget.on('render', function(sender,se){
for (var i = 0; i < sender.queryResult.series.length; i++ ) {
    for (var j = 0; j < sender.queryResult.series[i].data.length; j++) {
        sender.queryResult.series[i].data[j].marker.enabled = false;
         }
    }
}
)