Skip to content

Commit 4d7bd77

Browse files
committed
Fix embed issues on some charts (missing width)
1 parent bbdb555 commit 4d7bd77

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/charts/mixed.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ The first method to place them on top of each other using CSS position:
4949
#my-stock-chart {
5050
position: relative;
5151
height: 250px;
52+
width: 100%;
5253
max-width: 600px;
5354
margin: 0 auto;
54-
background-color: #eee;
5555
}
5656
#my-stock-chart > table {
5757
position: absolute;
@@ -71,6 +71,7 @@ The first method to place them on top of each other using CSS position:
7171
#stock-chart-example-1 {
7272
position: relative;
7373
height: 250px;
74+
width: 100%;
7475
max-width: 600px;
7576
margin: 0 auto;
7677
background-color: #eee;
@@ -192,7 +193,6 @@ The same result can be achieved with CSS grid. And also include [axis titles](..
192193
"data-1-axis stocks data-2-axis"
193194
"data-1-axis volume data-2-axis"
194195
"primary-axis primary-axis primary-axis";
195-
background-color: #eee;
196196
}
197197
#my-chart > table.area,
198198
#my-chart > table.line {
@@ -228,6 +228,7 @@ The same result can be achieved with CSS grid. And also include [axis titles](..
228228
"data-1-axis volume data-2-axis"
229229
"primary-axis primary-axis primary-axis";
230230
background-color: #eee;
231+
width: 650px;
231232
}
232233
#stock-chart-example-2 > table.area,
233234
#stock-chart-example-2 > table.line {

src/components/axes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,6 @@ To add informative titles for your axes, you can use `<table>` tags. To add axis
720720
grid-template-areas:
721721
"data-axis chart"
722722
"primary-axis primary-axis";
723-
background-color: #eee;
724723
}
725724
#my-chart > table {
726725
grid-area: chart;
@@ -747,6 +746,7 @@ To add informative titles for your axes, you can use `<table>` tags. To add axis
747746
"data-axis chart"
748747
"primary-axis primary-axis";
749748
background-color: #eee;
749+
width: 650px;
750750
}
751751
#axes-example-13 > table {
752752
grid-area: chart;

0 commit comments

Comments
 (0)