[diagrams] Diagram fixes and UI improvements (Fix #7960)
  * Use correct color for pie chart if only one value is >0
  * Show default text in scaling text box