Zero-based stacking: Multiple areas
Zero-based stacked area chart for time series data. When using 'based' as the stack 'type', all series within a stack will start from zero, which means that they will overlap each other. Useful for comparing differences between multiple values.
HTML
                        HTML
                            
                        
                        
                <script src="https://cdn.zoomcharts-cloud.com/1/nightly/zoomcharts.js"></script>
<div id="demo"></div>CSS
                        CSS
                            
                        
                        
                //No CSS for this example 
JavaScript
                        JavaScript
                            
                        
                        
                chart= new TimeChart({
    "series": [
        {
            "name": "high",
            "data": {
                "index": 3,
                "aggregation": "max"
            },
            "style": {
                "lineColor": "#b0dc0b",
                "fillColor": "#b0dc0b"
            },
            "type": "line",
            "stack": "default"
        },
        {
            "name": "low",
            "data": {
                "index": 2,
                "aggregation": "min"
            },
            "style": {
                "lineColor": "#2fc32f",
                "fillColor": "#2fc32f"
            },
            "type": "line",
            "stack": "default"
        }
    ],
    "stacks": {
        "default": {
            "type": "based"
        }
    },
    "container": "demo",
    "data": [
        {
            "units": [
                "d"
            ],
            "url": "/dvsl/data/extra/appl.json"
        }
    ],
    "toolbar": {
        "fullscreen": true,
        "enabled": true
    },
    "interaction": {
        "resizing": {
            "enabled": false
        }
    }
})