0 Replies Latest reply on Jan 26, 2013 12:45 PM by Knut Arne Vedaa

    PieChart colors rotate every time dataset is cleared and set again

    Knut Arne Vedaa
      If you have a
      pieChart = new PieChart(myObsList)
      and do e.g.
      myObsList setAll newData
      the colors of the chart will rotate one step every time, i.e. the first item in the list will get a different color every time.

      Is this by design? It is clearly not desirable (the same input - data - gives different output - colors - depending on what happened before), so are there any work-arounds?

      See also http://stackoverflow.com/questions/12123936/javafx-2-2-pie-chart-colors-not-resetting