multilevel pricing with labels

by seatsio

HTML

<script src="https://cdn.seatsio.net/chart.js"></script>
<div id="chart"></div>

CSS

#chart {
	height: 500px;
}

JavaScript

var chart = new seatsio.SeatingChart({
        divId: "chart",
        publicKey: "publicDemoKey",
        event: "smallTheatreEvent",				
        pricing: [
            {'category': 1, 'ticketTypes': [
                {'ticketType': 'adult', 'price': 30, 'label': 'For adults'},
                {'ticketType': 'child', 'price': 20, 'label': 'For children'}
            ]},
            {'category': 2, 'ticketTypes': [
                {'ticketType': 'adult', 'price': 40, 'label': 'For adults'},
                {'ticketType': 'child', 'price': 30, 'label': 'For children'},
                {'ticketType': '65+', 'price': 25,  'label': 'For senior citizens'}
            ]},
            {'category': 3, 'price': 50}
        ],
        priceFormatter: function(price) {
            return '$' + price;
        },
        priceLevelsTooltipMessage: "Select a ticket type"
    }).render();