jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

column chart confusion

https://jsfiddle.net/9fwL8gk2/2/

as you can see in above example i do have data for all categories, but sometimes i do have data only for one of the category and its missing from other categories..

like in below example i am trying to show data = 4 for category = 'Liverpool' but then i have to specify zero and it does show up on the chart as well..
is there a way i can show additional data only for specific category,

in real life situation.. we are trying to show dividend for all 4 qtrs for one year like in attached image.. but sometimes we might have extra dividend payment which we need to show as additional bar..
hoa_1.jpg
hoa_1.jpg (50.21 KiB) Viewed 375 times
User avatar
dawid.d
Posts: 807
Joined: Thu Oct 06, 2022 11:31 am

Re: column chart confusion

Hello,

Thanks for contacting us with your question!

You can add a new point with x defined that specify the category number, using a two-element array where x is the first element and y is the second element. To join the series, you have to enter the id of the series you want to link to, to linkedTo option. See the demo below.

Demo: https://jsfiddle.net/BlackLabel/7m9ewx2L/

I hope you will find it useful
Best regards
Dawid Draguła
Highcharts Developer
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: column chart confusion

Thanks a lot.. this is working like charm...
User avatar
dawid.d
Posts: 807
Joined: Thu Oct 06, 2022 11:31 am

Re: column chart confusion

You're welcome! In case of any further questions, feel free to contact us again.
Best regards!
Dawid Draguła
Highcharts Developer

Return to “Highcharts Stock”