Skip to content

Commit

Permalink
DOC: update all docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sglyon committed Jan 20, 2018
1 parent 684f4cc commit 2ed343f
Show file tree
Hide file tree
Showing 21 changed files with 609 additions and 212 deletions.
7 changes: 5 additions & 2 deletions deps/make_schema_docs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,11 @@ function doc_html!(buf::IO, s::Schema)
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script>
window.jQuery = window.\$;
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>""")

Expand Down
13 changes: 4 additions & 9 deletions docs/build_example_docs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@ This file takes the code from each file in the examples folder and
creates a markdown file of the same name as the julia file then
puts each example from the julia file into a code block and adds
a short html div below with the interactive output.
Notes:
* Assumes that the plot to be placed in html file is named `p`
*
=#
using PlotlyJS
using Distributions, Quandl, RDatasets # used in examples

doc_style = Style(Style(layout=Layout(margin=attr(t=60, b=60, l=50, r=50))))
doc_style = Style(layout=Layout(margin=attr(t=60, b=60, l=50, r=50)))

# Read all file names in
this_dir = dirname(@__FILE__)
Expand All @@ -38,7 +33,7 @@ use_style!(doc_style)
# Walk through each example in a file and get the markdown from `single_example`
function single_file(filename::String)
# Open a file to write to
outfile = open(joinpath(this_dir, "examples", filename[1:end-3]*".md"), "w")
open(joinpath(this_dir, "examples", filename[1:end-3]*".md"), "w") do outfile

# Read lines from a files
fulltext = open(readstring, joinpath(this_dir, "..", "examples", filename), "r")
Expand Down Expand Up @@ -70,9 +65,9 @@ function single_file(filename::String)
println(outfile, "```julia\n$func_block\n$(fun_name)()\n```\n\n\n$html_block\n\n")
l = end_l
end
close(outfile)
end # do outfile

return nothing
end

map(single_file, all_julia_files)
main() = map(single_file, all_julia_files)
28 changes: 14 additions & 14 deletions docs/examples/3d.md

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/examples/area.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ area1()
```


<div id="04571644-da2d-41e5-b2b5-c8dad0ed1cf6" class="plotly-graph-div"></div>
<div id="a122cf77-d769-43c6-853c-25629ec164f9" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('04571644-da2d-41e5-b2b5-c8dad0ed1cf6', [{"y":[0,2,3,5],"type":"scatter","fill":"tozeroy","x":[1,2,3,4]},{"y":[3,5,1,7],"type":"scatter","fill":"tonexty","x":[1,2,3,4]}],
Plotly.newPlot('a122cf77-d769-43c6-853c-25629ec164f9', [{"y":[0,2,3,5],"type":"scatter","fill":"tozeroy","x":[1,2,3,4]},{"y":[3,5,1,7],"type":"scatter","fill":"tonexty","x":[1,2,3,4]}],
{"margin":{"l":50,"b":60,"r":50,"t":60}}, {showLink: false});

</script>
Expand Down Expand Up @@ -42,12 +42,12 @@ area2()
```


<div id="894e0454-cad0-4732-a909-252eaf8ba257" class="plotly-graph-div"></div>
<div id="35b225a5-4700-4cae-a0f4-96869cfc0c3e" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('894e0454-cad0-4732-a909-252eaf8ba257', [{"y":[2,1,4],"type":"scatter","fill":"tozeroy","x":[1,2,3]},{"y":[3,2,6],"type":"scatter","fill":"tonexty","x":[1,2,3]},{"y":[6,2,8],"type":"scatter","fill":"tonexty","x":[1,2,3]}],
Plotly.newPlot('35b225a5-4700-4cae-a0f4-96869cfc0c3e', [{"y":[2,1,4],"type":"scatter","fill":"tozeroy","x":[1,2,3]},{"y":[3,2,6],"type":"scatter","fill":"tonexty","x":[1,2,3]},{"y":[6,2,8],"type":"scatter","fill":"tonexty","x":[1,2,3]}],
{"margin":{"l":50,"b":60,"r":50,"t":60},"title":"stacked and filled line chart"}, {showLink: false});

</script>
Expand All @@ -65,12 +65,12 @@ area3()
```


<div id="95d6a35a-97c5-4657-8e19-6f551e14f0d0" class="plotly-graph-div"></div>
<div id="c858afa7-b75b-44c9-9726-538af270b2c1" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('95d6a35a-97c5-4657-8e19-6f551e14f0d0', [{"mode":"none","y":[0,2,3,5],"type":"scatter","fill":"tozeroy","x":[1,2,3,4]},{"mode":"none","y":[3,5,1,7],"type":"scatter","fill":"tonexty","x":[1,2,3,4]}],
Plotly.newPlot('c858afa7-b75b-44c9-9726-538af270b2c1', [{"mode":"none","y":[0,2,3,5],"type":"scatter","fill":"tozeroy","x":[1,2,3,4]},{"mode":"none","y":[3,5,1,7],"type":"scatter","fill":"tonexty","x":[1,2,3,4]}],
{"margin":{"l":50,"b":60,"r":50,"t":60},"title":"Overlaid Chart Without Boundary Lines"}, {showLink: false});

</script>
Expand Down
44 changes: 22 additions & 22 deletions docs/examples/bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ bar1()
```


<div id="004b635a-3282-451d-9b73-15b09dee98cf" class="plotly-graph-div"></div>
<div id="f39e538e-3f0a-4235-bc74-f0329e9ec6d6" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('004b635a-3282-451d-9b73-15b09dee98cf', [{"y":[20,14,23],"type":"bar","x":["giraffes","orangutans","monkeys"]}],
Plotly.newPlot('f39e538e-3f0a-4235-bc74-f0329e9ec6d6', [{"y":[20,14,23],"type":"bar","x":["giraffes","orangutans","monkeys"]}],
{"margin":{"l":50,"b":60,"r":50,"t":60}}, {showLink: false});

</script>
Expand All @@ -36,12 +36,12 @@ bar2()
```


<div id="f74a5d43-2a3c-48df-a5cd-eededbc79eae" class="plotly-graph-div"></div>
<div id="f2e3537a-b966-4fbc-a086-7cc71ca9b3fe" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('f74a5d43-2a3c-48df-a5cd-eededbc79eae', [{"y":[20,14,23],"type":"bar","name":"SF Zoo","x":["giraffes","orangutans","monkeys"]},{"y":[12,18,29],"type":"bar","name":"LA Zoo","x":["giraffes","orangutans","monkeys"]}],
Plotly.newPlot('f2e3537a-b966-4fbc-a086-7cc71ca9b3fe', [{"y":[20,14,23],"type":"bar","name":"SF Zoo","x":["giraffes","orangutans","monkeys"]},{"y":[12,18,29],"type":"bar","name":"LA Zoo","x":["giraffes","orangutans","monkeys"]}],
{"barmode":"group","margin":{"l":50,"b":60,"r":50,"t":60}}, {showLink: false});

</script>
Expand All @@ -64,12 +64,12 @@ bar3()
```


<div id="b8f4e1fb-3dbd-40e3-9c3c-2146a122f080" class="plotly-graph-div"></div>
<div id="f7fce506-f0bb-4d51-83fd-6bd7c5238955" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('b8f4e1fb-3dbd-40e3-9c3c-2146a122f080', [{"y":[20,14,23],"type":"bar","name":"SF Zoo","x":["giraffes","orangutans","monkeys"]},{"y":[12,18,29],"type":"bar","name":"LA Zoo","x":["giraffes","orangutans","monkeys"]}],
Plotly.newPlot('f7fce506-f0bb-4d51-83fd-6bd7c5238955', [{"y":[20,14,23],"type":"bar","name":"SF Zoo","x":["giraffes","orangutans","monkeys"]},{"y":[12,18,29],"type":"bar","name":"LA Zoo","x":["giraffes","orangutans","monkeys"]}],
{"barmode":"stack","margin":{"l":50,"b":60,"r":50,"t":60}}, {showLink: false});

</script>
Expand All @@ -92,12 +92,12 @@ bar4()
```


<div id="ecae60f4-9686-4cfc-b3c3-4f2bc8589051" class="plotly-graph-div"></div>
<div id="c962fd9c-ab86-431d-8085-02751fd86e4f" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('ecae60f4-9686-4cfc-b3c3-4f2bc8589051', [{"marker":{"color":"rgb(158, 202, 225)","opacity":0.6},"line":{"color":"rgb(8, 48, 107)","width":1.5},"y":[20,14,23],"type":"bar","text":["23% market share","24% market share","18% market share"],"x":["Product A","Product B","Product C"]}],
Plotly.newPlot('c962fd9c-ab86-431d-8085-02751fd86e4f', [{"marker":{"color":"rgb(158, 202, 225)","opacity":0.6},"line":{"color":"rgb(8, 48, 107)","width":1.5},"y":[20,14,23],"type":"bar","text":["23% market share","22% market share","19% market share"],"x":["Product A","Product B","Product C"]}],
{"margin":{"l":50,"b":60,"r":50,"t":60},"title":"January 2013 Sales Report"}, {showLink: false});

</script>
Expand Down Expand Up @@ -135,12 +135,12 @@ bar5()
```


<div id="12357c74-f032-4e9e-b92e-f29af2e36c84" class="plotly-graph-div"></div>
<div id="b0c5c921-344c-417c-9275-14d531fee96e" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('12357c74-f032-4e9e-b92e-f29af2e36c84', [{"marker":{"color":"rgb(158, 202, 225)","line":{"color":"rgb(8, 48, 107)","width":1.5},"opacity":0.6},"y":[20,14,23],"type":"bar","text":["20% market share","16% market share","18% market share"],"x":["Product A","Product B","Product C"]}],
Plotly.newPlot('b0c5c921-344c-417c-9275-14d531fee96e', [{"marker":{"color":"rgb(158, 202, 225)","line":{"color":"rgb(8, 48, 107)","width":1.5},"opacity":0.6},"y":[20,14,23],"type":"bar","text":["29% market share","22% market share","26% market share"],"x":["Product A","Product B","Product C"]}],
{"annotations":[{"yanchor":"bottom","xanchor":"center","y":20,"showarrow":false,"text":20,"x":"Product A"},{"yanchor":"bottom","xanchor":"center","y":14,"showarrow":false,"text":14,"x":"Product B"},{"yanchor":"bottom","xanchor":"center","y":23,"showarrow":false,"text":23,"x":"Product C"}],"margin":{"l":50,"b":60,"r":50,"t":60},"title":"January 2013 Sales Report"}, {showLink: false});

</script>
Expand Down Expand Up @@ -170,12 +170,12 @@ bar6()
```


<div id="7fbc2086-7cc7-4ca9-8c04-12d6f7fcdaff" class="plotly-graph-div"></div>
<div id="3a5a388c-0e18-4814-a5b1-a6252e08f921" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('7fbc2086-7cc7-4ca9-8c04-12d6f7fcdaff', [{"marker":{"color":"rgb(49, 130, 189)"},"y":[20,14,25,16,18,22,19,15,12,16,14,17],"type":"bar","name":"Primary Product","opacity":0.7,"x":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},{"marker":{"color":"rgb(204, 204, 204)","opacity":0.5},"y":[19,14,22,14,16,19,15,14,10,12,12,16],"type":"bar","name":"Secondary Product","x":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}],
Plotly.newPlot('3a5a388c-0e18-4814-a5b1-a6252e08f921', [{"marker":{"color":"rgb(49, 130, 189)"},"y":[20,14,25,16,18,22,19,15,12,16,14,17],"type":"bar","name":"Primary Product","opacity":0.7,"x":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},{"marker":{"color":"rgb(204, 204, 204)","opacity":0.5},"y":[19,14,22,14,16,19,15,14,10,12,12,16],"type":"bar","name":"Secondary Product","x":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}],
{"xaxis":{"tickangle":-45},"barmode":"group","margin":{"l":50,"b":60,"r":50,"t":60},"title":"2013 Sales Report"}, {showLink: false});

</script>
Expand All @@ -198,12 +198,12 @@ bar7()
```


<div id="bd51c3fd-6bd7-4523-b6a4-87ee627a49d8" class="plotly-graph-div"></div>
<div id="137b180b-adc0-4d85-bcf3-7302d9b0f79a" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('bd51c3fd-6bd7-4523-b6a4-87ee627a49d8', [{"marker":{"color":["rgba(204, 204, 204, 1)","rgba(222, 45, 38, 0.8)","rgba(204, 204, 204, 1)","rgba(204, 204, 204, 1)","rgba(204, 204, 204, 1)"]},"y":[20,14,23,25,22],"type":"bar","x":["Feature A","Feature B","Feature C","Feature D","Feature E"]}],
Plotly.newPlot('137b180b-adc0-4d85-bcf3-7302d9b0f79a', [{"marker":{"color":["rgba(204, 204, 204, 1)","rgba(222, 45, 38, 0.8)","rgba(204, 204, 204, 1)","rgba(204, 204, 204, 1)","rgba(204, 204, 204, 1)"]},"y":[20,14,23,25,22],"type":"bar","x":["Feature A","Feature B","Feature C","Feature D","Feature E"]}],
{"margin":{"l":50,"b":60,"r":50,"t":60},"title":"Least Used Feature"}, {showLink: false});

</script>
Expand All @@ -230,12 +230,12 @@ bar8()
```


<div id="03810cb6-2bc9-460f-b4c6-4f16c962c261" class="plotly-graph-div"></div>
<div id="878ae698-34fb-4aea-ac00-eae967612b97" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('03810cb6-2bc9-460f-b4c6-4f16c962c261', [{"marker":{"color":"rgb(142, 124, 195)"},"y":[8.0,8.0,12.0,12.0,13.0,20.0],"type":"bar","text":["4.17 below the mean","4.17 below the mean","0.17 below the mean","0.17 below the mean","0.83 above the mean","7.83 above the mean"],"x":["Liam","Sophie","Jacob","Mia","William","Olivia"]}],
Plotly.newPlot('878ae698-34fb-4aea-ac00-eae967612b97', [{"marker":{"color":"rgb(142, 124, 195)"},"y":[8.0,8.0,12.0,12.0,13.0,20.0],"type":"bar","text":["4.17 below the mean","4.17 below the mean","0.17 below the mean","0.17 below the mean","0.83 above the mean","7.83 above the mean"],"x":["Liam","Sophie","Jacob","Mia","William","Olivia"]}],
{"showlegend":false,"xaxis":{"tickangle":-45},"font":{"family":"Raleway, sans-serif"},"bargap":0.05,"margin":{"l":50,"b":60,"r":50,"t":60},"title":"Number of Graphs Made this Week","yaxis":{"zeroline":false,"gridwidth":2}}, {showLink: false});

</script>
Expand Down Expand Up @@ -276,12 +276,12 @@ bar9()
```


<div id="331d8085-0275-4fd8-91ba-1850ef3cacbe" class="plotly-graph-div"></div>
<div id="58cfc2a9-9872-42d0-be37-cb0175c94ea8" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('331d8085-0275-4fd8-91ba-1850ef3cacbe', [{"marker":{"color":"rgb(55, 83, 109)"},"y":[219,146,112,127,124,180,236,207,236,263,350,430,474,526,488,537,500,439],"type":"bar","name":"Rest of world","x":[1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012]},{"marker":{"color":"rgb(26, 118, 255)"},"y":[16,13,10,11,28,37,43,55,56,88,105,156,270,299,340,403,549,499],"type":"bar","name":"China","x":[1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012]}],
Plotly.newPlot('58cfc2a9-9872-42d0-be37-cb0175c94ea8', [{"marker":{"color":"rgb(55, 83, 109)"},"y":[219,146,112,127,124,180,236,207,236,263,350,430,474,526,488,537,500,439],"type":"bar","name":"Rest of world","x":[1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012]},{"marker":{"color":"rgb(26, 118, 255)"},"y":[16,13,10,11,28,37,43,55,56,88,105,156,270,299,340,403,549,499],"type":"bar","name":"China","x":[1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012]}],
{"xaxis":{"tickfont":{"color":"rgb(107, 107, 107)","size":14}},"bargap":0.15,"legend":{"bordercolor":"rgba(255, 255, 255, 0)","y":1.0,"bgcolor":"rgba(255, 255, 255, 0)","x":0},"barmode":"group","margin":{"l":50,"b":60,"r":50,"t":60},"title":"US Export of Plastic Scrap","yaxis":{"titlefont":{"color":"rgb(107, 107, 107)","size":16},"tickfont":{"color":"rgb(107, 107, 107)","size":14},"title":"USD (millions)"},"bargroupgap":0.1}, {showLink: false});

</script>
Expand Down Expand Up @@ -348,12 +348,12 @@ bar10()
```


<div id="fd55c6a1-e825-40c5-9060-8fa8b0c5f6da" class="plotly-graph-div"></div>
<div id="710fe698-e881-4c9b-b81c-c4b6a936cd88" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('fd55c6a1-e825-40c5-9060-8fa8b0c5f6da', [{"marker":{"color":"rgba(1, 1, 1, 0.0)"},"y":[0,430,0,570,370,370,0],"type":"bar","x":["Product Revenue","Services Revenue","Total Revenue","Fixed Costs","Variable Costs","Total Costs","Total"]},{"marker":{"color":"rgba(55, 128, 191, 0.7)"},"line":{"color":"rgba(55, 128, 191, 1.0)","width":2},"y":[430,260,690,0,0,0,0],"type":"bar","x":["Product Revenue","Services Revenue","Total Revenue","Fixed Costs","Variable Costs","Total Costs","Total"]},{"marker":{"color":"rgba(219, 64, 82, 0.7)","line":{"color":"rgba(219, 64, 82, 1.0)","width":2}},"y":[0,0,0,120,200,320,0],"type":"bar","x":["Product Revenue","Services Revenue","Total Revenue","Fixed Costs","Variable Costs","Total Costs","Total"]},{"marker":{"color":"rgba(50, 171, 96, 0.7)","line":{"color":"rgba(50, 171, 96, 1.0)","width":2}},"y":[0,0,0,0,0,0,370],"type":"bar","x":["Product Revenue","Services Revenue","Total Revenue","Fixed Costs","Variable Costs","Total Costs","Total"]}],
Plotly.newPlot('710fe698-e881-4c9b-b81c-c4b6a936cd88', [{"marker":{"color":"rgba(1, 1, 1, 0.0)"},"y":[0,430,0,570,370,370,0],"type":"bar","x":["Product Revenue","Services Revenue","Total Revenue","Fixed Costs","Variable Costs","Total Costs","Total"]},{"marker":{"color":"rgba(55, 128, 191, 0.7)"},"line":{"color":"rgba(55, 128, 191, 1.0)","width":2},"y":[430,260,690,0,0,0,0],"type":"bar","x":["Product Revenue","Services Revenue","Total Revenue","Fixed Costs","Variable Costs","Total Costs","Total"]},{"marker":{"color":"rgba(219, 64, 82, 0.7)","line":{"color":"rgba(219, 64, 82, 1.0)","width":2}},"y":[0,0,0,120,200,320,0],"type":"bar","x":["Product Revenue","Services Revenue","Total Revenue","Fixed Costs","Variable Costs","Total Costs","Total"]},{"marker":{"color":"rgba(50, 171, 96, 0.7)","line":{"color":"rgba(50, 171, 96, 1.0)","width":2}},"y":[0,0,0,0,0,0,370],"type":"bar","x":["Product Revenue","Services Revenue","Total Revenue","Fixed Costs","Variable Costs","Total Costs","Total"]}],
{"showlegend":false,"xaxis":{"showtickabels":true},"paper_bgcolor":"rgba(245, 246, 249, 1)","annotations":[{"y":400,"font":{"family":"Arial","font":{"color":"rgba(245, 246, 249, 1)","size":14}},"showarrow":false,"text":"$430K","x":"Product Revenue"},{"y":660,"font":{"family":"Arial","font":{"color":"rgba(245, 246, 249, 1)","size":14}},"showarrow":false,"text":"$260K","x":"Services Revenue"},{"y":660,"font":{"family":"Arial","font":{"color":"rgba(245, 246, 249, 1)","size":14}},"showarrow":false,"text":"$690K","x":"Total Revenue"},{"y":590,"font":{"family":"Arial","font":{"color":"rgba(245, 246, 249, 1)","size":14}},"showarrow":false,"text":"$-120K","x":"Fixed Costs"},{"y":400,"font":{"family":"Arial","font":{"color":"rgba(245, 246, 249, 1)","size":14}},"showarrow":false,"text":"$-200K","x":"Variable Costs"},{"y":400,"font":{"family":"Arial","font":{"color":"rgba(245, 246, 249, 1)","size":14}},"showarrow":false,"text":"$-320K","x":"Total Costs"},{"y":340,"font":{"family":"Arial","font":{"color":"rgba(245, 246, 249, 1)","size":14}},"showarrow":false,"text":"$370K","x":"Total"}],"height":600,"margin":{"l":50,"b":60,"r":50,"t":60},"title":"Annual Profit 2015","plot_bgcolor":"rgba(245, 246, 249, 1)","barmode":"stack","width":600}, {showLink: false});

</script>
Expand Down Expand Up @@ -385,12 +385,12 @@ bar11()
```


<div id="b17c9275-14d5-41fe-969f-10013a5a077d" class="plotly-graph-div"></div>
<div id="84bfed8d-4cee-43a5-b76d-cbd4d764f403" class="plotly-graph-div"></div>

<script>
window.PLOTLYENV=window.PLOTLYENV || {};
window.PLOTLYENV.BASE_URL="https://plot.ly";
Plotly.newPlot('b17c9275-14d5-41fe-969f-10013a5a077d', [{"y":[1,4,9,16],"type":"bar","name":"Trace1","x":[1,2,3,4]},{"y":[6.0,-8.0,-4.5,8.0],"type":"bar","name":"Trace2","x":[1,2,3,4]},{"y":[-15.0,-3.0,4.5,-8.0],"type":"bar","name":"Trace3","x":[1,2,3,4]},{"y":[-1,3,-3,-4],"type":"bar","name":"Trace4","x":[1,2,3,4]}],
Plotly.newPlot('84bfed8d-4cee-43a5-b76d-cbd4d764f403', [{"y":[1,4,9,16],"type":"bar","name":"Trace1","x":[1,2,3,4]},{"y":[6.0,-8.0,-4.5,8.0],"type":"bar","name":"Trace2","x":[1,2,3,4]},{"y":[-15.0,-3.0,4.5,-8.0],"type":"bar","name":"Trace3","x":[1,2,3,4]},{"y":[-1,3,-3,-4],"type":"bar","name":"Trace4","x":[1,2,3,4]}],
{"xaxis":{"title":"X axis"},"barmode":"relative","margin":{"l":50,"b":60,"r":50,"t":60},"yaxis":{"title":"Y axis"},"title":"Relative Barmode"}, {showLink: false});

</script>
Expand Down
Loading

0 comments on commit 2ed343f

Please sign in to comment.