hello how can i display two chart or more in script report
i can only show 1 chart as we can only return 1 chart at the py .
return columns, data, None, chart, report_summary
and the other chart
i want both of chart in the same script report
hello how can i display two chart or more in script report
i can only show 1 chart as we can only return 1 chart at the py .
return columns, data, None, chart, report_summary
Hi,
Please define second chart as follows and return chart1 also:
chart1 = {
'title':"Script Chart Tutorial : Days since the user's database record was created",
'data':{
'labels':[str(dic.pay_period) for dic in data],
'datasets':[{'values':[(dic.number) for dic in data]}]
},
'type':'line',
'height':300,
'colors':['#F16A61'],
'lineOptions':{'hideDots':0, 'dotSize':6, 'regionFill':1}
}
Thanks,
Divyesh Mangroliya
i define second chart1 and i try
chart = get_particip_branch(code)
chart1 = get_chart_data(code)
…
return columns, data, None, chart, chart1, report_summary
but not work , if i do only one , chart or chart1 work but i need the both work together