I
I
Igor Braduloff2018-09-19 14:41:39
JavaScript
Igor Braduloff, 2018-09-19 14:41:39

Why isn't all data shown on HighCharts?

Good afternoon! Why are all the data (bars) not visible on the chart when using the HighCharts widget?
my view

echo HighCharts::widget([
        'clientOptions' => [
            'chart' => [
                'height' => '700',
                'type' => 'column'
            ],
            'title' => [
                'text' => 'График платежей'
            ],
            'xAxis' => [
                'categories' => $columnTitles,
            ],
            'yAxis' => [
                'min' => 1,
                 'type' => "logarithmic",
                'title' => [
                    'text' => 'MDL'
                ]
            ],
            'series' => $chartData
            ,
            'plotOptions' => [
                'column' => [
                    'stacking' => 'normal',
                    'dataLabels' => [
                        'allowOverlap' => true,
                        'enabled' => true,
                        'color' => 'white'
                    ]
                ]
            ]
        ]
    ]);

5ba238aa7415d315140466.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Braduloff, 2018-09-19
@pandinus

Problem solved. The format of the incoming data was different. That is, values ​​like 120.00 and 120 were perceived differently.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question