13.07.2015 Views

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Flash ChartsFigure 13-10 Specifying color rangesUse Add, Modify, and Remove to define your set of color ranges. The numeric range applies to the data value calculated fromthe data expression for each entity. Ranges are not dynamic; the minimum and maximum values for each range are staticallydefined. For each range, you then define the fill color for the entities that match and a label that appears in a legend for themap. The following figure gives an example of the color ranges in Figure 13-10 applied to a map of Europe; the datarepresents the total number of orders placed in each country.Figure 13-11 Color ranges applied to a map of EuropeWhen defined, color ranges apply to all entities that do not have a color expression. If you have defined a color expression forany given entity, the color expression takes precedence to determine the color of that entity. In Figure 13-11, for example,Finland (FI, entity ID 012) is blue and Belarus (BY, entity ID 004) is white because they each have a static color expression inthe list of entities, as shown in Figure 13-8 and Figure 13-9. In order to use color ranges accurately, make sure the colorexpression for all entities is blank.Figure 13-11 also shows that entities whose ID is not computed by the ID expression of any entity definition are colored in thedefault fill color.13.2.5 Localizing MapsAll maps have a short and a long name for each of their entities, for example, the name of the countries on the map of Europe.All the names are in English. In order to translate them to different languages, it is possible to provide a resource bundle filethat contains the list of the translated names. The file must follow the naming conventions for resource bundles, where the basename of the bundle is the case-sensitive map name; for example, in the file name Europe_it.properties, the base name isEurope.251

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!