Skip to content

Commit

Permalink
update example gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
asmuth committed Feb 2, 2020
1 parent e2b07b1 commit 3a771b0
Show file tree
Hide file tree
Showing 37 changed files with 6,019 additions and 5,996 deletions.
4 changes: 3 additions & 1 deletion doc/example.tpl.html
@@ -1,7 +1,9 @@
<h1>Example: <code>{{example_url}}</code></h1>

<h4>Output File:</h4>
<a href="/examples/{{example_url}}.svg" target="_blank"><img src="/examples/{{example_url}}.svg" /></a>
<p style="text-align: center;">
<img style="max-width: 80%;" src="/examples/{{example_url}}.svg" />
</p>

<h4>Source File:</h4>
<pre><code>{{example_src}}</code></pre>
Expand Down
4 changes: 2 additions & 2 deletions doc/examples/charts-basic/barchart_groups.clp
@@ -1,5 +1,5 @@
(width 2048px)
(height 512px)
(width 1600px)
(height 900px)
(dpi 240)

(default scale-x (categorical (A B C D E F)))
Expand Down
164 changes: 82 additions & 82 deletions doc/examples/charts-basic/barchart_groups.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions doc/examples/charts-basic/custom_font.clp
@@ -1,5 +1,5 @@
(width 2048px)
(height 512px)
(width 1600px)
(height 800px)
(dpi 240)

(default font "Comic Sans MS")
Expand All @@ -10,8 +10,15 @@
position (bottom left)
label-format-y (fixed 2)
label-format-x (datetime "%H:%M:%S")
label-placement-x (linear 3600)
label-placement-y (linear 20))

(draw/rectangle
fill #f2f2f2)

(plot/grid
color #fff)

(plot/lines
data-x (csv "test/testdata/measurement.csv" time)
data-y (csv "test/testdata/measurement.csv" value2))
Expand Down
315 changes: 151 additions & 164 deletions doc/examples/charts-basic/custom_font.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions doc/examples/charts-basic/scatterplot.clp
@@ -1,5 +1,5 @@
(width 2048px)
(height 1024px)
(width 1600px)
(height 900px)
(dpi 240)

(default limit-x (0 400))
Expand Down
2,068 changes: 1,034 additions & 1,034 deletions doc/examples/charts-basic/scatterplot.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc/examples/charts-editorial/barchart_horizontal.clp
@@ -1,4 +1,4 @@
(width 2048px)
(width 1600px)
(height 800px)
(dpi 240)

Expand Down
40 changes: 20 additions & 20 deletions doc/examples/charts-editorial/barchart_horizontal.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions doc/examples/charts-editorial/chart_i18n.clp
@@ -1,15 +1,15 @@
(width 2048px)
(height 700px)
(width 1600px)
(height 800px)
(dpi 240)

(default limit-y (-15 30))
(default limit-y (-15 35))
(default limit-x (0.5 12.5))

(plot/axes
position (bottom left)
label-placement-x (linear-alignat 1 1)
label-format-x (custom "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec")
label-placement-y (linear-interval 5 -10 30)
label-placement-y (linear-interval 5 -10 35)
title-left "Temperature (°C)"
title-rotate-left -90)

Expand Down

0 comments on commit 3a771b0

Please sign in to comment.