From fffbcd1969faa3e2d98e03ce24b5ed4432ce3024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Oct 2016 10:03:52 +0200 Subject: Avoid using non breakable space in code samples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - It's not possible to copy and paste it then - It's not possible to use syntax highlighting on these Signed-off-by: Michal Čihař --- doc/charts.rst | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'doc/charts.rst') diff --git a/doc/charts.rst b/doc/charts.rst index a64281c3a5..4117f9c682 100644 --- a/doc/charts.rst +++ b/doc/charts.rst @@ -34,13 +34,13 @@ Pie chart Query results for a simple pie chart can be generated with: -.. code-block:: mysql +.. code-block:: sql - SELECT 'Food' AS 'expense',  -    1250 AS 'amount' UNION - SELECT 'Accommodation', 500 UNION - SELECT 'Travel', 720 UNION - SELECT 'Misc', 220 + SELECT 'Food' AS 'expense', + 1250 AS 'amount' UNION + SELECT 'Accommodation', 500 UNION + SELECT 'Travel', 720 UNION + SELECT 'Misc', 220 And the result of this query is: @@ -69,14 +69,14 @@ Query results for a simple bar or column chart can be generated with: .. code-block:: sql - SELECT  -    'ACADEMY DINOSAUR' AS 'title', -    0.99 AS 'rental_rate', -    20.99 AS 'replacement_cost' UNION - SELECT 'ACE GOLDFINGER', 4.99, 12.99 UNION - SELECT 'ADAPTATION HOLES', 2.99, 18.99 UNION - SELECT 'AFFAIR PREJUDICE', 2.99, 26.99 UNION - SELECT 'AFRICAN EGG', 2.99, 22.99 + SELECT + 'ACADEMY DINOSAUR' AS 'title', + 0.99 AS 'rental_rate', + 20.99 AS 'replacement_cost' UNION + SELECT 'ACE GOLDFINGER', 4.99, 12.99 UNION + SELECT 'ADAPTATION HOLES', 2.99, 18.99 UNION + SELECT 'AFFAIR PREJUDICE', 2.99, 26.99 UNION + SELECT 'AFRICAN EGG', 2.99, 22.99 And the result of this query is: @@ -116,13 +116,13 @@ Query results for a simple line, spline or timeline chart can be generated with: .. code-block:: sql - SELECT  -    DATE('2006-01-08') AS 'date',  -    2056 AS 'revenue', -    1378 AS 'cost' UNION - SELECT DATE('2006-01-09'), 1898, 2301 UNION - SELECT DATE('2006-01-15'), 1560, 600 UNION - SELECT DATE('2006-01-17'), 3457, 1565 + SELECT + DATE('2006-01-08') AS 'date', + 2056 AS 'revenue', + 1378 AS 'cost' UNION + SELECT DATE('2006-01-09'), 1898, 2301 UNION + SELECT DATE('2006-01-15'), 1560, 600 UNION + SELECT DATE('2006-01-17'), 3457, 1565 And the result of this query is: -- cgit v1.2.3