Hello All,
I'm still very new to Tessitura and Analytics. I'm having an odd issue with a line chart I'm working on and wanted to check on here for a possible solution.
I have a line chart that shows % to goal per day prior to opening. I was having issues with the line being broken and that issue has been solved with this script: widget.on("beforeviewloaded",function(scope, args){args.options.plotOptions.series.connectNulls = true;});
The issue I'm running into now are some random data markers on the lines. Markers are turned off in the design panel, but these still appear. I've finally figured out that it is occurring when sales were processed one day but not the day before or after. The script is linking the line, but the underlying data marker is still present. Any recommendations on how to remove this issue?
Hi Daniel,
Yes, using that script, 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, a marker dot will still be rendered on the line chart:
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
;
});
'render'
(sender,se){
for
(var i = 0; i < sender.queryResult.series.length; i++ ) {
(var j = 0; j < sender.queryResult.series[i].data.length; j++) {
sender.queryResult.series[i].data[j].marker.enabled =
false
}
)
Thank you so much Chris!!! This worked perfectly for what I needed.