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

Ability to set different color on a group of BarChart

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • javafx
    • windows7 32bit

      I can only set same color on a group of BarChart as the code below.
      Have some way to set different colors on different bars?

      BarChart<Number, String> inspectItemBar = new BarChart<Number, String>(xAxis, yAxis);
      inspectItemBar.setId("problemBar");
      #inspect #problemBar .chart-bar {
          -fx-bar-fill: #ACDA23;
          -fx-background-radius: 0;
      }


      Thany you!

            Unassigned Unassigned
            swangjfx Slash Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: