Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8163358

BubbleChart.updateLegend should add all LegendItems with setAll

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8, 9
    • javafx
    • x86
    • other

      A DESCRIPTION OF THE REQUEST :
      The BubbleChart has a preformance issue when setting data with a lot of series.

      BubbleChart.updateLegend creates all LegendItems new and adds them one by one to the ObserveableList of items. After each add the ListChangeListener of the Legend is executed and executes TilePane.requestLayout which is pretty expensive.

      This could be reduced to a single call of setAll on the ObserveableList, this should call TilePane.requestLayout only once.

      JUSTIFICATION :
      To improve the performance while setting data with a lot of series to the BubbleChart.


            vadim Vadim Pakhnushev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: