KoolReport's Forum

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

Name/title of axes of Column and Barchart #2156

Open Augustine Arthur opened this topic on on Jun 24, 2021 - 4 comments

Augustine Arthur commented on Jun 24, 2021

Please how do I label the vertical and horizontal axis of Column and Barchart

Sebastian Morales commented on Jun 28, 2021

Would you mind telling us which type of chart you are using? All of our chart packages support labeling by default. If you want to customize the labels pls describe it specifically with example if it's possible. Tks,

Augustine Arthur commented on Jun 29, 2021

Yes, I am aware of the default labelling. What I want to implement is when you chart year (horizontal axis) against amount (vertical axis). I want to indicate on the vertical axis say "total sales" in addition to the amount (figures) that are represented. On the horizontal axis also to indicate say "Years of operation" in addition to the years (2017, 2018, 2019, 2020). I hope my illustration is okay. Thank you.

Sebastian Morales commented on Jun 30, 2021

Oh, I see. If you use Google Charts pls try the hAxis/vAxis title property like this:

    BarChart::create(array(
        ...
        "options" => array(
            ...
            "hAxis" => array(
                "title" => "Total Sales",
                ...
            ),
            "vAxis" => array(
                "title" => "Years of Operation",
                ...
            )

If you use another chart package let us know. Tks,

Augustine Arthur commented on Jun 30, 2021

Thank you so much. I will implement it and give you feedback.

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