OpenCDSS / cdss-lib-common-java

Colorado's Decision Support Systems (CDSS) common library (Java)
GNU General Public License v3.0
0 stars 1 forks source link

Add configurable graph properties for time series color and style selection #74

Open smalers opened 4 years ago

smalers commented 4 years ago

Currently, some time series graph properties are hard-coded. For example, default colors for time series are chosen based on an array of standard colors. If it is desired to coordinate TSTool time series product (tsp) file (or other information product configuration) with other tools such as web application graphing tools, then it would be good to not hard-code such properties in multiple places such as TSTool and web application code. Instead, a new property could be defined at "subproduct" level to describe the color chooser. If it requires coding in more than one place, general code can be developed, such as getColorForTimeSeries(...). A similar approach could be taken to specify symbols and other properties. It may also make sense to have a color chooser that is based on the data type. There are many data types, so it could be an issue to predefine colors without conflicts and ambiguities.

This is a high priority mainly in order to allow TSTool-generated property files to be used by web applications to produce similar graphs.