Commit 992c3a5b authored by Paul Asmuth's avatar Paul Asmuth
Browse files

add examples/charts-editorial/stacked_bars.fvz

parent 2a5426df
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -131,10 +131,6 @@ source code that generated it. Even more examples can be found on the

### Examples: Editorial Charts

---
#### Example: [`examples/charts-editorial/linechart_with_labels`](https://fviz.org/examples/charts-editorial/linechart_with_labels)
[![linechart_with_labels.svg](/examples/charts-editorial/linechart_with_labels.svg)](https://fviz.org/examples/charts-editorial/linechart_with_labels)

---
#### Example: [`examples/charts-editorial/chart_i18n`](https://fviz.org/examples/charts-editorial/chart_i18n)
[![chart_i18n.svg](/examples/charts-editorial/chart_i18n.svg)](https://fviz.org/examples/charts-editorial/chart_i18n)
@@ -143,6 +139,14 @@ source code that generated it. Even more examples can be found on the
#### Example: [`examples/charts-editorial/stacked_areas`](https://fviz.org/examples/charts-editorial/stacked_areas)
[![stacked_areas.svg](/examples/charts-editorial/stacked_areas.svg)](https://fviz.org/examples/charts-editorial/stacked_areas)

---
#### Example: [`examples/charts-editorial/linechart_with_labels`](https://fviz.org/examples/charts-editorial/linechart_with_labels)
[![linechart_with_labels.svg](/examples/charts-editorial/linechart_with_labels.svg)](https://fviz.org/examples/charts-editorial/linechart_with_labels)

---
#### Example: [`examples/charts-editorial/stacked_bars`](https://fviz.org/examples/charts-editorial/stacked_bars)
[![stacked_bars.svg](/examples/charts-editorial/stacked_bars.svg)](https://fviz.org/examples/charts-editorial/stacked_bars)

---
#### Example: [`examples/charts-editorial/barchart_horizontal`](https://fviz.org/examples/charts-editorial/barchart_horizontal)
[![barchart_horizontal.svg](/examples/charts-editorial/barchart_horizontal.svg)](https://fviz.org/examples/charts-editorial/barchart_horizontal)
+1 −1
Original line number Diff line number Diff line
@@ -11,4 +11,4 @@
      labels (csv "tests/testdata/gdp_per_capita_2010.csv" gdp_label)
      direction horizontal
      bar-width (1.4em)
      color 1))
      color #4c7bb0))
+9 −9
Original line number Diff line number Diff line
<svg xmlns="http://www.w3.org/2000/svg" width="960.000000" height="300.000000" viewBox="0 0 960 300">
  <rect width="960.000000" height="300.000000" fill="#ffffffff"/>
  <path fill="#4572a7ff" d="M130.775 260.03 L762.872 260.03 L762.872 280.563 L130.775 280.563 Z"/>
  <path fill="#4572a7ff" d="M130.775 229.956 L511.513 229.956 L511.513 250.489 L130.775 250.489 Z"/>
  <path fill="#4572a7ff" d="M130.775 199.881 L298.302 199.881 L298.302 220.415 L130.775 220.415 Z"/>
  <path fill="#4572a7ff" d="M130.775 169.807 L248.784 169.807 L248.784 190.341 L130.775 190.341 Z"/>
  <path fill="#4572a7ff" d="M130.775 139.733 L220.614 139.733 L220.614 160.267 L130.775 160.267 Z"/>
  <path fill="#4572a7ff" d="M130.775 109.659 L214.437 109.659 L214.437 130.193 L130.775 130.193 Z"/>
  <path fill="#4572a7ff" d="M130.775 79.5852 L207.445 79.5852 L207.445 100.119 L130.775 100.119 Z"/>
  <path fill="#4572a7ff" d="M130.775 49.5111 L193.835 49.5111 L193.835 70.0444 L130.775 70.0444 Z"/>
  <path fill="#4572a7ff" d="M130.775 19.437 L191.697 19.437 L191.697 39.9704 L130.775 39.9704 Z"/>
  <path fill="#4c7bb0ff" d="M130.775 260.03 L762.872 260.03 L762.872 280.563 L130.775 280.563 Z"/>
  <path fill="#4c7bb0ff" d="M130.775 229.956 L511.513 229.956 L511.513 250.489 L130.775 250.489 Z"/>
  <path fill="#4c7bb0ff" d="M130.775 199.881 L298.302 199.881 L298.302 220.415 L130.775 220.415 Z"/>
  <path fill="#4c7bb0ff" d="M130.775 169.807 L248.784 169.807 L248.784 190.341 L130.775 190.341 Z"/>
  <path fill="#4c7bb0ff" d="M130.775 139.733 L220.614 139.733 L220.614 160.267 L130.775 160.267 Z"/>
  <path fill="#4c7bb0ff" d="M130.775 109.659 L214.437 109.659 L214.437 130.193 L130.775 130.193 Z"/>
  <path fill="#4c7bb0ff" d="M130.775 79.5852 L207.445 79.5852 L207.445 100.119 L130.775 100.119 Z"/>
  <path fill="#4c7bb0ff" d="M130.775 49.5111 L193.835 49.5111 L193.835 70.0444 L130.775 70.0444 Z"/>
  <path fill="#4c7bb0ff" d="M130.775 19.437 L191.697 19.437 L191.697 39.9704 L130.775 39.9704 Z"/>
  <text x="771.672267" y="275.296296" fill="#000000ff" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">$18,624bln</text>
  <text x="520.313141" y="245.222222" fill="#000000ff" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">$11,218bln</text>
  <text x="307.102497" y="215.148148" fill="#000000ff" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">$11,218bln</text>
+33 −0
Original line number Diff line number Diff line
(set height 250px)
(set width 960px)

(plot
    axes (bottom)
    limit-y (0 70)
    limit-x (-0.05 2.05)
    axis-x-label-placement (linear-interval 0.2 0 2.1)
    bars (
      data-x (csv "tests/testdata/stacked.csv" x)
      data-y (csv "tests/testdata/stacked.csv" y4)
      bar-width (1em)
      color #9fc3f5)
    bars (
      data-x (csv "tests/testdata/stacked.csv" x)
      data-y (csv "tests/testdata/stacked.csv" y3)
      bar-width (1em)
      color #88ade0)
    bars (
      data-x (csv "tests/testdata/stacked.csv" x)
      data-y (csv "tests/testdata/stacked.csv" y2)
      bar-width (1em)
      color #6393c9)
    bars (
      data-x (csv "tests/testdata/stacked.csv" x)
      data-y (csv "tests/testdata/stacked.csv" y1)
      bar-width (1em)
      color #4c7bb0)
    legend-overlay (
      item (label "Variable D" color #9fc3f5)
      item (label "Variable C" color #88ade0)
      item (label "Variable B" color #6393c9)
      item (label "Variable A" color #4c7bb0)))
+218 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading