{{tag>Manuals How_To Charts Query}} [<10>] ====== How to use charts in reports ====== You can either use “chart report elements” or use images of online charts. For the description of the chart report elements please refer to the documentation of [[docs:2000_concepts:0900_prod_feats:0200_working_with_docs_reports|reports]]. To use images of online charts in your reports or documents do the following: - Define a query to display your chart (see [[docs:2500_config_apps:1100_add_edit_queries:0200_display_results:0400_chart_presentation|Chart presentation of query results]] - When defining chart properties of the query specify a unique id of the chart (can be any string) - Define an attribute of the Picture type in some object to store the image of the chart - Create a document template that would use this attribute in a tag expression, for example <> - Write a process that will save the image of the chart in this attribute using the ''[[a_f:a:save_screen|SAVE SCREEN]]'' action and display the document template, for example:SAVE SCREEN 'my chart id' TO MyObject.ChartImage DISPLAY DOCUMENT 'My template using chart image'