ChartAct / web /Plotly /bar /chart_0102_bar.html
wumumu's picture
Add files using upload-large-folder tool
7b52e07 verified
Raw History Blame Contribute Delete
16.3 kB
<html>
<head><meta charset="utf-8" /><style>html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; }.plotly-graph-div { width: 100vw !important; height: 100vh !important; }</style></head>
<body>
<div>
<script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
<script charset="utf-8" src="plotly.min.js"></script>
<div id="b04c6ec8-aef0-44f0-bc7f-e395393013b6" class="plotly-graph-div" style="height:100vh; width:100vw;"></div>
<script type="text/plain" data-chart-inline="true">
{
"library": "Plotly",
"containerId": "b04c6ec8-aef0-44f0-bc7f-e395393013b6",
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "smoker=No<br>time=Lunch<br>day=Thur<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "No",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "No",
"offsetgroup": "No",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"x": [
"Male",
"Male",
"Male",
"Male",
"Female",
"Male",
"Female",
"Male",
"Male",
"Male",
"Male",
"Female",
"Female",
"Female",
"Male",
"Female",
"Male",
"Male",
"Female",
"Female",
"Male",
"Female",
"Female",
"Male",
"Male",
"Female",
"Female",
"Female",
"Female",
"Female",
"Female",
"Female",
"Female",
"Female",
"Male",
"Male",
"Female",
"Female",
"Female",
"Female",
"Female",
"Male",
"Male",
"Male"
],
"xaxis": "x5",
"y": [27.2,22.76,17.29,16.66,10.07,15.98,34.83,13.03,18.28,24.71,21.16,10.65,12.43,24.08,11.69,13.42,14.26,15.95,12.48,29.8,8.52,14.52,11.38,22.82,19.08,20.27,11.17,12.26,18.26,8.51,10.33,14.15,13.16,17.47,34.3,41.19,27.05,16.43,8.35,18.64,11.87,9.78,7.51,7.56],
"yaxis": "y5",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "smoker=Yes<br>time=Lunch<br>day=Thur<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "Yes",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Yes",
"offsetgroup": "Yes",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"x": [
"Male",
"Male",
"Male",
"Female",
"Male",
"Male",
"Male",
"Male",
"Female",
"Female",
"Male",
"Male",
"Female",
"Female",
"Female",
"Male",
"Female"
],
"xaxis": "x5",
"y": [19.44,32.68,16,19.81,28.44,15.48,16.58,10.34,43.11,13,13.51,18.71,12.74,13,16.4,20.53,16.47],
"yaxis": "y5",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "smoker=No<br>time=Dinner<br>day=Thur<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "No",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "No",
"offsetgroup": "No",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"x": [
"Female"
],
"xaxis": "x",
"y": [18.78],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "smoker=No<br>time=Lunch<br>day=Fri<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "No",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "No",
"offsetgroup": "No",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"x": [
"Female"
],
"xaxis": "x6",
"y": [15.98],
"yaxis": "y6",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "smoker=Yes<br>time=Lunch<br>day=Fri<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "Yes",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Yes",
"offsetgroup": "Yes",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"x": [
"Male",
"Female",
"Male",
"Male",
"Female",
"Female"
],
"xaxis": "x6",
"y": [12.16,13.42,8.58,13.42,16.27,10.09],
"yaxis": "y6",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "smoker=No<br>time=Dinner<br>day=Fri<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "No",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "No",
"offsetgroup": "No",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"x": [
"Male",
"Female",
"Male"
],
"xaxis": "x2",
"y": [22.49,22.75,12.46],
"yaxis": "y2",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "smoker=Yes<br>time=Dinner<br>day=Fri<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "Yes",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Yes",
"offsetgroup": "Yes",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"x": [
"Male",
"Female",
"Female",
"Male",
"Male",
"Male",
"Male",
"Female",
"Female"
],
"xaxis": "x2",
"y": [28.97,5.75,16.32,40.17,27.28,12.03,21.01,11.35,15.38],
"yaxis": "y2",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "smoker=No<br>time=Dinner<br>day=Sat<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "No",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "No",
"offsetgroup": "No",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"x": [
"Male",
"Male",
"Female",
"Female",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Male",
"Male",
"Female",
"Female",
"Male",
"Male",
"Male",
"Female",
"Male",
"Male",
"Male",
"Female",
"Male",
"Male",
"Male",
"Female",
"Male",
"Male",
"Female",
"Female",
"Male",
"Female",
"Male",
"Male",
"Female",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Male",
"Male"
],
"xaxis": "x3",
"y": [20.65,17.92,20.29,15.77,39.42,19.82,17.81,13.37,12.69,21.7,19.65,9.55,18.35,15.06,20.69,17.78,24.06,16.31,16.93,18.69,31.27,16.04,26.41,48.27,17.59,20.08,16.45,20.23,12.02,17.07,14.73,10.51,20.92,18.24,14,7.25,48.33,20.45,13.28,11.61,10.77,10.07,35.83,29.03,17.82],
"yaxis": "y3",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "smoker=Yes<br>time=Dinner<br>day=Sat<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "Yes",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Yes",
"offsetgroup": "Yes",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"x": [
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Male",
"Female",
"Female",
"Male",
"Female",
"Female",
"Male",
"Male",
"Male",
"Female",
"Female",
"Female",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Male",
"Male",
"Female",
"Female",
"Female",
"Male",
"Male",
"Male",
"Female",
"Female",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Male"
],
"xaxis": "x3",
"y": [38.01,11.24,20.29,13.81,11.02,18.29,3.07,15.01,26.86,25.28,17.92,44.3,22.42,15.36,20.49,25.21,14.31,10.59,10.63,50.81,15.81,26.59,38.73,24.27,12.76,30.06,25.89,13.27,28.17,12.9,28.15,11.59,7.74,30.14,22.12,24.01,15.69,15.53,12.6,32.83,27.18,22.67],
"yaxis": "y3",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "smoker=No<br>time=Dinner<br>day=Sun<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "No",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "No",
"offsetgroup": "No",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"x": [
"Female",
"Male",
"Male",
"Male",
"Female",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Male",
"Male",
"Female",
"Male",
"Female",
"Male",
"Female",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Female",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Female",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Male",
"Female",
"Female",
"Male",
"Male",
"Male",
"Female",
"Male",
"Male",
"Male",
"Male",
"Male"
],
"xaxis": "x4",
"y": [16.99,10.34,21.01,23.68,24.59,25.29,8.77,26.88,15.04,14.78,10.27,35.26,15.42,18.43,14.83,21.58,10.33,16.29,16.97,17.46,13.94,9.68,30.4,18.29,22.23,32.4,28.55,18.04,12.54,10.29,34.81,9.94,25.56,19.49,38.07,23.95,25.71,17.31,29.93,14.07,13.13,17.26,24.55,19.77,29.85,48.17,25,13.39,16.49,21.5,12.66,16.21,13.81,24.52,20.76,31.71,20.69],
"yaxis": "y4",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "smoker=Yes<br>time=Dinner<br>day=Sun<br>sex=%{x}<br>total_bill=%{y}<extra></extra>",
"legendgroup": "Yes",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Yes",
"offsetgroup": "Yes",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"x": [
"Female",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Male",
"Male",
"Male",
"Male",
"Male",
"Male",
"Female",
"Male",
"Female",
"Male",
"Male"
],
"xaxis": "x4",
"y": [17.51,7.25,31.85,16.82,32.9,17.89,14.48,9.6,34.63,34.65,23.33,45.35,23.17,40.55,20.9,30.46,18.15,23.1,15.69],
"yaxis": "y4",
"type": "bar"
}
],
"layout": {
"xaxis": {
"anchor": "y",
"domain": [
0,
0.22999999999999998
],
"title": {
"text": "sex"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
0.485
],
"title": {
"text": "total_bill"
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.24999999999999997,
0.48
],
"matches": "x",
"title": {
"text": "sex"
}
},
"yaxis2": {
"anchor": "x2",
"domain": [
0,
0.485
],
"matches": "y",
"showticklabels": false
},
"xaxis3": {
"anchor": "y3",
"domain": [
0.49999999999999994,
0.73
],
"matches": "x",
"title": {
"text": "sex"
}
},
"yaxis3": {
"anchor": "x3",
"domain": [
0,
0.485
],
"matches": "y",
"showticklabels": false
},
"xaxis4": {
"anchor": "y4",
"domain": [
0.75,
0.98
],
"matches": "x",
"title": {
"text": "sex"
}
},
"yaxis4": {
"anchor": "x4",
"domain": [
0,
0.485
],
"matches": "y",
"showticklabels": false
},
"xaxis5": {
"anchor": "y5",
"domain": [
0,
0.22999999999999998
],
"matches": "x",
"showticklabels": false
},
"yaxis5": {
"anchor": "x5",
"domain": [
0.515,
1
],
"matches": "y",
"title": {
"text": "total_bill"
}
},
"xaxis6": {
"anchor": "y6",
"domain": [
0.24999999999999997,
0.48
],
"matches": "x",
"showticklabels": false
},
"yaxis6": {
"anchor": "x6",
"domain": [
0.515,
1
],
"matches": "y",
"showticklabels": false
},
"xaxis7": {
"anchor": "y7",
"domain": [
0.49999999999999994,
0.73
],
"matches": "x",
"showticklabels": false
},
"yaxis7": {
"anchor": "x7",
"domain": [
0.515,
1
],
"matches": "y",
"showticklabels": false
},
"xaxis8": {
"anchor": "y8",
"domain": [
0.75,
0.98
],
"matches": "x",
"showticklabels": false
},
"yaxis8": {
"anchor": "x8",
"domain": [
0.515,
1
],
"matches": "y",
"showticklabels": false
},
"annotations": [
{
"font": {},
"showarrow": false,
"text": "day=Thur",
"x": 0.11499999999999999,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "day=Fri",
"x": 0.365,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "day=Sat",
"x": 0.615,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "day=Sun",
"x": 0.865,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "time=Dinner",
"textangle": 90,
"x": 0.98,
"xanchor": "left",
"xref": "paper",
"y": 0.2425,
"yanchor": "middle",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "time=Lunch",
"textangle": 90,
"x": 0.98,
"xanchor": "left",
"xref": "paper",
"y": 0.7575000000000001,
"yanchor": "middle",
"yref": "paper"
}
],
"legend": {
"title": {
"text": "smoker"
},
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"barmode": "group",
"autosize": true
},
"config": {
"responsive": true
}
}
</script>
<script src="chart_0102_bar.inline01.js"></script>
</div>
</body>
</html>