Getting Started

Performance !!!

Chart Data

Bar and Column Charts

Line and Area Charts

Pie and Funnel Charts

Scatter and Bubble Charts

Radar and Polar Charts

Financial Charts

Gantt Charts

Combinational Charts

Dynamic Charts

Working with Chart Axes

Chart Features

Customizing Chart

Client-Side Events

The line chart can be plotted on a linear, date time or category x-axis (x-values are numeric, dates or categories (strings)).

In this example the line chart in plotted on a category axis.

For detailed implementation, please take a look at the HTML code tab.
<!DOCTYPE html>
    Line Chart on a Category Axis Example - JavaScript Chart by DataViz Charts
	<link rel="stylesheet" type="text/css" href="../../css/dataviz.chart.css" />
	<link rel="stylesheet" type="text/css" href="../../themes/le-frog/styles.css" />
	<script src="../../js/dataviz.chart.min.js" type="text/javascript"></script>
    <script lang="javascript" type="text/javascript">
            var chart = new DataViz.Chart({
                title: { text: 'Line Chart' },
                animation: { duration: 1 },
                axes: [
                        type: 'category',
                        location: 'bottom',
                        categories: ['A', 'B', 'C', 'D', 'E', 'F', 'G']
                series: [
                        type: 'line',
                        title: 'Series 1',
                        strokeStyle: '#418CF0',
                        lineWidth : 2,
                        data: [62, 70, 68, 58, 52, 60, 48],
                        labels: {
                            stringFormat: '%d K',
                            font: '12px sans-serif'
                        type: 'line',
                        title: 'Series 2',
                        strokeStyle: '#FCB441',
                        lineWidth: 2,
                        data: [56, 30, 62, 65, 40, 36, 70],
                        labels: {
                            stringFormat: '%d K',
                            font: '12px sans-serif'

        <div id="container" style="width: 500px; height: 300px;"></div>