mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
443 B
25 lines
443 B
6 years ago
|
<script>
|
||
6 years ago
|
import Scatterplot from './Scatterplot.svelte';
|
||
6 years ago
|
import data from './data.js';
|
||
6 years ago
|
</script>
|
||
|
|
||
4 years ago
|
<div class="chart">
|
||
|
<h2>Anscombe's quartet</h2>
|
||
|
|
||
1 year ago
|
<Scatterplot points={data.a} />
|
||
|
<Scatterplot points={data.b} />
|
||
|
<Scatterplot points={data.c} />
|
||
|
<Scatterplot points={data.d} />
|
||
4 years ago
|
</div>
|
||
|
|
||
6 years ago
|
<style>
|
||
|
.chart {
|
||
|
width: 100%;
|
||
|
max-width: 640px;
|
||
|
height: calc(100% - 4em);
|
||
|
min-height: 280px;
|
||
|
max-height: 480px;
|
||
|
margin: 0 auto;
|
||
|
}
|
||
1 year ago
|
</style>
|