0 Replies Latest reply: Jan 26, 2013 6:45 AM by Knut Arne Vedaa RSS

    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