You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

c3.js Example
c3.generate({
	data: chartData,
	axis: {
		x: {
			type: 'timeseries',
			label: {
				text: 'Months',
				position: 'outer-left'
			},
			tick: {
				format: '%d.%m.%y',
				culling: {
					max: 25
				},
				fit: true,
				multiline: false
			}
		},
		y: {
			label: 'Tickets'
		}
	}
})

// chartData - this variable contains the aggregated data for display and is generated by the script