Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-27584

pie chart error when color parameter specifies more colors than number of data series

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Low Low
    • None
    • None
    • None
    • None

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      I'm running Confluence 3.5.13. I have a pie chart which graphs a dynamic set of data, which contains up to 4 data series. The color parameter specifies four colour values. When the dataset includes fewer than 4 data series the macro throws a "java.lang.ClassCastException" error.

      The error can be reproduced using this wiki markup:

      {chart:type=pie|dataOrientation=vertical|colors=maroon,blue,yellow,cyan}
      || Priority || Num Defects ||
      | 2 | 1 |
      | 3 | 1 |{chart}

      The problem also exists on Confluence 4.3.3, the error shows as "java.lang.String cannot be cast to java.lang.Integer"

      Resolution

      Ensure the number of colours listed matches the number of columns of data.

            [CONFSERVER-27584] pie chart error when color parameter specifies more colors than number of data series

            Hi there,

            Sorry for the delay in responding here, as this site is a bug tracker and not a support system, we don't actively monitor this site from customers' requests.

            This error occurs when the number of colours exceeds the number of columns of data. If you just list 'maroon,blue' for the colours the chart displays correctly.

            For future reference, https://support.atlassian.com is our support system. In future you can raise tickets directly in that system, as that goes straight to our Support team and will get you a much quicker response.

            Kind regards,
            Denise
            Atlassian Support - Sydney

            Denise Unterwurzacher [Atlassian] (Inactive) added a comment - Hi there, Sorry for the delay in responding here, as this site is a bug tracker and not a support system, we don't actively monitor this site from customers' requests. This error occurs when the number of colours exceeds the number of columns of data. If you just list 'maroon,blue' for the colours the chart displays correctly. For future reference, https://support.atlassian.com is our support system. In future you can raise tickets directly in that system, as that goes straight to our Support team and will get you a much quicker response. Kind regards, Denise Atlassian Support - Sydney

              Unassigned Unassigned
              68877acca947 Wendy Fergusson
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: