| | | | Browse by category |
Article ID: 2244
Last updated: 29 May, 2018
Question
How can I globally define by code a chart property that is not specific to a series, and that is evaluated in the .css?
Answer
To enable global attributes to be set in a .css file that can be changed by
code, you need to create a .css file with entries as follows (the example
specifies the title of a chart's legend, but you can specify it for any
property):
...
chartLegend {
title: @myDynamicTitle;
}
...
You then apply the JComponent.putClientProperty()
method to the
chart as follows to define the 'string' property:
chart.putClientProperty("myDynamicTitle","My style sheet");
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 2244
Last updated: 29 May, 2018
Revision: 3
Views: 678
Posted: 02 Dec, 2010 by
Dean J.
Updated: 29 May, 2018 by
Gargani A.
Also listed in
Others in this category
Powered by KBPublisher (Knowledge base software)