.mixed-graph
    svg.svg(viewBox='0 0 100 100' preserveAspectRatio='none')
        polyline(points='0,100 20,70 40,60 60,80 80,50 100,40 100,100' fill='#86CB92')
    .dots
        .dot(style='left: 100%; top: 40%;')
        .dot(style='left: 80%;  top: 50%;' data-value='50%')
        .dot(style='left: 60%;  top: 80%;' data-value='20%')
        .dot(style='left: 40%;  top: 60%;' data-value='40%')
        .dot(style='left: 20%;  top: 70%;' data-value='30%')
        .dot(style='left: 0%;   top: 100%;')
        
.mixed-graph
    svg.svg(viewBox='0 0 100 100' preserveAspectRatio='none')
        polyline(points='0,100 20,70 40,60 60,80 80,50 100,40 100,100' fill='#86CB92')
    .dots
        .dot(style='left: 100%; top: 40%;')
        .dot(style='left: 80%;  top: 50%;' data-value='50%')
        .dot(style='left: 60%;  top: 80%;' data-value='20%')
        .dot(style='left: 40%;  top: 60%;' data-value='40%')
        .dot(style='left: 20%;  top: 70%;' data-value='30%')
        .dot(style='left: 0%;   top: 100%;')
View Compiled
@import url('https://fonts.googleapis.com/css?family=Sawarabi+Mincho');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Sawarabi Mincho', sans-serif;
    
    font-size: ~'calc(14px + (22 - 14) * ((100vw - 400px) / ( 1200 - 400)))';
    
    @media screen and (max-width: 400px) {
        font-size: 14px;
    }

    @media screen and (min-width: 1200px) {
        font-size: 22px;
    }
}

body {
    background: #302015;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23BA8E59' fill-opacity='.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}


.mixed-graph {
    position: relative;
    height: 10rem;
    width: 90%;
    margin: 2rem auto;
    background: #fff;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .5);
    border-radius: .3rem;
    overflow: hidden;
    
    @media screen and (min-width:30rem) {
        &:nth-of-type(2) {
            width: 50%;
        }
    }

    > .svg {
        position: absolute;
        height: inherit;
        width: 100%;
    }

    > .dots {
        position: absolute;
        z-index: 1;
        height: inherit;
        width: 100%;
    }

    > .dots > .dot {
        background: #619371;
        height: 1rem;
        width: 1rem;
        transform: translateX(-50%) translateY(-50%);
        position: absolute;
        border-radius: 50%;
        
        &:first-of-type,
        &:last-of-type {
            height: .8rem;
            width: .8rem;
        }
        
        &::after {
            display: block;
            content: attr(data-value);
            color: #302015;
            position: absolute;
            top: -80%;
            left: 100%;
        }
    }
}
View Compiled
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.