iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library iReport Ultimate Guide - Nimsoft Library

13.07.2015 Views

iReport Ultimate GuideFigure 13-37 Specifying the value expression for an angular dialEnter an expression based on your data that evaluates to a numeric value. The example in Figure 13-37 shows only a constantvalue but demonstrates how the expression must return an object of the expected type.The Angular Dial tab also includes properties that determine how this particular dial will appear; for example, color, radius,and rear extension of the pointer. The simple view lets you set these properties statically, or you can click Show AdvancedOptions to enter expressions that will set the all properties dynamically based on your data.The Widget Data tab for the linear pointer gives you a list of pointers, and the dialog to add or modify a pointer is similar tothat of a dial, only with different properties.Figure 13-38 Specifying the value expression for a linear pointerFor most types of gauges, you can define color ranges for the dials or pointer. A color range defines an area of the chart basedon a minimum and a maximum value. Use the Color Range tab in the Widget Properties window to define one or more colorranges on your gauge. Figure 13-39 shows an angular dial with two dials (needles) and two color ranges.268

Flash ChartsFigure 13-39 Output of the angular dial example13.4.3.3 Funnel ChartA funnel chart is composed of one or more funnel segments, with each segment being the connection between two consecutivedata points. For example, given the following records in a database, you can create the chart in Figure 13-40.LabelValueWebsite visits 385634Downloads 175361Interested to buy 84564Contract Finalized 35654Purchased 12342Figure 13-40 Funnel chart created from data sampleThe data points used in the funnel are defined by value sets. A single value set that contains expressions referencing thedatabase fields can generate an entire chart.The value sets that create the funnel are listed on the nested Value Sets tab of the Widget Data tab.269

<strong>iReport</strong> <strong>Ultimate</strong> <strong>Guide</strong>Figure 13-37 Specifying the value expression for an angular dialEnter an expression based on your data that evaluates to a numeric value. The example in Figure 13-37 shows only a constantvalue but demonstrates how the expression must return an object of the expected type.The Angular Dial tab also includes properties that determine how this particular dial will appear; for example, color, radius,and rear extension of the pointer. The simple view lets you set these properties statically, or you can click Show AdvancedOptions to enter expressions that will set the all properties dynamically based on your data.The Widget Data tab for the linear pointer gives you a list of pointers, and the dialog to add or modify a pointer is similar tothat of a dial, only with different properties.Figure 13-38 Specifying the value expression for a linear pointerFor most types of gauges, you can define color ranges for the dials or pointer. A color range defines an area of the chart basedon a minimum and a maximum value. Use the Color Range tab in the Widget Properties window to define one or more colorranges on your gauge. Figure 13-39 shows an angular dial with two dials (needles) and two color ranges.268

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

Saved successfully!

Ooh no, something went wrong!