KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

ApexCharts Y-axis showing 12 zeroes after decimal place #3356

Open Nathan Skelton opened this topic on 7 days ago - 1 comments

Nathan Skelton commented 7 days ago

Using a combo chart from apexcharts, the y-axis is showing 12 zeroes after the decimal place even though they are whole numbers:

Here is my code:

$columns = array(
                                           "Date" => [
                                                "categoryType" => "datetime"
                                            ],
                                            "Average" => [
                                                "chartType" => "line"
                                            ],
                                            "Count" => [
                                                "chartType" => "line"
                                            ]
                                        );
                                        ComboChart::create(array(
                                            "title" => ' Overall Summary',
                                            "dataSource" => $this->src('base')->pipe(new Filter(array(array('hrID', '=', $hrID))))->pipe(new Group(["by" => "Date,hrID", "sum" => "Total", "avg" => "Average", "sum" => "Count"])),
                                            "columns" => $columns,
                                            "height" => "300px",
                                            "width" => "100%"
                                        ));

Am I doing something wrong or is this a bug?

Bright commented 6 days ago

Are you sure the data passed to dataSource is an integer? When I pass an integer value to the dataSource, I don't see any similar error.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug
help needed

ApexCharts