This post will give you the starting point of working with trend lines in jasper studio .
Adding trend Lines to Fusion Charts in Jasper Studio 6.x ( Adding average trend line in jasper studio to a bar chart)
Software Setup : Jasper Studio Pro 6.x, Jasper Server 6.x Pro, foodmart db.
Sample Data :
OUTPUT image :
Steps :
1) Create a variable and calculate Avg as shown in below image.
2) Give this variable( it should be of integer type though your field may output BigDecimal values) for Start Value Expression & End Value Expression as shown image.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw89eXHEP2VrrRUiN9ytXZWKd5cdI4EYO-SiwkgTTkzhe4fWS5UBhzfC64Y0EncmmgMWuH9EXYFLmYXSvp-vvfpIYfuVNhf3xMEyHI2NU1iBjNYg46c5dODewLfxmskbxea__KvO2v2eQl/s1600/image2.png)
NOTES :
Can we find moving average trend lines in jasper ? NO.
References :
1) How to add advanced properties :
http://community.jaspersoft.com/wiki/how-wrap-labels-pie-chart-pro
2) Customization properties
http://docs.fusioncharts.com/flex/charts/Contents/xml_elements_trend.html
3) http://en.wikipedia.org/wiki/Linear_regression
Adding trend Lines to Fusion Charts in Jasper Studio 6.x ( Adding average trend line in jasper studio to a bar chart)
Software Setup : Jasper Studio Pro 6.x, Jasper Server 6.x Pro, foodmart db.
Sample Data :
OUTPUT image :
Steps :
1) Create a variable and calculate Avg as shown in below image.
2) Give this variable( it should be of integer type though your field may output BigDecimal values) for Start Value Expression & End Value Expression as shown image.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw89eXHEP2VrrRUiN9ytXZWKd5cdI4EYO-SiwkgTTkzhe4fWS5UBhzfC64Y0EncmmgMWuH9EXYFLmYXSvp-vvfpIYfuVNhf3xMEyHI2NU1iBjNYg46c5dODewLfxmskbxea__KvO2v2eQl/s1600/image2.png)
NOTES :
Can we find moving average trend lines in jasper ? NO.
References :
1) How to add advanced properties :
http://community.jaspersoft.com/wiki/how-wrap-labels-pie-chart-pro
2) Customization properties
http://docs.fusioncharts.com/flex/charts/Contents/xml_elements_trend.html
3) http://en.wikipedia.org/wiki/Linear_regression
can not we do in community version?
ReplyDelete