diff options
author | Michal Čihař <michal@cihar.com> | 2016-10-18 11:03:52 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-10-18 11:26:33 +0300 |
commit | fffbcd1969faa3e2d98e03ce24b5ed4432ce3024 (patch) | |
tree | 08368dbeb5af0756d29bd4623922be42b1250ade /doc/charts.rst | |
parent | 21beba716a10ccdfb552eaeecca1496f993f8d43 (diff) |
Avoid using non breakable space in code samples
- 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ř <michal@cihar.com>
Diffstat (limited to 'doc/charts.rst')
-rw-r--r-- | doc/charts.rst | 42 |
1 files changed, 21 insertions, 21 deletions
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: |