YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2528819 (closed enhancement)

Reporter


davidsickmiller
Opened: 03/2/10
Last modified: 06/29/10
Status: closed
Type: enhancement
Resolution: moved

Owner


Tripp Bridges
Target Release: FUTURE
Priority: P3 (normal)
Summary: Add options for handling pie charts when the total value is zero.
Description:

If the pie chart data is such that all wedges have zero value, the pie chart is displayed with each category having an equal portion. This isn't necessarily an intuitive way to display the
information. Since a pie chart with a total value of zero is somewhat undefined, it would probably be good to have a few options:

- Display equally apportioned pie chart (current behavior)
- Do not display a pie chart
- Display a text string instead of the pie chart
- Call a function. Pass a reference to the target DIV so its innerHTML can be easily set

One could argue that user's javascript should catch the zero value condition before PieChart is instantiated, but that's not feasible when the PieChart uses a datasource to download the data from the
server.

Type: enhancement Observed in Version: development master
Component: Charts Severity: S3 (normal)
Assigned To: Tripp Bridges Target Release: FUTURE
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Tripp Bridges

YUI Developer

Posted: 03/10/10
  • location changed to Library Code
  • milestone changed to FUTURE
  • priority changed to P3 (normal)
  • status changed from new to accepted
  • version changed to development master

Tripp Bridges

YUI Developer

Posted: 06/29/10
  • resolution changed to moved
  • status changed from accepted to closed