get_result_chart

The get_result_chart function is used to get a chart.

Copied!
svc=report/get_result_chart&params={"attachmentIndex":<uint>,
				    				"action":<uint>,
				    				"width":<uint>,
				    				"height":<uint>,
				    				"autoScaleY":<uint>,
				    				"pixelFrom":<int>,
				    				"pixelTo":<int>,
				    				"flags":<uint>}

Parameters

Name Description
attachmentIndex Attachment index.
action Actions:
  • 0 — set flags and render;
  • 1 — zooming;
  • 2 — automatic scale of the Y axis.
width Width.
height Height.
autoScaleY Automatic scale of the Y axis:
  • 0 — disable;
  • 1 — enable.
pixelFrom Zoom: from the current pixel.
pixelTo Zoom: to the current pixel.
flags Chart flags.

Chart flags:

Flag Description
0x01 Place the header above the chart.
0x02 Place the header under the chart.
0x04 Don’t show the header.
0x40 Set the X-axis captions direction from up to down.
0x80 Set the X-axis captions direction from down to up.
0x100 Place the chart legend above the chart.
0x200 Place the chart legend under the chart.
0x400 Place the chart legend to the left of the chart.
0x800 Place the chart legend to the right of the chart.
0x1000 Always show the legend, even in case of one dataset.

Returned result

The returned result contains a PNG image.

If you find a mistake in the text, please select it and press Ctrl+Enter.