Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48fae90

Browse files
author
mahdis-z
committed
Some features were added
1 parent 0153473 commit 48fae90

4 files changed

+39
-9
lines changed

_posts/plotly_js/basic/waterfall/2015-04-09-basic-bar.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,14 @@
4646
-20,
4747
0
4848
],
49-
base: 1000,
5049
connector: {
5150
line: {
52-
color: "rgb(63, 63, 63)"
51+
color: "rgb(63, 63, 63)"
5352
}
5453
},
5554
}
5655
];
57-
var layout= {
56+
layout = {
5857
title: {
5958
text: "Profit and loss statement 2018"
6059
},
@@ -64,10 +63,7 @@
6463
yaxis: {
6564
type: "linear"
6665
},
67-
height: 800,
68-
width: 800,
6966
autosize: true,
7067
showlegend: true
7168
};
72-
73-
Plotly.newPlot(gd, data, layout)
69+
Plotly.newPlot(gd, data, layout);

_posts/plotly_js/basic/waterfall/2015-04-09-horizontal-waterfall-chart.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@
8686
type: "linear"
8787
},
8888
margin: { l: 150 },
89-
height: 800,
90-
width: 800,
9189
showlegend: true
9290
}
9391
Plotly.newPlot(gd, data, layout);

_posts/plotly_js/basic/waterfall/2015-04-09-multi_category-waterfall-charts.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
}
3232
];
3333
layout = {
34+
waterfallgroupgap : {type: 1},
3435
xaxis: {
3536
title: "MULTI-CATEGORY",
3637
tickfont: {size: 16},
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Style Waterfall Chart
3+
plot_url: https://codepen.io/plotly/embed/GLXVvM/?height=500&theme-id=15263&default-tab=result
4+
language: plotly_js
5+
suite: waterfall
6+
order: 4
7+
sitemap: false
8+
arrangement: horizontal
9+
---
10+
var gd = document.getElementById('graphDiv');
11+
var data = [
12+
{
13+
type: "waterfall",
14+
x: [
15+
["2016", "2017", "2017", "2017", "2017", "2018", "2018", "2018", "2018"],
16+
["initial", "q1", "q2", "q3", "total", "q1", "q2", "q3", "total" ]
17+
],
18+
measure: ["absolute", "relative", "relative", "relative", "total", "relative", "relative", "relative", "total"],
19+
y: [10, 20, 30, -10, null, 10, 20, -40, null],
20+
base: 300,
21+
decreasing: { marker: { color: "Maroon" , line:{color : "red", width :2}}},
22+
increasing: { marker: { color: "Teal"} },
23+
totals: { marker: { color: "deep sky blue", line:{color:'blue',width:3}} }
24+
}];
25+
layout = {title: {
26+
text: "Profit and loss statement"
27+
},
28+
waterfallgroupgap : {type: 1},
29+
xaxis: {
30+
title: "",
31+
tickfont: {size: 15},
32+
ticks: "outside"
33+
}
34+
}
35+
Plotly.newPlot(gd, data, layout);

0 commit comments

Comments
 (0)