csv - Jaspersoft Studio : issues while drawing graph -



csv - Jaspersoft Studio : issues while drawing graph -

i new jasperreports / jaspersoft studio , struggling bit charts. experts may find primitive , possible missing basic stuff here.. here brief of trying do 1) info source csv next fields sr_no, uri, total_time_taken, no_of_requests, avg_time_per_req, most_expensive_req, timestamp_of_exp_req 2) csv has around 40,000 lines in it 3) want create study has 40,000 lines in (a simple columnar study based on fields, sorted no_of_requests in descending order). piece of cake in jasperstudio ! 4) next, want summary page "top 10" uris in pie chart value of pie series no_of_requests , key uri (pretty straight forward)

i have created study in jasperstudio info source csv. have selected fields , applied no filter query primary dataset (i.e. default dataset while creating report). helps me print 40,000 lines in "details" band of report...so first part taken care off.

for summary page need pie chart challenge "top 10" records entire dataset. thankfully "top" criteria based on no_of_requests field , info sorted based on field. still, need subset of info draw meaningful chart. accomplish this, tried create new dataset 2 fields, uri (which key pie) , no_of_requests (which value). applied filter look "($v{report_count} > new integer(10)) ? false : true" new dataset "top 10" records sorted data. verified filter working correctly running in "data preview" tab of "dataset , query" dialogue. have chosen new dataset "dataset" pie chart..

when run study (in preview mode of jasperstudio), 40,00 0 lines printed corrected (in details band) summary empty. draws no pie chart. tried same bar chart, result same. summary in case shows x , y axis no info points. graph empty.

am missing something?

any help in regards highly appreciated.

i have created 2 variables gonna utilize in pie chart select top n values dataset. accomplish have used $v{report_count} variable follows

if($v{report_count}<=n,$f{your_field},"") - if variable string if($v{report_count}<=n,$f{your_variable},0) - if variable integer.

substitute n desired number.if need top 10 values n=10

now have used these 2 variables create pie chart.

i have written blog same not upload images here.

please check same detailed solution.

http://www.rajeshsirsikar.com/selecting-top-n-values-from-a-csv-datasource-jaspersoft-studio/

csv charts jasper-reports

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -