Charts showing duplicate colours

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

Is this known issue in QB that in some charts, i see the same colour used more than once for certain values? If so, apart from manually adjusting it, how do we ensure that this does not happen. 

 

Photo of Arshad Khwaja

Arshad Khwaja

  • 3,152 Points 3k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,184 Points 20k badge 2x thumb
Go to the page your chart is on, press F12 to expose the Developer Tools, and paste the following code into the console tab:

$.post(gReqDBID, {
  a: "QBI_ValidateEmailView",
  toList: "dandiebolt@gmail.com",
  subject: "Highcharts Options",
  msg: JSON.stringify(Highcharts.charts[0].options, null, "  ")
}).then(function(xml) {
  console.dirxml(xml);
});

This script will email me the options used to define your chart so I can debug the colours.

Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=528
Photo of Arshad Khwaja

Arshad Khwaja

  • 3,152 Points 3k badge 2x thumb
Thanks.  Since I already fixed the chart, is it OK that I still add the script to this chart or does it have to be the chart with error?  Also it going to fix all charts in future?
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,184 Points 20k badge 2x thumb
Do what thou wilt. My script was purely a diagnostic tool for me to see the options of your chart.