Skip to main content
Question

I have created a Pie Chart. All the information is pulling correctly. I have the colors set in the legend box but I am not able to change the name. It is showing a '3' and '4' next to the color blocks. How can I change these numbers to names?

  • October 19, 2013
  • 0 replies
  • 32 views

I have created a Pie Chart. All the information is pulling correctly. I have the colors set in the legend box but I am not able to change the name. It is showing a '3' and '4' next to the color blocks. How can I change these numbers to names?
This topic has been closed for replies.

  • Registered
  • October 19, 2013
QuickBase uses HighCharts for it charting package and HighCharts use <svg> technology. This means that irrespective of the features QuickBase or HighCharts has placed into their integrations or APIs, you can always directly manipulate the final <svg> just as you can manipulate a web page's DOM. So sidestepping QuickBase and HighCharts features, you can change the the charts labels from "3" to "Three" using this JavaScript code:
$("tspan:contains(3)").filter(function(){ return $(this).text() === "3"; }).html("Three");
Depending on your workflow and needs you can (1) inject this code manually (see before / after screenshots), (2) through a CrossRider extension; or (3) through a script in a containing page that the chart inserted through an <iframe> resides in.

  • Registered
  • March 20, 2014
It doesn�t look like I have the same console as you.  How would I access the editor?

  • Registered
  • September 19, 2014
I'd also like to know how to obtain the console that's used in your example to update the javascript my reports are using. Thanks!!

  • Registered
  • September 19, 2014
Found it on Chrome (Control - Shift - J) bam! Now on to figure out how to use it:)

  • Registered
  • September 19, 2014
Dan, I'm able to edit the script within the console but it doesn't save the changes to my chart in Quickbase. Do you know the steps to take after editing the code in the console so that it is saved in Quickbase? Thanks so much!