skip to main content
Charts > Getting started > Introducing JViews Charts > General architecture of JViews Charts > The style sheet
 
The style sheet
The appearance of a chart can be dynamically controlled with cascading style sheets (CSS).
Cascading style sheets (CSS) are a powerful mechanism to customize HTML rendering inside a Web browser. It comes from the W3C, and has now reached the state of a standard recommendation. Here we transpose the CSS level 2 recommendation in the Java language and use it to set bean properties according to the Java object hierarchy and state. The CSS selector was designed to match HTML or XML documents. However, it can be used to match a hierarchy of Java objects accessible from a model interface. The declarations are then sorted for the model objects and used according to the application that controls the styling engine.
In JViews Charts, the styling engine is responsible for creating and customizing chart components and the data graphical representation at load time. At run time, the engine customizes the data graphical representation according to the model changes.
NOTE For more information on Cascading style sheets, see Using CSS Syntax in the Style Sheet in Developing with the SDK.
When you create a chart, you can define your own style rules for:
*Chart Component
The CSS rules are used to customize the global appearance of the chart. See Customizing your chart in Using the Designer.
*Chart Data
The CSS rules are used to control how individual data points or data series are rendered. See Managing data style rules in Using the Designer.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.