The following example creates a line chart with a vertical axis that goes from 0 to 5 in 0.5 sized steps.
```javascript
-var chartInstance = new Chart({
+var chartInstance = new Chart(ctx, {
type: 'line',
data: data,
options: {
The following example creates a chart with a logarithmic X axis that ranges from 1 to 1000.
```javascript
-var chartInstance = new Chart({
+var chartInstance = new Chart(ctx, {
type: 'line',
data: data,
options: {
For example, to set the display format for the 'quarter' unit to show the month and year, the following config would be passed to the chart constructor.
```javascript
-var chartInstance = new Chart({
+var chartInstance = new Chart(ctx, {
type: 'line',
data: data,
options: {
For example, to create a chart with a time scale that always displayed units per month, the following config could be used.
```javascript
-var chartInstance = new Chart({
+var chartInstance = new Chart(ctx, {
type: 'line',
data: data,
options: {