Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-665

Pie chart breaking with 7 items

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.3-core
    • Components
    • None
    • WinXP SP2
      JDK 5.0
      Firefox 2.0
      JBoss 4.2

    Description

      Hello,

      I want to draw a pie chart with a total of 15 data items in a series.
      When I render the page the chart is not shown.

      So I limited the number of data items in the chart and found out, that
      the chart shows only with a maximum number of 6 data items.

      So the following works:

      public List<List<Double>> getYValues() {
      List<Double> item = Arrays.asList(new Double[]

      {1.0, 2.0, 3.0, 4.0, 5.0, 6.0}

      );
      Vector<List<Double>> yValues = new Vector<List<Double>>();
      yValues.add(item);
      return yValues;
      }

      But this doesn't work:

      public List<List<Double>> getYValues() {
      List<Double> item = Arrays.asList(new Double[]

      {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0}

      );
      Vector<List<Double>> yValues = new Vector<List<Double>>();
      yValues.add(item);
      return yValues;
      }

      I have tested this issue with verticalBar. The same applies here, too.

      Attachments

        1. trunk.path
          8 kB
          Venkata Guddanti
        2. chart.patch
          36 kB
          Venkata Guddanti

        Activity

          People

            matzew Matthias Wessendorf
            freiser Florian Reiser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: