dakuwan
Posts: 7
Joined: Thu Nov 05, 2020 9:01 pm

Add column to table but not to chart?

I have a case where I want to add a column to the data table I am displaying underneath my charts but do not want to chart the column. In this instance I have a population and I am doing several percentages of that population. I only want to graph the percentages but show the population count in the table.

Is this possible?

Thanks
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Add column to table but not to chart?

Hi,
Thanks for contacting us with your question.

Yes, I think it's possible but I don't understand exactly what do you want without a demo.
Could you send me your simplified demo in the online code editor?
I will be grateful for that and it will help me better analyze your case.

Best regards.
Sebastian Hajdus
Highcharts Developer
dakuwan
Posts: 7
Joined: Thu Nov 05, 2020 9:01 pm

Re: Add column to table but not to chart?

Hi Sebastian

I put together a quick fiddle here:
https://jsfiddle.net/dakuwan/9hr1b830/5/

In the table underneath the chart between Cohort and First Year Retention I am wanting to put a count of the number of students in the cohort.

Here is the data as my first attempt was to try to "hide" it in the chart by making it white but that didnt really work.
{ "name": "Undergraduates", "type": "spline", "data": [ 4551,4218,4154,4369,4209,4217,4648,4832,4761 ], "color": "#FFFFFF" }

I appreciate the help with this.

Thanks
-Grae
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Add column to table but not to chart?

Hi,
Thanks for explaining.

You can try to write data in another way like an array of objects, then you will have more options to chose from API.

Live demo:
https://jsfiddle.net/BlackLabel/fyaeut8x/

API References:
https://api.highcharts.com/highcharts/series.line.data

Let me know how are you going with this and feel free to ask.
Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Usage”