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

How to Set different colors on a group of BarChart?

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 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!

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

              Created:
              Updated:
              Resolved:
              Imported: