},
onClick: null,
defaultColor: 'rgba(0,0,0,0.1)',
+ defaultFontColor: '#666',
+ defaultFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
+ defaultFontSize: 12,
+ defaultFontStyle: 'normal',
// Element defaults defined in element extensions
elements: {},
labels: {
boxWidth: 40,
- fontSize: 12,
- fontStyle: "normal",
- fontColor: "#666",
- fontFamily: "Helvetica Neue",
+ fontSize: Chart.defaults.global.defaultFontSize,
+ fontStyle: Chart.defaults.global.defaultFontStyle,
+ fontColor: Chart.defaults.global.defaultFontColor,
+ fontFamily: Chart.defaults.global.defaultFontFamily,
padding: 10,
// Generates labels shown in the legend
// Valid properties to return:
// scale label
scaleLabel: {
- fontColor: '#666',
- fontFamily: 'Helvetica Neue',
- fontSize: 12,
- fontStyle: 'normal',
+ fontColor: Chart.defaults.global.defaultFontColor,
+ fontFamily: Chart.defaults.global.defaultFontFamily,
+ fontSize: Chart.defaults.global.defaultFontSize,
+ fontStyle: Chart.defaults.global.defaultFontStyle,
// actual label
labelString: '',
// label settings
ticks: {
beginAtZero: false,
- fontSize: 12,
- fontStyle: "normal",
- fontColor: "#666",
- fontFamily: "Helvetica Neue",
+ fontSize: Chart.defaults.global.defaultFontSize,
+ fontStyle: Chart.defaults.global.defaultFontStyle,
+ fontColor: Chart.defaults.global.defaultFontColor,
+ fontFamily: Chart.defaults.global.defaultFontFamily,
maxRotation: 90,
mirror: false,
padding: 10,
position: 'top',
fullWidth: true, // marks that this box should take the full width of the canvas (pushing down other boxes)
- fontColor: '#666',
- fontFamily: 'Helvetica Neue',
- fontSize: 12,
+ fontColor: Chart.defaults.global.defaultFontColor,
+ fontFamily: Chart.defaults.global.defaultFontFamily,
+ fontSize: Chart.defaults.global.defaultFontSize,
fontStyle: 'bold',
padding: 10,
custom: null,
mode: 'single',
backgroundColor: "rgba(0,0,0,0.8)",
- titleFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
- titleFontSize: 12,
+ titleFontFamily: Chart.defaults.global.defaultFontFamily,
+ titleFontSize: Chart.defaults.global.defaultFontSize,
titleFontStyle: "bold",
titleSpacing: 2,
titleMarginBottom: 6,
titleColor: "#fff",
titleAlign: "left",
- bodyFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
- bodyFontSize: 12,
- bodyFontStyle: "normal",
+ bodyFontFamily: Chart.defaults.global.defaultFontFamily,
+ bodyFontSize: Chart.defaults.global.defaultFontSize,
+ bodyFontStyle: Chart.defaults.global.defaultFontStyle,
bodySpacing: 2,
bodyColor: "#fff",
bodyAlign: "left",
- footerFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
- footerFontSize: 12,
+ footerFontFamily: Chart.defaults.global.defaultFontFamily,
+ footerFontSize: Chart.defaults.global.defaultFontSize,
footerFontStyle: "bold",
footerSpacing: 2,
footerMarginTop: 6,
pointLabels: {
//String - Point label font declaration
- fontFamily: "'Arial'",
+ fontFamily: Chart.defaults.global.defaultFontFamily,
//String - Point label font weight
- fontStyle: "normal",
+ fontStyle: Chart.defaults.global.defaultFontStyle,
//Number - Point label font size in pixels
fontSize: 10,
//String - Point label font colour
- fontColor: "#666",
+ fontColor: Chart.defaults.global.defaultFontColor,
//Function - Used to convert point labels
callback: function(label) {
position: "right",
scaleLabel: {
fontColor: '#666',
- fontFamily: 'Helvetica Neue',
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: 'normal',
labelString: '',
ticks: {
beginAtZero: false,
fontColor: "#666",
- fontFamily: "Helvetica Neue",
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: "normal",
maxRotation: 90,
position: "left",
scaleLabel: {
fontColor: '#666',
- fontFamily: 'Helvetica Neue',
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: 'normal',
labelString: '',
ticks: {
beginAtZero: false,
fontColor: "#666",
- fontFamily: "Helvetica Neue",
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: "normal",
maxRotation: 90,
position: "bottom",
scaleLabel: {
fontColor: '#666',
- fontFamily: 'Helvetica Neue',
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: 'normal',
labelString: '',
ticks: {
beginAtZero: false,
fontColor: "#666",
- fontFamily: "Helvetica Neue",
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: "normal",
maxRotation: 90,
position: "left",
scaleLabel: {
fontColor: '#666',
- fontFamily: 'Helvetica Neue',
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: 'normal',
labelString: '',
ticks: {
beginAtZero: false,
fontColor: "#666",
- fontFamily: "Helvetica Neue",
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: "normal",
maxRotation: 90,
position: "left",
scaleLabel: {
fontColor: '#666',
- fontFamily: 'Helvetica Neue',
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: 'normal',
labelString: '',
ticks: {
beginAtZero: false,
fontColor: "#666",
- fontFamily: "Helvetica Neue",
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: "normal",
maxRotation: 90,
lineArc: false,
pointLabels: {
fontColor: "#666",
- fontFamily: "'Arial'",
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 10,
fontStyle: "normal",
callback: defaultConfig.pointLabels.callback, // make this nicer, then check explicitly below
position: "chartArea",
scaleLabel: {
fontColor: '#666',
- fontFamily: 'Helvetica Neue',
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: 'normal',
labelString: '',
backdropPaddingX: 2,
beginAtZero: false,
fontColor: "#666",
- fontFamily: "Helvetica Neue",
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: "normal",
maxRotation: 90,
position: "bottom",
scaleLabel: {
fontColor: '#666',
- fontFamily: 'Helvetica Neue',
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: 'normal',
labelString: '',
ticks: {
beginAtZero: false,
fontColor: "#666",
- fontFamily: "Helvetica Neue",
+ fontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontStyle: "normal",
maxRotation: 90,