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

Chart styling error in documentation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 7u9
    • None
    • docs
    • Mac OS X, JavaFX 2.1

    Description

      It seems the documentation for styling charts contains an error. The documentation can be found here: http://docs.oracle.com/javafx/2/charts/css-styles.htm

      Indeed, the code example for figure 8-2 says that in order to change the text color of both title and labels you have to override the .chart CSS class but this does not work. In order to change that color, you have to override the .chart-title CSS class for the title, and .axis-label for the labels like this:

      .chart-title {
        -fx-text-fill: white;
      }
      .axis-title {
        -fx-text-fill: white;
      }

      I'm sorry if I didn't report that bug in the right place. I have previously posted a message of the Oracle forum: https://forums.oracle.com/forums/thread.jspa?threadID=2386077&tstart=0

      Attachments

        Activity

          People

            aredko Alla Redko (Inactive)
            twasylczejfx Thierry Wasylczenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: