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

Closed Nathan Skelton opened this topic on on Oct 15 - 2 comments

Nathan Skelton commented on Oct 15

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 on Oct 16

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.

Nathan Skelton commented on Nov 4

This has been fixed. thanks!

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