KoolReport's Forum

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

Click on Line Chart ChartJs open new page #2103

Open Hasvier Corporation opened this topic on on May 25, 2021 - 1 comments

Hasvier Corporation commented on May 25, 2021

Hello, is there any method to put link or url when i click on the chart? I use Line Chart ChartJs. Please help

<?php

LineChart::create(array(
    "title"=>"Sale vs Cost",
    "dataSource"=>$time_sale,
    "columns"=>array(
        "month",
        "sale"=>array(
            "label"=>"Sale",
            "type"=>"number",
            "prefix"=>"$"
        ),
        "cost"=>array(
            "label"=>"Cost",
            "type"=>"number",
            "prefix"=>"$"
        ),
    )
));
?>
KoolReport commented on May 25, 2021

Do you mean when you click on the whole chart or just a data point on the chart.

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
None yet

None