Discussions

Expand all | Collapse all

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?

  • 1.  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?

    Posted 10-19-2013 02:54


  • 2.  RE: 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?

    Posted 10-19-2013 17:57
    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.">https://d2r1vs3d9006ap.cloudfront.net/import_reply_images/15243/original.jpg">


  • 3.  RE: 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?

    Posted 03-20-2014 17:53
    It doesn�t look like I have the same console as you.  How would I access the editor?


  • 4.  RE: 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?

    Posted 09-19-2014 17:04
    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!!


  • 5.  RE: 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?

    Posted 09-19-2014 17:20
    Found it on Chrome (Control - Shift - J) bam! Now on to figure out how to use it:)


  • 6.  RE: 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?

    Posted 09-19-2014 17:44
    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!


  • 7.  RE: 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?

    Posted 06-22-2018 23:40
    the chrome console is for seeing the reaction of changed parameters so it is  just for debugging.