Add additional configuration options for column charts
Issue
Allow for positioning data labels just above the charts columns
Allow x-axis labels to be set at right angles
$columnChartModel =
(new ColumnChartModel())
->setTitle('Expenses by Type')
->addColumn('Food', 100, '#f6ad55')
->addColumn('Shopping', 200, '#fc8181')
->addColumn('Travel', 400, '#90cdf4')
->withDataLabels()
// Allow for positioning data labels just above the charts columns
->setDataLabelsPosition('top')
->setDataLabelsOffsetY(-20)
->setDataLabelsStyleColors(['#304758'])
// Allow x-axis labels to be set at right angles
->setXAxisLabelAngle(-90)
;
Summary
Add additional configuration options for column charts
Issue
Type of Change
Screenshot/Video