Created
September 6, 2016 15:09
-
-
Save jferris/433a6b371c688d29dd4f3bad4d39ea2d to your computer and use it in GitHub Desktop.
Chart.js defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"responsive": true, | |
"responsiveAnimationDuration": 0, | |
"maintainAspectRatio": true, | |
"events": [ | |
"mousemove", | |
"mouseout", | |
"click", | |
"touchstart", | |
"touchmove" | |
], | |
"hover": { | |
"onHover": null, | |
"mode": "single", | |
"animationDuration": 400 | |
}, | |
"onClick": null, | |
"defaultColor": "rgba(0,0,0,0.1)", | |
"defaultFontColor": "#666", | |
"defaultFontFamily": "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", | |
"defaultFontSize": 12, | |
"defaultFontStyle": "normal", | |
"showLines": true, | |
"elements": { | |
"arc": { | |
"backgroundColor": "rgba(0,0,0,0.1)", | |
"borderColor": "#fff", | |
"borderWidth": 2 | |
}, | |
"line": { | |
"tension": 0.4, | |
"backgroundColor": "rgba(0,0,0,0.1)", | |
"borderWidth": 3, | |
"borderColor": "rgba(0,0,0,0.1)", | |
"borderCapStyle": "butt", | |
"borderDash": [ | |
], | |
"borderDashOffset": 0, | |
"borderJoinStyle": "miter", | |
"capBezierPoints": true, | |
"fill": true | |
}, | |
"point": { | |
"radius": 3, | |
"pointStyle": "circle", | |
"backgroundColor": "rgba(0,0,0,0.1)", | |
"borderWidth": 1, | |
"borderColor": "rgba(0,0,0,0.1)", | |
"hitRadius": 1, | |
"hoverRadius": 4, | |
"hoverBorderWidth": 1 | |
}, | |
"rectangle": { | |
"backgroundColor": "rgba(0,0,0,0.1)", | |
"borderWidth": 0, | |
"borderColor": "rgba(0,0,0,0.1)", | |
"borderSkipped": "bottom" | |
} | |
}, | |
"animation": { | |
"duration": 1000, | |
"easing": "easeOutQuart" | |
}, | |
"title": { | |
"display": false, | |
"position": "top", | |
"fullWidth": true, | |
"fontStyle": "bold", | |
"padding": 10, | |
"text": "" | |
}, | |
"legend": { | |
"display": true, | |
"position": "top", | |
"fullWidth": true, | |
"reverse": false, | |
"labels": { | |
"boxWidth": 40, | |
"padding": 10 | |
} | |
}, | |
"tooltips": { | |
"enabled": true, | |
"custom": null, | |
"mode": "single", | |
"backgroundColor": "rgba(0,0,0,0.8)", | |
"titleFontStyle": "bold", | |
"titleSpacing": 2, | |
"titleMarginBottom": 6, | |
"titleFontColor": "#fff", | |
"titleAlign": "left", | |
"bodySpacing": 2, | |
"bodyFontColor": "#fff", | |
"bodyAlign": "left", | |
"footerFontStyle": "bold", | |
"footerSpacing": 2, | |
"footerMarginTop": 6, | |
"footerFontColor": "#fff", | |
"footerAlign": "left", | |
"yPadding": 6, | |
"xPadding": 6, | |
"yAlign": "center", | |
"xAlign": "center", | |
"caretSize": 5, | |
"cornerRadius": 6, | |
"multiKeyBackground": "#fff", | |
"callbacks": { | |
} | |
} | |
}, | |
"scale": { | |
"display": true, | |
"position": "left", | |
"gridLines": { | |
"display": true, | |
"color": "rgba(0, 0, 0, 0.1)", | |
"lineWidth": 1, | |
"drawBorder": true, | |
"drawOnChartArea": true, | |
"drawTicks": true, | |
"tickMarkLength": 10, | |
"zeroLineWidth": 1, | |
"zeroLineColor": "rgba(0,0,0,0.25)", | |
"offsetGridLines": false | |
}, | |
"scaleLabel": { | |
"labelString": "", | |
"display": false | |
}, | |
"ticks": { | |
"beginAtZero": false, | |
"minRotation": 0, | |
"maxRotation": 50, | |
"mirror": false, | |
"padding": 10, | |
"reverse": false, | |
"display": true, | |
"autoSkip": true, | |
"autoSkipPadding": 0, | |
"labelOffset": 0 | |
} | |
}, | |
"bar": { | |
"hover": { | |
"mode": "label" | |
}, | |
"scales": { | |
"xAxes": [ | |
{ | |
"type": "category", | |
"categoryPercentage": 0.8, | |
"barPercentage": 0.9, | |
"gridLines": { | |
"offsetGridLines": true | |
} | |
} | |
], | |
"yAxes": [ | |
{ | |
"type": "linear" | |
} | |
] | |
} | |
}, | |
"horizontalBar": { | |
"hover": { | |
"mode": "label" | |
}, | |
"scales": { | |
"xAxes": [ | |
{ | |
"type": "linear", | |
"position": "bottom" | |
} | |
], | |
"yAxes": [ | |
{ | |
"position": "left", | |
"type": "category", | |
"categoryPercentage": 0.8, | |
"barPercentage": 0.9, | |
"gridLines": { | |
"offsetGridLines": true | |
} | |
} | |
] | |
}, | |
"elements": { | |
"rectangle": { | |
"borderSkipped": "left" | |
} | |
}, | |
"tooltips": { | |
"callbacks": { | |
} | |
} | |
}, | |
"bubble": { | |
"hover": { | |
"mode": "single" | |
}, | |
"scales": { | |
"xAxes": [ | |
{ | |
"type": "linear", | |
"position": "bottom", | |
"id": "x-axis-0" | |
} | |
], | |
"yAxes": [ | |
{ | |
"type": "linear", | |
"position": "left", | |
"id": "y-axis-0" | |
} | |
] | |
}, | |
"tooltips": { | |
"callbacks": { | |
} | |
} | |
}, | |
"doughnut": { | |
"animation": { | |
"animateRotate": true, | |
"animateScale": false | |
}, | |
"aspectRatio": 1, | |
"hover": { | |
"mode": "single" | |
}, | |
"legend": { | |
"labels": { | |
} | |
}, | |
"cutoutPercentage": 50, | |
"rotation": -1.5707963267949, | |
"circumference": 6.2831853071796, | |
"tooltips": { | |
"callbacks": { | |
} | |
} | |
}, | |
"pie": { | |
"animation": { | |
"animateRotate": true, | |
"animateScale": false | |
}, | |
"aspectRatio": 1, | |
"hover": { | |
"mode": "single" | |
}, | |
"legend": { | |
"labels": { | |
} | |
}, | |
"cutoutPercentage": 0, | |
"rotation": -1.5707963267949, | |
"circumference": 6.2831853071796, | |
"tooltips": { | |
"callbacks": { | |
} | |
} | |
}, | |
"line": { | |
"showLines": true, | |
"spanGaps": false, | |
"hover": { | |
"mode": "label" | |
}, | |
"scales": { | |
"xAxes": [ | |
{ | |
"type": "category", | |
"id": "x-axis-0" | |
} | |
], | |
"yAxes": [ | |
{ | |
"type": "linear", | |
"id": "y-axis-0" | |
} | |
] | |
} | |
}, | |
"polarArea": { | |
"scale": { | |
"type": "radialLinear", | |
"lineArc": true, | |
"ticks": { | |
"beginAtZero": true | |
} | |
}, | |
"animation": { | |
"animateRotate": true, | |
"animateScale": true | |
}, | |
"startAngle": -1.5707963267949, | |
"aspectRatio": 1, | |
"legend": { | |
"labels": { | |
} | |
}, | |
"tooltips": { | |
"callbacks": { | |
} | |
} | |
}, | |
"radar": { | |
"scale": { | |
"type": "radialLinear" | |
}, | |
"elements": { | |
"line": { | |
"tension": 0 | |
} | |
} | |
}, | |
"scatter": { | |
"hover": { | |
"mode": "single" | |
}, | |
"scales": { | |
"xAxes": [ | |
{ | |
"type": "linear", | |
"position": "bottom", | |
"id": "x-axis-1" | |
} | |
], | |
"yAxes": [ | |
{ | |
"type": "linear", | |
"position": "left", | |
"id": "y-axis-1" | |
} | |
] | |
}, | |
"tooltips": { | |
"callbacks": { | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment