Home Forums Chart Support Start month is not displayed on X-Axis in Stacked Area graph Reply To: Start month is not displayed on X-Axis in Stacked Area graph

#38327

OK a good solution for this that I found was easy using PhP is to subtract one (1) from the months as you scale them.

EG:

dataPoints: [
@foreach($dataline as $data)
{ y: {{$data->totals}}, x: new Date({{$$data->year}},{{$data->month – 1}}) },
@endforeach
]
}]

This will allow it to put January in first place or what ever month order you have the “COLLECTION” in.