The FinancialElement class provides default color configurations for financial chart elements (like bars or candles). You can customize these colors via the defaults object. The colors are categorized by the state of the data point: up (positive movement), down (negative movement), and unchanged (no movement).
// Example of the default configuration structure
FinancialElement.defaults = {
backgroundColors: {
up: 'rgba(75, 192, 192, 0.5)',
down: 'rgba(255, 99, 132, 0.5)',
unchanged: 'rgba(201, 203, 207, 0.5)',
},
borderColors: {
up: 'rgb(75, 192, 192)',
down: 'rgb(255, 99, 132)',
unchanged: 'rgb(201, 203, 207)',
}
};