analytic Coffee!
  • Topical Tessitura Community Groups
  • More
analytic Coffee!
Wiki Changing Labels on a Graph
  • 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

Changing Labels on a Graph

Zachary Little (The Smith Center for the Performing Arts)

Does anyone know if there is a way to customize the labels on a graph. In creating a graph that shows data across multiple fiscal years. The data looks correct, but I want to update the labels to match my organizations labelling standards instead of just a year. In the below image I want to change the numbers highlighted in red. I can't find anything on my own. Any help is appreciated. Thanks!

Chris Wallingford Tessitura Network

There isn't native functionality for relabelling the values within a data field. So, if you say, want 2022 to appear as FY22, Analytics doesn't currently support doing that in the Category or Break by field and instead would require distinct values for each FY as you describe in your most recent comment.

That said, it is possible to add custom scripting "behind" a widget to impact how the widget is ultimately rendered. 

How to edit the script.

widget.on('render', function(widget,args){
 widget.queryResult.xAxis = {
 categories: widget.queryResult.xAxis.categories,
  //Runs every value in the category through this function 
  labels: {
   formatter: function () {
    return 'FY' + this.value.substr(2)
   },
  }
 }
})