Continuous vs Discrete Data

In the current implementation, only discrete data can be used to control the display. Scalar data is not supported, but can be simulated by converting scalar ranges to discrete values. The following example sets the component’s border width to be dependent on a scalar value by using ranges:

<styles>
<style rule="@value &lt; 1">stroke-width: 1</style>
<style rule="@value &lt; 2">stroke-width: 2</style>
<style rule="@value &lt; 3">stroke-width: 3</style>
<style rule="@value &lt; 4">stroke-width: 4</style>
</styles>

Note: This example does not show up in the legend, since there are no labels.