Chart Line X
Chart Line X

Insert it in <head>

<!-- Choose one for Light Mode -->
<link id="themecss" rel="stylesheet" type="text/css" href="https://i-as.dev/devui/css/light/all.min.css" />
<!-- Choose one for Dark Mode -->
<link id="themecss" rel="stylesheet" type="text/css" href="https://i-as.dev/devui/css/dark/all.min.css" />

<script type="text/javascript" src="https://i-as.dev/devui/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="https://i-as.dev/devui/js/devui-all.min.js"></script>

Use Components

<body class="theme-light">

<div id="chart"></div>
<script type="text/javascript">
    $(function () {
        $("#chart").devuiChart({
            theme: "light",
            primaryHeader: {
                text: 'Heart Rate Measurement'
            },
            secondaryHeader: {
                text: 'Plot band indicates the normal range of heart rate at rest'
            },
            chartLegend: {
                enabled: false
            },
            exportOptions: false,
            axisX: {
                categoricalValues: ['16:00', '16:10', '16:20', '16:30', '16:40', '16:50', '17:00', '17:10', '17:20', '17:30']
            },
            axisY: {
                min: 40,
                max: 140,
                title: {
                    text: 'Beats per minute (bpm)'
                },
                plotLines: [
                    { start: 60, drawWidth: 2, drawColor: 'green', zIndex: 2 },
                    { start: 100, drawWidth: 2, drawColor: 'red', zIndex: 2 }
                ],
                plotBands: [
                    { start: 60, end: 100, drawColor: 'rgba(214,235,248,0.8)' }
                ]
            },
            dataSeries: [{
                seriesType: 'line',
                collectionAlias: 'HR (bpm)',
                data: [77, 98, 112, 127, 103, 95, 82, 52, 83, 86]
            }]
        });
    });
</script>

</body>