Yes:
AreaChart::create(array(
"dataSource" => $breakeven_data,
"columns" => array(
"date_time" => array(
"label" => "Date",
),
"total_cost" => array(
"label" => "Total Cost",
"type" => "number",
"prefix" => '$',
),
"sold_amount" => array(
"label" => "Revenue",
"type" => "number",
"prefix" => '$',
),
),
"options" => [
'yaxis | labels' => [
'style' => [
"colors" => ['#adadad']
],
'formatter' => "function(value, index) {
return '$ ' + value.toLocaleString();
}"
],
'xaxis | labels' => [
'style' => [
"colors" => '#adadad'
],
'formatter' => "function(value) {
return typeof value === 'string' ? (value.length > 15 ? value.substring(0, 15) + '...' : value) : '';
}",
'show' => true,
'rotate' => -45
],
'xaxis | tickAmount' => 10,
'legend' => [
'position' => 'bottom',
'horizontalAlign' => 'center',
'floating' => false
],
'chart' => [
'height' => 260,
],
'responsive' => [
[
'breakpoint' => 1000,
'options' => [
'chart' => [
'height' => 350
],
'xaxis' => [
'labels' => [
'rotate' => -30
]
]
]
],
[
'breakpoint' => 600,
'options' => [
'chart' => [
'height' => 300
],
'xaxis' => [
'labels' => [
'rotate' => -45
]
],
'legend' => [
'position' => 'bottom'
]
]
]
]
],
'colors' => [
'#008ffb',
'#00e396'
],
"widthHeightAutoRatio" => 3,
"showLegend" => true
));
?>