summaryrefslogtreecommitdiffstats
path: root/docs/tutorial.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorial.txt')
-rw-r--r--docs/tutorial.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/tutorial.txt b/docs/tutorial.txt
index 9ca127d..edb4c78 100644
--- a/docs/tutorial.txt
+++ b/docs/tutorial.txt
@@ -895,6 +895,22 @@ generated bitmap`__.
__ img/tutorial_example_29.html
+Direct output
+=============
+
+By default a graph is rendered to a file, because you normally want to cache
+generated images. ezcGraph also provides a method for direct output of
+generated charts, but use this with caution.
+
+The ezcGraph::renderToOutput() method sends the correct Content-Type header
+for the selected output driver and writes the charts image data directly to
+the output. Pay attention not to output anything before using this method.
+
+.. include:: tutorial_example_30.php
+ :literal:
+
+This example renders the first graph of this tutorial.
+
More Information
================
OpenPOWER on IntegriCloud