Tune the settings to your liking. The following settings are all optional.
$scope.myChart = {
// Classes for styling
class: 'abc-chart',
focusClass: 'abc-focus',
nofocusClass 'abc-nofocus',
// These hovering indices are used to focus on data from outside ABC
hovering: {
x: -1,
y: -1
},
// Size settings
width: 800,
height: 200,
resize: {
width: true,
height: false
},
// Element styling
margin: 12,
lineWidth: 2,
axisLineWidth: 1,
axisTickWidth: 1,
axisTickSize: 4,
pointSize: 2.5,
pointHoverSize: 4,
// Axis options
xAxisLabelOffset: 0.5, // Offset by 0.5 ticks
xAxisLabelCulling: true, // Automatically hides some axis labels when needed
// Chart colors
colors: ['#d24949', '#e59648', '#4f8f47', '#316e93', '#684c8a'],
// Regions
regions: [
{
start: 0,
end: 1,
color: 'red',
title: 'Region 1',
size: 12,
titleY: 'top', // 'top', 'center', 'bottom', or number e.g. 0.5 (half) or 0.75 (3 quarters)
opacity: 0.2 // Set highlight opacity of region, defaults to 0.2
}
],
// Bands
bands: [
{
start: 0, // Start & end can be exact values
end: 'bottom', // Start & End can be 'top' or 'bottom'
color: 'red',
title: 'Lower band',
size: 10
}
],
// Text transforms
transforms: {
yLabels: function,
xLabels: function,
popupLabels: function,
popupValues: function,
popupHeaders: function
}
// Title settings
title: {
content: 'My Chart',
size: 12,
margin: 4,
align: 'center' // center, left or right
},
// Transformed data & headers
data: ABC.transformData($scope.data),
headers: ABC.transformHeaders($scope.data)
}